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 \
54 progressloggergui
.cpp \
55 installtalkwindow
.cpp \
57 base
/autodetection
.cpp \
58 ../ipodpatcher
/ipodpatcher
.c \
59 ../sansapatcher
/sansapatcher
.c \
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 \
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 installthemesfrm
.ui \
177 RESOURCES
+= rbutilqt
.qrc
179 RESOURCES
+= rbutilqt
-win
.qrc
182 RESOURCES
+= rbutilqt
-lang
.qrc
185 TRANSLATIONS
+= lang
/rbutil_de
.ts \
194 lang
/rbutil_zh_CN
.ts \
195 lang
/rbutil_zh_TW
.ts \
199 DEFINES
+= RBUTIL _LARGEFILE64_SOURCE
202 SOURCES
+= ../ipodpatcher
/ipodio
-win32
.c
203 SOURCES
+= ../sansapatcher
/sansaio
-win32
.c
204 RC_FILE
= rbutilqt
.rc
205 LIBS
+= -lsetupapi
-lnetapi32
209 SOURCES
+= ../ipodpatcher
/ipodio
-posix
.c
210 SOURCES
+= ../sansapatcher
/sansaio
-posix
.c
216 # force statically linking of libusb. Libraries that are appended
217 # later will get linked dynamically again.
218 LIBS
+= -Wl
,-Bstatic
-lusb
-Wl
,-Bdynamic
222 QMAKE_MAC_SDK
=/Developer
/SDKs
/MacOSX10
.4u
.sdk
223 QMAKE_LFLAGS_PPC
=-mmacosx
-version
-min
=10.4 -arch ppc
224 QMAKE_LFLAGS_X86
=-mmacosx
-version
-min
=10.4 -arch i386
226 LIBS
+= -L
/usr
/local
/lib
-framework IOKit
227 INCLUDEPATH
+= /usr
/local
/include
228 QMAKE_INFO_PLIST
= Info
.plist
229 RC_FILE
= icons
/rbutilqt
.icns
231 # rule for creating a dmg file
232 dmg
.commands
= hdiutil create
-ov
-srcfolder rbutilqt
.app
/ rbutil
.dmg
233 QMAKE_EXTRA_TARGETS
+= dmg
237 QTPLUGIN
+= qtaccessiblewidgets
238 LIBS
+= -L$$
(QT_BUILD_TREE
)/plugins
/accessible
-lqtaccessiblewidgets
241 message("using static plugin")
245 target
.path
= /usr
/local
/bin