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
46 SOURCES
+= rbutilqt
.cpp \
53 base
/zipinstaller
.cpp \
54 progressloggergui
.cpp \
55 installtalkwindow
.cpp \
57 base
/autodetection
.cpp \
58 ../ipodpatcher
/ipodpatcher
.c \
59 ../sansapatcher
/sansapatcher
.c \
61 themesinstallwindow
.cpp \
68 base
/encttssettings
.cpp \
70 ../../tools
/wavtrim
.c \
71 ../../tools
/voicefont
.c \
73 createvoicewindow
.cpp \
79 base
/bootloaderinstallbase
.cpp \
80 base
/bootloaderinstallmi4
.cpp \
81 base
/bootloaderinstallhex
.cpp \
82 base
/bootloaderinstallipod
.cpp \
83 base
/bootloaderinstallsansa
.cpp \
84 base
/bootloaderinstallfile
.cpp \
85 ../../tools
/mkboot
.c \
88 HEADERS
+= rbutilqt
.h \
101 base
/autodetection
.h \
102 progressloggerinterface
.h \
103 progressloggergui
.h \
104 ../ipodpatcher
/ipodpatcher
.h \
105 ../ipodpatcher
/ipodio
.h \
106 ../ipodpatcher
/parttypes
.h \
107 ../sansapatcher
/sansapatcher
.h \
108 ../sansapatcher
/sansaio
.h \
109 irivertools
/h100sums
.h \
110 irivertools
/h120sums
.h \
111 irivertools
/h300sums
.h \
113 themesinstallwindow
.h \
120 base
/encttssettings
.h \
122 ../../tools
/wavtrim
.h \
123 ../../tools
/voicefont
.h \
125 createvoicewindow
.h \
131 base
/bootloaderinstallbase
.h \
132 base
/bootloaderinstallmi4
.h \
133 base
/bootloaderinstallhex
.h \
134 base
/bootloaderinstallipod
.h \
135 base
/bootloaderinstallsansa
.h \
136 base
/bootloaderinstallfile
.h \
137 ../../tools
/mkboot
.h \
140 # Needed by QT on Win
141 INCLUDEPATH
= . irivertools zip zlib
../ipodpatcher
../sansapatcher
../../tools
/rbspeex
../../tools
144 LIBS
+= -L
../../tools
/rbspeex
-lrbspeex
148 CONFIG
+= debug thread qt warn_on
149 DEFINES
-= QT_NO_DEBUG_OUTPUT
153 CONFIG
+= release thread qt
154 DEFINES
+= QT_NO_DEBUG_OUTPUT
160 FORMS
+= rbutilqtfrm
.ui \
163 progressloggerfrm
.ui \
165 browsedirtreefrm
.ui \
167 themesinstallfrm
.ui \
173 RESOURCES
+= rbutilqt
.qrc
175 RESOURCES
+= rbutilqt
-win
.qrc
178 RESOURCES
+= rbutilqt
-lang
.qrc
181 TRANSLATIONS
+= lang
/rbutil_de
.ts \
190 lang
/rbutil_zh_CN
.ts \
191 lang
/rbutil_zh_TW
.ts \
195 DEFINES
+= RBUTIL _LARGEFILE64_SOURCE
198 SOURCES
+= ../ipodpatcher
/ipodio
-win32
.c
199 SOURCES
+= ../sansapatcher
/sansaio
-win32
.c
200 RC_FILE
= rbutilqt
.rc
201 LIBS
+= -lsetupapi
-lnetapi32
205 SOURCES
+= ../ipodpatcher
/ipodio
-posix
.c
206 SOURCES
+= ../sansapatcher
/sansaio
-posix
.c
212 # force statically linking of libusb. Libraries that are appended
213 # later will get linked dynamically again.
214 LIBS
+= -Wl
,-Bstatic
-lusb
-Wl
,-Bdynamic
218 QMAKE_MAC_SDK
=/Developer
/SDKs
/MacOSX10
.4u
.sdk
219 QMAKE_LFLAGS_PPC
=-mmacosx
-version
-min
=10.4 -arch ppc
220 QMAKE_LFLAGS_X86
=-mmacosx
-version
-min
=10.4 -arch i386
222 LIBS
+= -L
/usr
/local
/lib
-framework IOKit
223 INCLUDEPATH
+= /usr
/local
/include
224 QMAKE_INFO_PLIST
= Info
.plist
225 RC_FILE
= icons
/rbutilqt
.icns
227 # rule for creating a dmg file
228 dmg
.commands
= hdiutil create
-ov
-srcfolder rbutilqt
.app
/ rbutil
.dmg
229 QMAKE_EXTRA_TARGETS
+= dmg
233 QTPLUGIN
+= qtaccessiblewidgets
234 LIBS
+= -L$$
(QT_BUILD_TREE
)/plugins
/accessible
-lqtaccessiblewidgets
237 message("using static plugin")
241 target
.path
= /usr
/local
/bin