2 CCACHE
= $$
system(which ccache
)
4 message("using ccache")
15 # add a custom rule for pre-building librbspeex
16 rbspeex
.commands
= @$
(MAKE
) -C
../../tools
/rbspeex librbspeex
.a
17 QMAKE_EXTRA_TARGETS
+= rbspeex
18 PRE_TARGETDEPS
+= rbspeex
20 # rule for creating ctags file
21 tags
.commands
= ctags
-R
--c
++-kinds
=+p
--fields
=+iaS
--extra
=+q $
(SOURCES
)
22 tags
.depends
= $
(SOURCES
)
23 QMAKE_EXTRA_TARGETS
+= tags
25 # add a custom rule for making the translations
26 lrelease
.commands
= $$
[QT_INSTALL_BINS
]/lrelease
-silent rbutilqt
.pro
27 QMAKE_EXTRA_TARGETS
+= lrelease
29 PRE_TARGETDEPS
+= lrelease
33 SOURCES
+= rbutilqt
.cpp \
41 installbootloader
.cpp \
42 progressloggergui
.cpp \
43 installtalkwindow
.cpp \
46 ../ipodpatcher
/ipodpatcher
.c \
47 ../sansapatcher
/sansapatcher
.c \
48 irivertools
/irivertools
.cpp \
49 irivertools
/md5sum
.cpp \
61 ../../tools
/wavtrim
.c \
62 ../../tools
/voicefont
.c \
64 createvoicewindow
.cpp \
71 HEADERS
+= rbutilqt
.h \
86 progressloggerinterface
.h \
88 ../ipodpatcher
/ipodpatcher
.h \
89 ../ipodpatcher
/ipodio
.h \
90 ../ipodpatcher
/parttypes
.h \
91 ../sansapatcher
/sansapatcher
.h \
92 ../sansapatcher
/sansaio
.h \
93 irivertools
/irivertools
.h \
94 irivertools
/md5sum
.h \
95 irivertools
/h100sums
.h \
96 irivertools
/h120sums
.h \
97 irivertools
/h300sums
.h \
98 irivertools
/checksums
.h \
110 ../../tools
/wavtrim
.h \
111 ../../tools
/voicefont
.h \
113 createvoicewindow
.h \
120 # Needed by QT on Win
121 INCLUDEPATH
= . irivertools zip zlib
../ipodpatcher
../sansapatcher
../../tools
/rbspeex
../../tools
123 LIBS
+= -L
../../tools
/rbspeex
-lrbspeex
127 CONFIG
+= debug thread qt warn_on
128 DEFINES
-= QT_NO_DEBUG_OUTPUT
132 CONFIG
+= release thread qt
133 DEFINES
+= QT_NO_DEBUG_OUTPUT
139 FORMS
+= rbutilqtfrm
.ui \
142 progressloggerfrm
.ui \
144 browsedirtreefrm
.ui \
146 installthemesfrm
.ui \
157 RESOURCES
+= rbutilqt
.qrc
159 RESOURCES
+= rbutilqt
-win
.qrc
162 RESOURCES
+= rbutilqt
-lang
.qrc
165 TRANSLATIONS
+= rbutil_de
.ts \
172 DEFINES
+= RBUTIL _LARGEFILE64_SOURCE
175 SOURCES
+= ../ipodpatcher
/ipodio
-win32
.c
176 SOURCES
+= ../sansapatcher
/sansaio
-win32
.c
177 RC_FILE
= rbutilqt
.rc
178 LIBS
+= -lsetupapi
-lnetapi32
182 SOURCES
+= ../ipodpatcher
/ipodio
-posix
.c
183 SOURCES
+= ../sansapatcher
/sansaio
-posix
.c
189 # force statically linking of libusb. Libraries that are appended
190 # later will get linked dynamically again.
191 LIBS
+= -Wl
,-Bstatic
-lusb
-Wl
,-Bdynamic
195 QMAKE_MAC_SDK
=/Developer
/SDKs
/MacOSX10
.4u
.sdk
196 QMAKE_LFLAGS_PPC
=-mmacosx
-version
-min
=10.4
197 QMAKE_LFLAGS_X86
=-mmacosx
-version
-min
=10.4
199 LIBS
+= -L
/usr
/local
/lib
-framework IOKit
200 INCLUDEPATH
+= /usr
/local
/include
201 QMAKE_INFO_PLIST
= Info
.plist
202 RC_FILE
= icons
/rbutilqt
.icns
206 QTPLUGIN
+= qtaccessiblewidgets
207 LIBS
+= -L$$
(QT_BUILD_TREE
)/plugins
/accessible
-lqtaccessiblewidgets
209 message("using static plugin")
213 target
.path
= /usr
/local
/bin