2 CCACHE
= $$
system(which ccache
)
4 message("using ccache")
15 # add a custom rule for pre-building librbspeex
17 rbspeex
.commands
= @$
(MAKE
) -C
../../tools
/rbspeex librbspeex
.a
18 QMAKE_EXTRA_TARGETS
+= rbspeex
19 PRE_TARGETDEPS
+= rbspeex
22 rbspeex0
.commands
= @$
(MAKE
) -C
../../tools
/rbspeex clean
23 rbspeex1
.commands
= @$
(MAKE
) -C
../../tools
/rbspeex ARCH
=ppc librbspeexppc
.a
24 rbspeex2
.commands
= @$
(MAKE
) -C
../../tools
/rbspeex clean
25 rbspeex3
.commands
= @$
(MAKE
) -C
../../tools
/rbspeex ARCH
=i386 librbspeexi386
.a
26 rbspeex4
.commands
= @$
(MAKE
) -C
../../tools
/rbspeex universal
27 rbspeex2
.depends
= rbspeex1
28 rbspeex3
.depends
= rbspeex2
29 rbspeex4
.depends
= rbspeex3
30 QMAKE_EXTRA_TARGETS
+= rbspeex1 rbspeex2 rbspeex3 rbspeex4
31 PRE_TARGETDEPS
+= rbspeex1 rbspeex2 rbspeex4 rbspeex4
34 # rule for creating ctags file
35 tags
.commands
= ctags
-R
--c
++-kinds
=+p
--fields
=+iaS
--extra
=+q $
(SOURCES
)
36 tags
.depends
= $
(SOURCES
)
37 QMAKE_EXTRA_TARGETS
+= tags
39 # add a custom rule for making the translations
40 lrelease
.commands
= $$
[QT_INSTALL_BINS
]/lrelease
-silent rbutilqt
.pro
41 QMAKE_EXTRA_TARGETS
+= lrelease
43 PRE_TARGETDEPS
+= lrelease
47 SOURCES
+= rbutilqt
.cpp \
55 installbootloader
.cpp \
56 progressloggergui
.cpp \
57 installtalkwindow
.cpp \
60 ../ipodpatcher
/ipodpatcher
.c \
61 ../sansapatcher
/sansapatcher
.c \
62 irivertools
/irivertools
.cpp \
63 irivertools
/md5sum
.cpp \
75 ../../tools
/wavtrim
.c \
76 ../../tools
/voicefont
.c \
78 createvoicewindow
.cpp \
85 HEADERS
+= rbutilqt
.h \
100 progressloggerinterface
.h \
101 progressloggergui
.h \
102 ../ipodpatcher
/ipodpatcher
.h \
103 ../ipodpatcher
/ipodio
.h \
104 ../ipodpatcher
/parttypes
.h \
105 ../sansapatcher
/sansapatcher
.h \
106 ../sansapatcher
/sansaio
.h \
107 irivertools
/irivertools
.h \
108 irivertools
/md5sum
.h \
109 irivertools
/h100sums
.h \
110 irivertools
/h120sums
.h \
111 irivertools
/h300sums
.h \
112 irivertools
/checksums
.h \
124 ../../tools
/wavtrim
.h \
125 ../../tools
/voicefont
.h \
127 createvoicewindow
.h \
134 # Needed by QT on Win
135 INCLUDEPATH
= . irivertools zip zlib
../ipodpatcher
../sansapatcher
../../tools
/rbspeex
../../tools
137 LIBS
+= -L
../../tools
/rbspeex
-lrbspeex
141 CONFIG
+= debug thread qt warn_on
142 DEFINES
-= QT_NO_DEBUG_OUTPUT
146 CONFIG
+= release thread qt
147 DEFINES
+= QT_NO_DEBUG_OUTPUT
153 FORMS
+= rbutilqtfrm
.ui \
156 progressloggerfrm
.ui \
158 browsedirtreefrm
.ui \
160 installthemesfrm
.ui \
171 RESOURCES
+= rbutilqt
.qrc
173 RESOURCES
+= rbutilqt
-win
.qrc
176 RESOURCES
+= rbutilqt
-lang
.qrc
179 TRANSLATIONS
+= rbutil_de
.ts \
186 DEFINES
+= RBUTIL _LARGEFILE64_SOURCE
189 SOURCES
+= ../ipodpatcher
/ipodio
-win32
.c
190 SOURCES
+= ../sansapatcher
/sansaio
-win32
.c
191 RC_FILE
= rbutilqt
.rc
192 LIBS
+= -lsetupapi
-lnetapi32
196 SOURCES
+= ../ipodpatcher
/ipodio
-posix
.c
197 SOURCES
+= ../sansapatcher
/sansaio
-posix
.c
203 # force statically linking of libusb. Libraries that are appended
204 # later will get linked dynamically again.
205 LIBS
+= -Wl
,-Bstatic
-lusb
-Wl
,-Bdynamic
209 QMAKE_MAC_SDK
=/Developer
/SDKs
/MacOSX10
.4u
.sdk
210 QMAKE_LFLAGS_PPC
=-mmacosx
-version
-min
=10.4 -arch ppc
211 QMAKE_LFLAGS_X86
=-mmacosx
-version
-min
=10.4 -arch i386
213 LIBS
+= -L
/usr
/local
/lib
-framework IOKit
214 INCLUDEPATH
+= /usr
/local
/include
215 QMAKE_INFO_PLIST
= Info
.plist
216 RC_FILE
= icons
/rbutilqt
.icns
218 # rule for creating a dmg file
219 dmg
.commands
= hdiutil create
-ov
-srcfolder rbutilqt
.app
/ rbutil
.dmg
220 QMAKE_EXTRA_TARGETS
+= dmg
224 QTPLUGIN
+= qtaccessiblewidgets
225 LIBS
+= -L$$
(QT_BUILD_TREE
)/plugins
/accessible
-lqtaccessiblewidgets
228 message("using static plugin")
232 target
.path
= /usr
/local
/bin