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-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-08-26 20:32:20 +00:00
|
|
|
preview.cpp
|
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-08-26 20:32:20 +00:00
|
|
|
preview.h
|
|
|
|
|
2007-08-07 18:05:48 +00:00
|
|
|
# Needed by QT on Win
|
|
|
|
INCLUDEPATH = . irivertools zip zlib ../ipodpatcher ../sansapatcher
|
|
|
|
|
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 \
|
|
|
|
installprogressfrm.ui \
|
|
|
|
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 \
|
|
|
|
previewfrm.ui
|
2007-08-03 16:20:48 +00:00
|
|
|
|
2007-07-29 17:35:31 +00:00
|
|
|
RESOURCES += rbutilqt.qrc
|
|
|
|
|
2007-09-14 14:52:35 +00:00
|
|
|
TRANSLATIONS += rbutil_de.ts \
|
|
|
|
rbutil_fr.ts \
|
|
|
|
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
|
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
|
|
|
|
}
|
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
|
|
|
|
CONFIG+=x86 ppc
|
|
|
|
}
|
2007-09-14 20:52:38 +00:00
|
|
|
unix {
|
|
|
|
LIBS += -lusb
|
|
|
|
}
|
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
|
|
|
|
DEFINES += STATIC
|
|
|
|
message("using static plugin")
|
|
|
|
}
|
2007-07-29 20:43:07 +00:00
|
|
|
|