summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-10-16 20:44:06 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-10-16 20:44:06 +0000
commite4af86a834405b91b6c8ed38aa960e754af0eb7d (patch)
treed8d561a9b2b65d8bbcf2579a8ac6c56148fa4696
parentd7757eb75c7263dd01d10a1b5a6f178b7ebf3ca3 (diff)
downloadrockbox-e4af86a834405b91b6c8ed38aa960e754af0eb7d.tar.gz
rockbox-e4af86a834405b91b6c8ed38aa960e754af0eb7d.zip
rbutil: build our libraries in the build folder like everything else. Centralize the build rules for them within the project file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23216 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--rbutil/rbutilqt/rbutilqt.pro45
1 files changed, 16 insertions, 29 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro
index 959a10e10d..c1178b8967 100644
--- a/rbutil/rbutilqt/rbutilqt.pro
+++ b/rbutil/rbutilqt/rbutilqt.pro
@@ -9,10 +9,12 @@ unix:!mac:!noccache {
9 } 9 }
10} 10}
11 11
12OBJECTS_DIR = $$OUT_PWD/build/o 12MYBUILDDIR = $$OUT_PWD/build/
13UI_DIR = $$OUT_PWD/build/ui 13OBJECTS_DIR = $$MYBUILDDIR/o
14MOC_DIR = $$OUT_PWD/build/moc 14UI_DIR = $$MYBUILDDIR/ui
15RCC_DIR = $$OUT_PWD/build/rcc 15MOC_DIR = $$MYBUILDDIR/moc
16RCC_DIR = $$MYBUILDDIR/rcc
17
16 18
17# check version of Qt installation 19# check version of Qt installation
18VER = $$find(QT_VERSION, ^4\.[3-9]+.*) 20VER = $$find(QT_VERSION, ^4\.[3-9]+.*)
@@ -35,14 +37,19 @@ LIBSPEEX = $$system(pkg-config --silence-errors --libs speex)
35 LIBSPEEX += $$system(pkg-config --silence-errors --libs speexdsp) 37 LIBSPEEX += $$system(pkg-config --silence-errors --libs speexdsp)
36 LIBS += $$LIBSPEEX 38 LIBS += $$LIBSPEEX
37} 39}
40# custom rules for rockbox-specific libs
38!mac { 41!mac {
39rbspeex.commands = @$(MAKE) TARGET_DIR=$$OUT_PWD/ -C $$RBBASE_DIR/tools/rbspeex librbspeex.a 42rbspeex.commands = @$(MAKE) TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/tools/rbspeex librbspeex.a
43libucl.commands = @$(MAKE) TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/tools/ucl/src libucl.a
44libmkamsboot.commands = @$(MAKE) TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/rbutil/mkamsboot libmkamsboot.a
40} 45}
41mac { 46mac {
42rbspeex.commands = @$(MAKE) TARGET_DIR=$$OUT_PWD/ -C $$RBBASE_DIR/tools/rbspeex librbspeex-universal 47rbspeex.commands = @$(MAKE) TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/tools/rbspeex librbspeex-universal
48libucl.commands = @$(MAKE) TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/tools/ucl/src libucl-universal
49libmkamsboot.commands = @$(MAKE) TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/rbutil/mkamsboot libmkamsboot-universal
43} 50}
44QMAKE_EXTRA_TARGETS += rbspeex 51QMAKE_EXTRA_TARGETS += rbspeex libucl libmkamsboot
45PRE_TARGETDEPS += rbspeex 52PRE_TARGETDEPS += rbspeex libucl libmkamsboot
46 53
47# rule for creating ctags file 54# rule for creating ctags file
48tags.commands = ctags -R --c++-kinds=+p --fields=+iaS --extra=+q $(SOURCES) 55tags.commands = ctags -R --c++-kinds=+p --fields=+iaS --extra=+q $(SOURCES)
@@ -56,26 +63,6 @@ QMAKE_EXTRA_TARGETS += lrelease
56 PRE_TARGETDEPS += lrelease 63 PRE_TARGETDEPS += lrelease
57} 64}
58 65
59#custom rules for libucl.a
60!mac {
61libucl.commands = @$(MAKE) TARGET_DIR=$$OUT_PWD/ -C $$RBBASE_DIR/tools/ucl/src libucl.a
62}
63mac {
64libucl.commands = @$(MAKE) TARGET_DIR=$$OUT_PWD/ -C $$RBBASE_DIR/tools/ucl/src libucl-universal
65}
66QMAKE_EXTRA_TARGETS += libucl
67PRE_TARGETDEPS += libucl
68
69#custom rules for libmkamsboot.a
70!mac {
71libmkamsboot.commands = @$(MAKE) TARGET_DIR=$$OUT_PWD/ -C $$RBBASE_DIR/rbutil/mkamsboot libmkamsboot.a
72}
73mac {
74libmkamsboot.commands = @$(MAKE) TARGET_DIR=$$OUT_PWD/ -C $$RBBASE_DIR/rbutil/mkamsboot libmkamsboot-universal
75}
76QMAKE_EXTRA_TARGETS += libmkamsboot
77PRE_TARGETDEPS += libmkamsboot
78
79SOURCES += rbutilqt.cpp \ 66SOURCES += rbutilqt.cpp \
80 main.cpp \ 67 main.cpp \
81 install.cpp \ 68 install.cpp \
@@ -192,7 +179,7 @@ INCLUDEPATH += $$RBBASE_DIR/rbutil/ipodpatcher $$RBBASE_DIR/rbutil/sansapatcher
192 179
193DEPENDPATH = $$INCLUDEPATH 180DEPENDPATH = $$INCLUDEPATH
194 181
195LIBS += -L$$OUT_PWD -lrbspeex -lmkamsboot -lucl 182LIBS += -L$$OUT_PWD -L$$MYBUILDDIR -lrbspeex -lmkamsboot -lucl
196 183
197TEMPLATE = app 184TEMPLATE = app
198dbg { 185dbg {