2007-08-07 18:05:48 +00:00
|
|
|
unix:!mac {
|
|
|
|
CCACHE = $$system(which ccache)
|
|
|
|
!isEmpty(CCACHE) {
|
|
|
|
message("using ccache")
|
|
|
|
QMAKE_CXX = ccache g++
|
|
|
|
QMAKE_CC = ccache gcc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
OBJECTS_DIR = build/o
|
|
|
|
UI_DIR = build/ui
|
|
|
|
MOC_DIR = build/moc
|
|
|
|
RCC_DIR = build/rcc
|
|
|
|
|
2007-12-15 15:36:40 +00:00
|
|
|
# add a custom rule for pre-building librbspeex
|
2008-07-09 21:41:41 +00:00
|
|
|
!mac {
|
2007-12-15 15:36:40 +00:00
|
|
|
rbspeex.commands = @$(MAKE) -C ../../tools/rbspeex librbspeex.a
|
2008-02-02 17:28:42 +00:00
|
|
|
QMAKE_EXTRA_TARGETS += rbspeex
|
|
|
|
PRE_TARGETDEPS += rbspeex
|
2008-07-09 21:41:41 +00:00
|
|
|
}
|
|
|
|
mac {
|
2008-07-09 22:10:09 +00:00
|
|
|
rbspeex0.commands = @$(MAKE) -C ../../tools/rbspeex clean
|
2008-07-09 21:41:41 +00:00
|
|
|
rbspeex1.commands = @$(MAKE) -C ../../tools/rbspeex ARCH=ppc librbspeexppc.a
|
|
|
|
rbspeex2.commands = @$(MAKE) -C ../../tools/rbspeex clean
|
|
|
|
rbspeex3.commands = @$(MAKE) -C ../../tools/rbspeex ARCH=i386 librbspeexi386.a
|
2008-07-09 21:56:41 +00:00
|
|
|
rbspeex4.commands = @$(MAKE) -C ../../tools/rbspeex universal
|
2008-07-09 21:41:41 +00:00
|
|
|
rbspeex2.depends = rbspeex1
|
|
|
|
rbspeex3.depends = rbspeex2
|
|
|
|
rbspeex4.depends = rbspeex3
|
|
|
|
QMAKE_EXTRA_TARGETS += rbspeex1 rbspeex2 rbspeex3 rbspeex4
|
|
|
|
PRE_TARGETDEPS += rbspeex1 rbspeex2 rbspeex4 rbspeex4
|
|
|
|
}
|
2007-12-15 15:36:40 +00:00
|
|
|
|
2008-06-15 20:53:51 +00:00
|
|
|
# rule for creating ctags file
|
|
|
|
tags.commands = ctags -R --c++-kinds=+p --fields=+iaS --extra=+q $(SOURCES)
|
|
|
|
tags.depends = $(SOURCES)
|
|
|
|
QMAKE_EXTRA_TARGETS += tags
|
|
|
|
|
2008-02-21 19:55:42 +00:00
|
|
|
# add a custom rule for making the translations
|
2008-02-02 17:28:42 +00:00
|
|
|
lrelease.commands = $$[QT_INSTALL_BINS]/lrelease -silent rbutilqt.pro
|
2008-01-19 18:33:33 +00:00
|
|
|
QMAKE_EXTRA_TARGETS += lrelease
|
2008-06-24 21:44:53 +00:00
|
|
|
!dbg {
|
|
|
|
PRE_TARGETDEPS += lrelease
|
|
|
|
}
|
2008-01-19 18:33:33 +00:00
|
|
|
|
|
|
|
|
2007-07-29 17:35:31 +00:00
|
|
|
SOURCES += rbutilqt.cpp \
|
|
|
|
main.cpp \
|
|
|
|
install.cpp \
|
|
|
|
httpget.cpp \
|
|
|
|
configure.cpp \
|
|
|
|
zip/zip.cpp \
|
|
|
|
zip/unzip.cpp \
|
|
|
|
installzip.cpp \
|
|
|
|
installbootloader.cpp \
|
2007-07-29 18:07:31 +00:00
|
|
|
progressloggergui.cpp \
|
2007-08-05 16:17:35 +00:00
|
|
|
installtalkwindow.cpp \
|
|
|
|
talkfile.cpp \
|
2007-08-05 19:48:04 +00:00
|
|
|
autodetection.cpp \
|
2007-07-29 17:35:31 +00:00
|
|
|
../ipodpatcher/ipodpatcher.c \
|
|
|
|
../sansapatcher/sansapatcher.c \
|
|
|
|
irivertools/irivertools.cpp \
|
2007-08-07 16:48:45 +00:00
|
|
|
irivertools/md5sum.cpp \
|
2007-08-10 22:17:43 +00:00
|
|
|
browsedirtree.cpp \
|
2007-08-15 21:54:15 +00:00
|
|
|
installthemes.cpp \
|
2007-08-10 22:17:43 +00:00
|
|
|
uninstall.cpp \
|
2007-08-15 14:16:20 +00:00
|
|
|
uninstallwindow.cpp \
|
2007-09-14 22:16:22 +00:00
|
|
|
utils.cpp \
|
2007-08-21 18:24:55 +00:00
|
|
|
browseof.cpp \
|
2007-12-14 19:26:54 +00:00
|
|
|
preview.cpp \
|
2007-12-15 13:13:57 +00:00
|
|
|
encoders.cpp \
|
2008-01-29 21:54:43 +00:00
|
|
|
encodersgui.cpp \
|
2008-01-11 23:59:12 +00:00
|
|
|
tts.cpp \
|
2008-01-29 21:54:43 +00:00
|
|
|
ttsgui.cpp \
|
2008-01-11 23:59:12 +00:00
|
|
|
../../tools/wavtrim.c \
|
|
|
|
../../tools/voicefont.c \
|
|
|
|
voicefile.cpp \
|
2008-01-25 00:12:25 +00:00
|
|
|
createvoicewindow.cpp \
|
2008-04-06 18:12:56 +00:00
|
|
|
rbsettings.cpp \
|
2008-05-10 17:53:15 +00:00
|
|
|
rbunzip.cpp \
|
2008-06-21 10:28:10 +00:00
|
|
|
rbzip.cpp \
|
2008-06-27 21:53:22 +00:00
|
|
|
sysinfo.cpp \
|
|
|
|
detect.cpp
|
2008-01-11 23:59:12 +00:00
|
|
|
|
2007-07-29 17:35:31 +00:00
|
|
|
HEADERS += rbutilqt.h \
|
|
|
|
install.h \
|
|
|
|
httpget.h \
|
|
|
|
configure.h \
|
|
|
|
zip/zip.h \
|
|
|
|
zip/unzip.h \
|
|
|
|
zip/zipentry_p.h \
|
|
|
|
zip/unzip_p.h \
|
|
|
|
zip/zip_p.h \
|
|
|
|
version.h \
|
|
|
|
installzip.h \
|
|
|
|
installbootloader.h \
|
2007-08-05 16:17:35 +00:00
|
|
|
installtalkwindow.h \
|
|
|
|
talkfile.h \
|
2007-08-05 19:48:04 +00:00
|
|
|
autodetection.h \
|
2007-07-29 18:07:31 +00:00
|
|
|
progressloggerinterface.h \
|
|
|
|
progressloggergui.h \
|
2007-07-29 17:35:31 +00:00
|
|
|
../ipodpatcher/ipodpatcher.h \
|
|
|
|
../ipodpatcher/ipodio.h \
|
|
|
|
../ipodpatcher/parttypes.h \
|
|
|
|
../sansapatcher/sansapatcher.h \
|
|
|
|
../sansapatcher/sansaio.h \
|
|
|
|
irivertools/irivertools.h \
|
|
|
|
irivertools/md5sum.h \
|
|
|
|
irivertools/h100sums.h \
|
|
|
|
irivertools/h120sums.h \
|
2007-08-03 16:20:48 +00:00
|
|
|
irivertools/h300sums.h \
|
2007-08-07 16:48:45 +00:00
|
|
|
irivertools/checksums.h \
|
2007-08-10 22:17:43 +00:00
|
|
|
browsedirtree.h \
|
2007-08-15 21:54:15 +00:00
|
|
|
installthemes.h \
|
2007-08-10 22:17:43 +00:00
|
|
|
uninstall.h \
|
2007-08-15 14:16:20 +00:00
|
|
|
uninstallwindow.h \
|
2007-09-15 12:33:38 +00:00
|
|
|
utils.h \
|
2007-08-21 18:24:55 +00:00
|
|
|
browseof.h \
|
2007-12-14 19:26:54 +00:00
|
|
|
preview.h \
|
2007-12-15 13:13:57 +00:00
|
|
|
encoders.h \
|
2008-01-29 21:54:43 +00:00
|
|
|
encodersgui.h \
|
2008-01-11 23:59:12 +00:00
|
|
|
tts.h \
|
2008-01-29 21:54:43 +00:00
|
|
|
ttsgui.h \
|
2008-01-11 23:59:12 +00:00
|
|
|
../../tools/wavtrim.h \
|
|
|
|
../../tools/voicefont.h \
|
|
|
|
voicefile.h \
|
2008-01-25 00:12:25 +00:00
|
|
|
createvoicewindow.h \
|
2008-04-06 18:12:56 +00:00
|
|
|
rbsettings.h \
|
2008-05-10 17:53:15 +00:00
|
|
|
rbunzip.h \
|
2008-06-21 10:28:10 +00:00
|
|
|
rbzip.h \
|
2008-06-27 21:53:22 +00:00
|
|
|
sysinfo.h \
|
|
|
|
detect.h
|
2007-08-26 20:32:20 +00:00
|
|
|
|
2007-08-07 18:05:48 +00:00
|
|
|
# Needed by QT on Win
|
2008-01-11 23:59:12 +00:00
|
|
|
INCLUDEPATH = . irivertools zip zlib ../ipodpatcher ../sansapatcher ../../tools/rbspeex ../../tools
|
2007-08-07 18:05:48 +00:00
|
|
|
|
2007-12-14 19:26:54 +00:00
|
|
|
LIBS += -L../../tools/rbspeex -lrbspeex
|
|
|
|
|
2007-07-29 17:35:31 +00:00
|
|
|
TEMPLATE = app
|
2007-09-02 22:11:46 +00:00
|
|
|
dbg {
|
|
|
|
CONFIG += debug thread qt warn_on
|
|
|
|
DEFINES -= QT_NO_DEBUG_OUTPUT
|
|
|
|
message("debug")
|
2007-09-02 18:59:38 +00:00
|
|
|
}
|
2007-09-02 22:11:46 +00:00
|
|
|
!dbg {
|
|
|
|
CONFIG += release thread qt
|
|
|
|
DEFINES += QT_NO_DEBUG_OUTPUT
|
|
|
|
message("release")
|
2007-09-02 18:59:38 +00:00
|
|
|
}
|
|
|
|
|
2007-07-29 17:35:31 +00:00
|
|
|
TARGET = rbutilqt
|
|
|
|
|
|
|
|
FORMS += rbutilqtfrm.ui \
|
|
|
|
aboutbox.ui \
|
|
|
|
installfrm.ui \
|
2008-03-28 17:30:37 +00:00
|
|
|
progressloggerfrm.ui \
|
2007-07-29 17:35:31 +00:00
|
|
|
configurefrm.ui \
|
2007-08-07 16:48:45 +00:00
|
|
|
browsedirtreefrm.ui \
|
2007-08-10 22:17:43 +00:00
|
|
|
installtalkfrm.ui \
|
2007-08-15 21:54:15 +00:00
|
|
|
installthemesfrm.ui \
|
2007-08-15 14:16:20 +00:00
|
|
|
uninstallfrm.ui \
|
2007-08-21 18:24:55 +00:00
|
|
|
browseoffrm.ui \
|
2007-12-14 19:26:54 +00:00
|
|
|
previewfrm.ui \
|
|
|
|
rbspeexcfgfrm.ui \
|
2007-12-15 13:13:57 +00:00
|
|
|
encexescfgfrm.ui \
|
|
|
|
ttsexescfgfrm.ui \
|
2008-01-11 23:59:12 +00:00
|
|
|
sapicfgfrm.ui \
|
2008-06-21 10:28:10 +00:00
|
|
|
createvoicefrm.ui \
|
|
|
|
sysinfofrm.ui
|
2007-08-03 16:20:48 +00:00
|
|
|
|
2007-07-29 17:35:31 +00:00
|
|
|
RESOURCES += rbutilqt.qrc
|
2007-12-17 21:35:25 +00:00
|
|
|
win32 {
|
|
|
|
RESOURCES += rbutilqt-win.qrc
|
|
|
|
}
|
2008-06-24 21:44:53 +00:00
|
|
|
!dbg {
|
|
|
|
RESOURCES += rbutilqt-lang.qrc
|
|
|
|
}
|
2007-07-29 17:35:31 +00:00
|
|
|
|
2007-09-14 14:52:35 +00:00
|
|
|
TRANSLATIONS += rbutil_de.ts \
|
2008-07-14 16:21:48 +00:00
|
|
|
rbutil_fi.ts \
|
2007-09-14 14:52:35 +00:00
|
|
|
rbutil_fr.ts \
|
2008-06-25 12:46:01 +00:00
|
|
|
rbutil_nl.ts \
|
2008-01-06 22:06:13 +00:00
|
|
|
rbutil_tr.ts \
|
2007-09-14 14:52:35 +00:00
|
|
|
rbutil_zh_CN.ts \
|
|
|
|
rbutil_zh_TW.ts
|
2007-07-29 17:35:31 +00:00
|
|
|
QT += network
|
2007-07-29 20:43:07 +00:00
|
|
|
DEFINES += RBUTIL _LARGEFILE64_SOURCE
|
2007-07-29 17:35:31 +00:00
|
|
|
|
2007-08-07 16:48:45 +00:00
|
|
|
win32 {
|
2007-07-29 17:35:31 +00:00
|
|
|
SOURCES += ../ipodpatcher/ipodio-win32.c
|
|
|
|
SOURCES += ../sansapatcher/sansaio-win32.c
|
2007-08-14 15:44:47 +00:00
|
|
|
RC_FILE = rbutilqt.rc
|
2008-06-21 10:28:10 +00:00
|
|
|
LIBS += -lsetupapi -lnetapi32
|
2007-07-29 17:35:31 +00:00
|
|
|
}
|
|
|
|
|
2007-08-07 16:48:45 +00:00
|
|
|
unix {
|
2007-07-29 17:35:31 +00:00
|
|
|
SOURCES += ../ipodpatcher/ipodio-posix.c
|
|
|
|
SOURCES += ../sansapatcher/sansaio-posix.c
|
2008-02-21 19:55:42 +00:00
|
|
|
}
|
|
|
|
unix:!static {
|
2007-09-23 10:34:28 +00:00
|
|
|
LIBS += -lusb
|
2007-07-29 17:35:31 +00:00
|
|
|
}
|
2008-02-21 19:55:42 +00:00
|
|
|
unix:static {
|
2008-05-17 14:50:51 +00:00
|
|
|
# force statically linking of libusb. Libraries that are appended
|
|
|
|
# later will get linked dynamically again.
|
|
|
|
LIBS += -Wl,-Bstatic -lusb -Wl,-Bdynamic
|
2008-02-21 19:55:42 +00:00
|
|
|
}
|
2007-07-29 20:43:07 +00:00
|
|
|
|
2007-09-01 21:13:22 +00:00
|
|
|
macx {
|
|
|
|
QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk
|
2008-07-09 20:36:38 +00:00
|
|
|
QMAKE_LFLAGS_PPC=-mmacosx-version-min=10.4 -arch ppc
|
|
|
|
QMAKE_LFLAGS_X86=-mmacosx-version-min=10.4 -arch i386
|
2007-09-01 21:13:22 +00:00
|
|
|
CONFIG+=x86 ppc
|
2007-10-13 16:26:38 +00:00
|
|
|
LIBS += -L/usr/local/lib -framework IOKit
|
|
|
|
INCLUDEPATH += /usr/local/include
|
2007-10-13 17:43:12 +00:00
|
|
|
QMAKE_INFO_PLIST = Info.plist
|
|
|
|
RC_FILE = icons/rbutilqt.icns
|
2008-06-30 14:39:21 +00:00
|
|
|
|
|
|
|
# rule for creating a dmg file
|
|
|
|
dmg.commands = hdiutil create -ov -srcfolder rbutilqt.app/ rbutil.dmg
|
|
|
|
QMAKE_EXTRA_TARGETS += dmg
|
2007-09-01 21:13:22 +00:00
|
|
|
}
|
|
|
|
|
2007-08-22 22:19:22 +00:00
|
|
|
static {
|
|
|
|
QTPLUGIN += qtaccessiblewidgets
|
|
|
|
LIBS += -L$$(QT_BUILD_TREE)/plugins/accessible -lqtaccessiblewidgets
|
2008-07-06 19:46:48 +00:00
|
|
|
LIBS += -L.
|
2007-08-22 22:19:22 +00:00
|
|
|
DEFINES += STATIC
|
|
|
|
message("using static plugin")
|
|
|
|
}
|
2007-07-29 20:43:07 +00:00
|
|
|
|
2008-05-24 16:57:40 +00:00
|
|
|
unix {
|
|
|
|
target.path = /usr/local/bin
|
|
|
|
INSTALLS += target
|
|
|
|
}
|
2008-01-06 22:06:13 +00:00
|
|
|
|