2 CCACHE
= $$
system(which ccache
)
4 message("using ccache")
15 # check version of Qt installation
16 VER
= $$
find(QT_VERSION
, ^
4\
.[3-9]+.*)
18 !isEmpty(QT_VERSION
) error("Qt found:" $$
[QT_VERSION
])
19 error("Qt >= 4.3 required!")
21 message("Qt version used:" $$VER
)
23 # add a custom rule for pre-building librbspeex
25 rbspeex
.commands
= @$
(MAKE
) -C
../../tools
/rbspeex librbspeex
.a
28 rbspeex
.commands
= @$
(MAKE
) -C
../../tools
/rbspeex librbspeex
-universal
30 QMAKE_EXTRA_TARGETS
+= rbspeex
31 PRE_TARGETDEPS
+= rbspeex
33 # rule for creating ctags file
34 tags
.commands
= ctags
-R
--c
++-kinds
=+p
--fields
=+iaS
--extra
=+q $
(SOURCES
)
35 tags
.depends
= $
(SOURCES
)
36 QMAKE_EXTRA_TARGETS
+= tags
38 # add a custom rule for making the translations
39 lrelease
.commands
= $$
[QT_INSTALL_BINS
]/lrelease
-silent rbutilqt
.pro
40 QMAKE_EXTRA_TARGETS
+= lrelease
42 PRE_TARGETDEPS
+= lrelease
45 #custom rules for libucl.a
47 libucl
.commands
= @$
(MAKE
) -C
../../tools
/ucl
/src libucl
.a
50 libucl
.commands
= @$
(MAKE
) -C
../../tools
/ucl
/src libucl
-universal
52 QMAKE_EXTRA_TARGETS
+= libucl
53 PRE_TARGETDEPS
+= libucl
55 #custom rules for libmkamsboot.a
57 libmkamsboot
.commands
= @$
(MAKE
) -C
../mkamsboot libmkamsboot
.a
60 libmkamsboot
.commands
= @$
(MAKE
) -C
../mkamsboot libmkamsboot
-universal
62 QMAKE_EXTRA_TARGETS
+= libmkamsboot
63 PRE_TARGETDEPS
+= libmkamsboot
65 SOURCES
+= rbutilqt
.cpp \
72 base
/zipinstaller
.cpp \
73 progressloggergui
.cpp \
74 installtalkwindow
.cpp \
76 base
/talkgenerator
.cpp \
77 base
/autodetection
.cpp \
78 ../ipodpatcher
/ipodpatcher
.c \
79 ../sansapatcher
/sansapatcher
.c \
80 ../chinachippatcher
/chinachip
.c \
82 themesinstallwindow
.cpp \
89 base
/encttssettings
.cpp \
91 ../../tools
/wavtrim
.c \
92 ../../tools
/voicefont
.c \
94 createvoicewindow
.cpp \
101 base
/bootloaderinstallbase
.cpp \
102 base
/bootloaderinstallmi4
.cpp \
103 base
/bootloaderinstallhex
.cpp \
104 base
/bootloaderinstallipod
.cpp \
105 base
/bootloaderinstallsansa
.cpp \
106 base
/bootloaderinstallfile
.cpp \
107 base
/bootloaderinstallchinachip
.cpp \
108 base
/bootloaderinstallams
.cpp \
109 ../../tools
/mkboot
.c \
112 HEADERS
+= rbutilqt
.h \
122 base
/zipinstaller
.h \
123 installtalkwindow
.h \
125 base
/talkgenerator
.h \
126 base
/autodetection
.h \
127 base
/progressloggerinterface
.h \
128 progressloggergui
.h \
129 ../ipodpatcher
/ipodpatcher
.h \
130 ../ipodpatcher
/ipodio
.h \
131 ../ipodpatcher
/parttypes
.h \
132 ../sansapatcher
/sansapatcher
.h \
133 ../sansapatcher
/sansaio
.h \
134 ../chinachippatcher
/chinachip
.h \
135 irivertools
/h100sums
.h \
136 irivertools
/h120sums
.h \
137 irivertools
/h300sums
.h \
139 themesinstallwindow
.h \
146 base
/encttssettings
.h \
148 ../../tools
/wavtrim
.h \
149 ../../tools
/voicefont
.h \
151 createvoicewindow
.h \
158 base
/bootloaderinstallbase
.h \
159 base
/bootloaderinstallmi4
.h \
160 base
/bootloaderinstallhex
.h \
161 base
/bootloaderinstallipod
.h \
162 base
/bootloaderinstallsansa
.h \
163 base
/bootloaderinstallfile
.h \
164 base
/bootloaderinstallchinachip
.h \
165 base
/bootloaderinstallams
.h \
166 ../../tools
/mkboot
.h \
169 # Needed by QT on Win
170 INCLUDEPATH
= . irivertools zip zlib
../ipodpatcher
../sansapatcher
../../tools
/rbspeex
../../tools
173 LIBS
+= -L
../../tools
/rbspeex
-lrbspeex
-L
../mkamsboot
-lmkamsboot
-L
../../tools
/ucl
/src
/ -lucl
177 CONFIG
+= debug thread qt warn_on
178 DEFINES
-= QT_NO_DEBUG_OUTPUT
182 CONFIG
+= release thread qt
183 DEFINES
-= QT_NO_DEBUG_OUTPUT
190 FORMS
+= rbutilqtfrm
.ui \
193 progressloggerfrm
.ui \
195 browsedirtreefrm
.ui \
197 themesinstallfrm
.ui \
204 RESOURCES
+= rbutilqt
.qrc
206 RESOURCES
+= rbutilqt
-win
.qrc
209 RESOURCES
+= rbutilqt
-lang
.qrc
212 TRANSLATIONS
+= lang
/rbutil_de
.ts \
220 lang
/rbutil_pt_BR
.ts \
222 lang
/rbutil_zh_CN
.ts \
223 lang
/rbutil_zh_TW
.ts \
227 DEFINES
+= RBUTIL _LARGEFILE64_SOURCE
230 SOURCES
+= ../ipodpatcher
/ipodio
-win32
.c
231 SOURCES
+= ../ipodpatcher
/ipodio
-win32
-scsi
.c
232 SOURCES
+= ../sansapatcher
/sansaio
-win32
.c
233 RC_FILE
= rbutilqt
.rc
234 LIBS
+= -lsetupapi
-lnetapi32
238 SOURCES
+= ../ipodpatcher
/ipodio
-posix
.c
239 SOURCES
+= ../sansapatcher
/sansaio
-posix
.c
241 unix
:!static
:!libusb1
{
244 unix
:!static
:libusb1
{
250 # force statically linking of libusb. Libraries that are appended
251 # later will get linked dynamically again.
252 LIBS
+= -Wl
,-Bstatic
-lusb
-Wl
,-Bdynamic
256 QMAKE_MAC_SDK
=/Developer
/SDKs
/MacOSX10
.4u
.sdk
257 QMAKE_LFLAGS_PPC
=-mmacosx
-version
-min
=10.4 -arch ppc
258 QMAKE_LFLAGS_X86
=-mmacosx
-version
-min
=10.4 -arch i386
260 LIBS
+= -L
/usr
/local
/lib
-framework IOKit
261 INCLUDEPATH
+= /usr
/local
/include
262 QMAKE_INFO_PLIST
= Info
.plist
263 RC_FILE
= icons
/rbutilqt
.icns
265 # rule for creating a dmg file
266 dmg
.commands
= hdiutil create
-ov
-srcfolder rbutilqt
.app
/ rbutil
.dmg
267 QMAKE_EXTRA_TARGETS
+= dmg
271 QTPLUGIN
+= qtaccessiblewidgets
272 LIBS
+= -L$$
(QT_BUILD_TREE
)/plugins
/accessible
-lqtaccessiblewidgets
275 message("using static plugin")
279 target
.path
= /usr
/local
/bin