summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/rbutilqt.pro
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.pro')
-rw-r--r--rbutil/rbutilqt/rbutilqt.pro42
1 files changed, 25 insertions, 17 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro
index 78c399ebd7..cdae11dc5c 100644
--- a/rbutil/rbutilqt/rbutilqt.pro
+++ b/rbutil/rbutilqt/rbutilqt.pro
@@ -1,3 +1,6 @@
1
2
3# ccache
1unix:!mac { 4unix:!mac {
2 CCACHE = $$system(which ccache) 5 CCACHE = $$system(which ccache)
3 !isEmpty(CCACHE) { 6 !isEmpty(CCACHE) {
@@ -7,10 +10,10 @@ unix:!mac {
7 } 10 }
8} 11}
9 12
10OBJECTS_DIR = build/o 13OBJECTS_DIR = $$OUT_PWD/build/o
11UI_DIR = build/ui 14UI_DIR = $$OUT_PWD/build/ui
12MOC_DIR = build/moc 15MOC_DIR = $$OUT_PWD/build/moc
13RCC_DIR = build/rcc 16RCC_DIR = $$OUT_PWD/build/rcc
14 17
15# check version of Qt installation 18# check version of Qt installation
16VER = $$find(QT_VERSION, ^4\.[3-9]+.*) 19VER = $$find(QT_VERSION, ^4\.[3-9]+.*)
@@ -20,12 +23,17 @@ isEmpty(VER) {
20} 23}
21message("Qt version used:" $$VER) 24message("Qt version used:" $$VER)
22 25
26RBBASE_DIR = $$_PRO_FILE_PWD_
27RBBASE_DIR = $$replace(RBBASE_DIR,/rbutil/rbutilqt,)
28
29message("Rockbox Base dir: "$$RBBASE_DIR)
30
23# add a custom rule for pre-building librbspeex 31# add a custom rule for pre-building librbspeex
24!mac { 32!mac {
25rbspeex.commands = @$(MAKE) -C ../../tools/rbspeex librbspeex.a 33rbspeex.commands = @$(MAKE) TARGET_DIR=$$OUT_PWD/ -C $$RBBASE_DIR/tools/rbspeex librbspeex.a
26} 34}
27mac { 35mac {
28rbspeex.commands = @$(MAKE) -C ../../tools/rbspeex librbspeex-universal 36rbspeex.commands = @$(MAKE) TARGET_DIR=$$OUT_PWD/ -C $$RBBASE_DIR/tools/rbspeex librbspeex-universal
29} 37}
30QMAKE_EXTRA_TARGETS += rbspeex 38QMAKE_EXTRA_TARGETS += rbspeex
31PRE_TARGETDEPS += rbspeex 39PRE_TARGETDEPS += rbspeex
@@ -36,7 +44,7 @@ tags.depends = $(SOURCES)
36QMAKE_EXTRA_TARGETS += tags 44QMAKE_EXTRA_TARGETS += tags
37 45
38# add a custom rule for making the translations 46# add a custom rule for making the translations
39lrelease.commands = $$[QT_INSTALL_BINS]/lrelease -silent rbutilqt.pro 47lrelease.commands = $$[QT_INSTALL_BINS]/lrelease -silent $$_PRO_FILE_
40QMAKE_EXTRA_TARGETS += lrelease 48QMAKE_EXTRA_TARGETS += lrelease
41!dbg { 49!dbg {
42 PRE_TARGETDEPS += lrelease 50 PRE_TARGETDEPS += lrelease
@@ -44,20 +52,20 @@ QMAKE_EXTRA_TARGETS += lrelease
44 52
45#custom rules for libucl.a 53#custom rules for libucl.a
46!mac { 54!mac {
47libucl.commands = @$(MAKE) -C ../../tools/ucl/src libucl.a 55libucl.commands = @$(MAKE) TARGET_DIR=$$OUT_PWD/ -C $$RBBASE_DIR/tools/ucl/src libucl.a
48} 56}
49mac { 57mac {
50libucl.commands = @$(MAKE) -C ../../tools/ucl/src libucl-universal 58libucl.commands = @$(MAKE) TARGET_DIR=$$OUT_PWD/ -C $$RBBASE_DIR/tools/ucl/src libucl-universal
51} 59}
52QMAKE_EXTRA_TARGETS += libucl 60QMAKE_EXTRA_TARGETS += libucl
53PRE_TARGETDEPS += libucl 61PRE_TARGETDEPS += libucl
54 62
55#custom rules for libmkamsboot.a 63#custom rules for libmkamsboot.a
56!mac { 64!mac {
57libmkamsboot.commands = @$(MAKE) -C ../mkamsboot libmkamsboot.a 65libmkamsboot.commands = @$(MAKE) TARGET_DIR=$$OUT_PWD/ -C $$RBBASE_DIR/rbutil/mkamsboot libmkamsboot.a
58} 66}
59mac { 67mac {
60libmkamsboot.commands = @$(MAKE) -C ../mkamsboot libmkamsboot-universal 68libmkamsboot.commands = @$(MAKE) TARGET_DIR=$$OUT_PWD/ -C $$RBBASE_DIR/rbutil/mkamsboot libmkamsboot-universal
61} 69}
62QMAKE_EXTRA_TARGETS += libmkamsboot 70QMAKE_EXTRA_TARGETS += libmkamsboot
63PRE_TARGETDEPS += libmkamsboot 71PRE_TARGETDEPS += libmkamsboot
@@ -167,10 +175,10 @@ HEADERS += rbutilqt.h \
167 ../../tools/iriver.h 175 ../../tools/iriver.h
168 176
169# Needed by QT on Win 177# Needed by QT on Win
170INCLUDEPATH = . irivertools zip zlib ../ipodpatcher ../sansapatcher ../../tools/rbspeex ../../tools 178INCLUDEPATH = $$_PRO_FILE_PWD_ $$_PRO_FILE_PWD_/irivertools $$_PRO_FILE_PWD_/zip $$_PRO_FILE_PWD_/zlib $$_PRO_FILE_PWD_/base
171INCLUDEPATH += base 179INCLUDEPATH += $$RBBASE_DIR/rbutil/ipodpatcher $$RBBASE_DIR/rbutil/sansapatcher $$RBBASE_DIR/tools/rbspeex $$RBBASE_DIR/tools
172 180
173LIBS += -L../../tools/rbspeex -lrbspeex -L../mkamsboot -lmkamsboot -L../../tools/ucl/src/ -lucl 181LIBS += -L$$OUT_PWD -lrbspeex -lmkamsboot -lucl
174 182
175TEMPLATE = app 183TEMPLATE = app
176dbg { 184dbg {
@@ -201,12 +209,12 @@ FORMS += rbutilqtfrm.ui \
201 sysinfofrm.ui \ 209 sysinfofrm.ui \
202 systracefrm.ui 210 systracefrm.ui
203 211
204RESOURCES += rbutilqt.qrc 212RESOURCES += $$_PRO_FILE_PWD_/rbutilqt.qrc
205win32 { 213win32 {
206 RESOURCES += rbutilqt-win.qrc 214 RESOURCES += $$_PRO_FILE_PWD_/rbutilqt-win.qrc
207} 215}
208!dbg { 216!dbg {
209 RESOURCES += rbutilqt-lang.qrc 217 RESOURCES += $$_PRO_FILE_PWD_/rbutilqt-lang.qrc
210} 218}
211 219
212TRANSLATIONS += lang/rbutil_de.ts \ 220TRANSLATIONS += lang/rbutil_de.ts \