diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-03-21 18:15:17 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-03-21 18:15:17 +0000 |
commit | bc8b9da4d0bbc31cce46036db44ae2150e8b1277 (patch) | |
tree | 9a5e578976594b5af919c4754ad04a8bad9866ee /rbutil | |
parent | 2064efbfcd4d3d3a7f0c13c6aa5b1a2cc21f87c1 (diff) |
Split source files out of project file.
Move the source files out of the project file into a project include, and
resort it a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25278 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.pri | 198 | ||||
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.pro | 215 |
2 files changed, 234 insertions, 179 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pri b/rbutil/rbutilqt/rbutilqt.pri new file mode 100644 index 0000000000..c3a16a9b57 --- /dev/null +++ b/rbutil/rbutilqt/rbutilqt.pri @@ -0,0 +1,198 @@ +# +# __________ __ ___. +# Open \______ \ ____ ____ | | _\_ |__ _______ ___ +# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +# \/ \/ \/ \/ \/ +# $Id$ +# +# All files in this archive are subject to the GNU General Public License. +# See the file COPYING in the source tree root for full license agreement. +# +# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY +# KIND, either express or implied. +# + + +# common files +SOURCES += \ + rbutilqt.cpp \ + main.cpp \ + installwindow.cpp \ + base/httpget.cpp \ + configure.cpp \ + zip/zip.cpp \ + zip/unzip.cpp \ + base/zipinstaller.cpp \ + progressloggergui.cpp \ + installtalkwindow.cpp \ + base/talkfile.cpp \ + base/talkgenerator.cpp \ + base/autodetection.cpp \ + ../ipodpatcher/ipodpatcher.c \ + ../sansapatcher/sansapatcher.c \ + ../chinachippatcher/chinachip.c \ + browsedirtree.cpp \ + themesinstallwindow.cpp \ + base/uninstall.cpp \ + uninstallwindow.cpp \ + base/utils.cpp \ + preview.cpp \ + base/encoders.cpp \ + encttscfggui.cpp \ + base/encttssettings.cpp \ + base/ttsbase.cpp \ + base/ttsexes.cpp \ + base/ttssapi.cpp \ + base/ttsfestival.cpp \ + ../../tools/wavtrim.c \ + ../../tools/voicefont.c \ + base/voicefile.cpp \ + createvoicewindow.cpp \ + base/rbsettings.cpp \ + base/serverinfo.cpp \ + base/systeminfo.cpp \ + base/rbunzip.cpp \ + base/rbzip.cpp \ + base/system.cpp \ + sysinfo.cpp \ + systrace.cpp \ + base/bootloaderinstallbase.cpp \ + base/bootloaderinstallmi4.cpp \ + base/bootloaderinstallhex.cpp \ + base/bootloaderinstallipod.cpp \ + base/bootloaderinstallsansa.cpp \ + base/bootloaderinstallfile.cpp \ + base/bootloaderinstallchinachip.cpp \ + base/bootloaderinstallams.cpp \ + base/bootloaderinstalltcc.cpp \ + ../../tools/mkboot.c \ + ../../tools/iriver.c \ + + +HEADERS += \ + rbutilqt.h \ + installwindow.h \ + base/httpget.h \ + configure.h \ + zip/zip.h \ + zip/unzip.h \ + zip/zipentry_p.h \ + zip/unzip_p.h \ + zip/zip_p.h \ + version.h \ + base/zipinstaller.h \ + installtalkwindow.h \ + base/talkfile.h \ + base/talkgenerator.h \ + base/autodetection.h \ + base/progressloggerinterface.h \ + progressloggergui.h \ + ../ipodpatcher/ipodpatcher.h \ + ../ipodpatcher/ipodio.h \ + ../ipodpatcher/parttypes.h \ + ../sansapatcher/sansapatcher.h \ + ../sansapatcher/sansaio.h \ + ../chinachippatcher/chinachip.h \ + irivertools/h100sums.h \ + irivertools/h120sums.h \ + irivertools/h300sums.h \ + browsedirtree.h \ + themesinstallwindow.h \ + base/uninstall.h \ + uninstallwindow.h \ + base/utils.h \ + preview.h \ + base/encoders.h \ + encttscfggui.h \ + base/encttssettings.h \ + base/ttsbase.h \ + base/ttsexes.h \ + base/ttsfestival.h \ + base/ttssapi.h \ + ../../tools/wavtrim.h \ + ../../tools/voicefont.h \ + base/voicefile.h \ + createvoicewindow.h \ + base/rbsettings.h \ + base/serverinfo.h \ + base/systeminfo.h \ + base/rbunzip.h \ + base/rbzip.h \ + sysinfo.h \ + base/system.h \ + systrace.h \ + base/bootloaderinstallbase.h \ + base/bootloaderinstallmi4.h \ + base/bootloaderinstallhex.h \ + base/bootloaderinstallipod.h \ + base/bootloaderinstallsansa.h \ + base/bootloaderinstallfile.h \ + base/bootloaderinstallchinachip.h \ + base/bootloaderinstallams.h \ + base/bootloaderinstalltcc.h \ + ../../tools/mkboot.h \ + ../../tools/iriver.h \ + +FORMS += \ + rbutilqtfrm.ui \ + aboutbox.ui \ + installwindowfrm.ui \ + progressloggerfrm.ui \ + configurefrm.ui \ + browsedirtreefrm.ui \ + installtalkfrm.ui \ + themesinstallfrm.ui \ + uninstallfrm.ui \ + previewfrm.ui \ + createvoicefrm.ui \ + sysinfofrm.ui \ + systracefrm.ui + + +TRANSLATIONS += \ + lang/rbutil_cs.ts \ + lang/rbutil_de.ts \ + lang/rbutil_fi.ts \ + lang/rbutil_fr.ts \ + lang/rbutil_gr.ts \ + lang/rbutil_he.ts \ + lang/rbutil_it.ts \ + lang/rbutil_ja.ts \ + lang/rbutil_nl.ts \ + lang/rbutil_pl.ts \ + lang/rbutil_pt.ts \ + lang/rbutil_pt_BR.ts \ + lang/rbutil_ru.ts \ + lang/rbutil_tr.ts \ + lang/rbutil_zh_CN.ts \ + lang/rbutil_zh_TW.ts \ + +RESOURCES += $$_PRO_FILE_PWD_/rbutilqt.qrc +!dbg { + RESOURCES += $$_PRO_FILE_PWD_/rbutilqt-lang.qrc +} +# windows specific files +win32 { + SOURCES += ../ipodpatcher/ipodio-win32.c + SOURCES += ../ipodpatcher/ipodio-win32-scsi.c + SOURCES += ../sansapatcher/sansaio-win32.c + RC_FILE = rbutilqt.rc + RESOURCES += $$_PRO_FILE_PWD_/rbutilqt-win.qrc +} + +# unix specific files +unix { + SOURCES += ../ipodpatcher/ipodio-posix.c + SOURCES += ../sansapatcher/sansaio-posix.c +} + +# mac specific files +macx { + SOURCES += base/ttscarbon.cpp + HEADERS += base/ttscarbon.h + QMAKE_INFO_PLIST = Info.plist + RC_FILE = icons/rbutilqt.icns +} + diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro index 0b03907a94..06f57b356e 100644 --- a/rbutil/rbutilqt/rbutilqt.pro +++ b/rbutil/rbutilqt/rbutilqt.pro @@ -1,3 +1,18 @@ +# +# __________ __ ___. +# Open \______ \ ____ ____ | | _\_ |__ _______ ___ +# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +# \/ \/ \/ \/ \/ +# $Id$ +# +# All files in this archive are subject to the GNU General Public License. +# See the file COPYING in the source tree root for full license agreement. +# +# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY +# KIND, either express or implied. +# # ccache unix:!mac:!noccache { @@ -36,10 +51,18 @@ message("Rockbox Base dir: "$$RBBASE_DIR) mac { RBLIBPOSTFIX = -universal } -rbspeex.commands = @$(MAKE) TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/tools/rbspeex librbspeex$$RBLIBPOSTFIX CC=\"$$QMAKE_CC\" -libucl.commands = @$(MAKE) TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/tools/ucl/src libucl$$RBLIBPOSTFIX CC=\"$$QMAKE_CC\" -libmkamsboot.commands = @$(MAKE) TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/rbutil/mkamsboot libmkamsboot$$RBLIBPOSTFIX CC=\"$$QMAKE_CC\" -libmktccboot.commands = @$(MAKE) TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/rbutil/mktccboot libmktccboot$$RBLIBPOSTFIX CC=\"$$QMAKE_CC\" +rbspeex.commands = @$(MAKE) \ + TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/tools/rbspeex \ + librbspeex$$RBLIBPOSTFIX CC=\"$$QMAKE_CC\" +libucl.commands = @$(MAKE) \ + TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/tools/ucl/src \ + libucl$$RBLIBPOSTFIX CC=\"$$QMAKE_CC\" +libmkamsboot.commands = @$(MAKE) \ + TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/rbutil/mkamsboot \ + libmkamsboot$$RBLIBPOSTFIX CC=\"$$QMAKE_CC\" +libmktccboot.commands = @$(MAKE) \ + TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/rbutil/mktccboot \ + libmktccboot$$RBLIBPOSTFIX CC=\"$$QMAKE_CC\" QMAKE_EXTRA_TARGETS += rbspeex libucl libmkamsboot libmktccboot PRE_TARGETDEPS += rbspeex libucl libmkamsboot libmktccboot @@ -55,125 +78,11 @@ QMAKE_EXTRA_TARGETS += lrelease PRE_TARGETDEPS += lrelease } -SOURCES += rbutilqt.cpp \ - main.cpp \ - installwindow.cpp \ - base/httpget.cpp \ - configure.cpp \ - zip/zip.cpp \ - zip/unzip.cpp \ - base/zipinstaller.cpp \ - progressloggergui.cpp \ - installtalkwindow.cpp \ - base/talkfile.cpp \ - base/talkgenerator.cpp \ - base/autodetection.cpp \ - ../ipodpatcher/ipodpatcher.c \ - ../sansapatcher/sansapatcher.c \ - ../chinachippatcher/chinachip.c \ - browsedirtree.cpp \ - themesinstallwindow.cpp \ - base/uninstall.cpp \ - uninstallwindow.cpp \ - base/utils.cpp \ - preview.cpp \ - base/encoders.cpp \ - encttscfggui.cpp \ - base/encttssettings.cpp \ - base/ttsbase.cpp \ - base/ttsexes.cpp \ - base/ttssapi.cpp \ - base/ttsfestival.cpp \ - ../../tools/wavtrim.c \ - ../../tools/voicefont.c \ - base/voicefile.cpp \ - createvoicewindow.cpp \ - base/rbsettings.cpp \ - base/serverinfo.cpp \ - base/systeminfo.cpp \ - base/rbunzip.cpp \ - base/rbzip.cpp \ - base/system.cpp \ - sysinfo.cpp \ - systrace.cpp \ - base/bootloaderinstallbase.cpp \ - base/bootloaderinstallmi4.cpp \ - base/bootloaderinstallhex.cpp \ - base/bootloaderinstallipod.cpp \ - base/bootloaderinstallsansa.cpp \ - base/bootloaderinstallfile.cpp \ - base/bootloaderinstallchinachip.cpp \ - base/bootloaderinstallams.cpp \ - base/bootloaderinstalltcc.cpp \ - ../../tools/mkboot.c \ - ../../tools/iriver.c \ - -HEADERS += rbutilqt.h \ - installwindow.h \ - base/httpget.h \ - configure.h \ - zip/zip.h \ - zip/unzip.h \ - zip/zipentry_p.h \ - zip/unzip_p.h \ - zip/zip_p.h \ - version.h \ - base/zipinstaller.h \ - installtalkwindow.h \ - base/talkfile.h \ - base/talkgenerator.h \ - base/autodetection.h \ - base/progressloggerinterface.h \ - progressloggergui.h \ - ../ipodpatcher/ipodpatcher.h \ - ../ipodpatcher/ipodio.h \ - ../ipodpatcher/parttypes.h \ - ../sansapatcher/sansapatcher.h \ - ../sansapatcher/sansaio.h \ - ../chinachippatcher/chinachip.h \ - irivertools/h100sums.h \ - irivertools/h120sums.h \ - irivertools/h300sums.h \ - browsedirtree.h \ - themesinstallwindow.h \ - base/uninstall.h \ - uninstallwindow.h \ - base/utils.h \ - preview.h \ - base/encoders.h \ - encttscfggui.h \ - base/encttssettings.h \ - base/ttsbase.h \ - base/ttsexes.h \ - base/ttsfestival.h \ - base/ttssapi.h \ - ../../tools/wavtrim.h \ - ../../tools/voicefont.h \ - base/voicefile.h \ - createvoicewindow.h \ - base/rbsettings.h \ - base/serverinfo.h \ - base/systeminfo.h \ - base/rbunzip.h \ - base/rbzip.h \ - sysinfo.h \ - base/system.h \ - systrace.h \ - base/bootloaderinstallbase.h \ - base/bootloaderinstallmi4.h \ - base/bootloaderinstallhex.h \ - base/bootloaderinstallipod.h \ - base/bootloaderinstallsansa.h \ - base/bootloaderinstallfile.h \ - base/bootloaderinstallchinachip.h \ - base/bootloaderinstallams.h \ - base/bootloaderinstalltcc.h \ - ../../tools/mkboot.h \ - ../../tools/iriver.h \ - # Needed by QT on Win -INCLUDEPATH = $$_PRO_FILE_PWD_ $$_PRO_FILE_PWD_/irivertools $$_PRO_FILE_PWD_/zip $$_PRO_FILE_PWD_/zlib $$_PRO_FILE_PWD_/base -INCLUDEPATH += $$RBBASE_DIR/rbutil/ipodpatcher $$RBBASE_DIR/rbutil/sansapatcher $$RBBASE_DIR/tools/rbspeex $$RBBASE_DIR/tools +INCLUDEPATH = $$_PRO_FILE_PWD_ $$_PRO_FILE_PWD_/irivertools \ + $$_PRO_FILE_PWD_/zip $$_PRO_FILE_PWD_/zlib $$_PRO_FILE_PWD_/base +INCLUDEPATH += $$RBBASE_DIR/rbutil/ipodpatcher $$RBBASE_DIR/rbutil/sansapatcher \ + $$RBBASE_DIR/tools/rbspeex $$RBBASE_DIR/tools DEPENDPATH = $$INCLUDEPATH @@ -191,6 +100,8 @@ LIBSPEEX = $$system(pkg-config --silence-errors --libs speex speexdsp) } TEMPLATE = app +TARGET = RockboxUtility +QT += network dbg { CONFIG += debug thread qt warn_on DEFINES -= QT_NO_DEBUG_OUTPUT @@ -203,63 +114,12 @@ dbg { message("release") } -TARGET = RockboxUtility - -FORMS += rbutilqtfrm.ui \ - aboutbox.ui \ - installwindowfrm.ui \ - progressloggerfrm.ui \ - configurefrm.ui \ - browsedirtreefrm.ui \ - installtalkfrm.ui \ - themesinstallfrm.ui \ - uninstallfrm.ui \ - previewfrm.ui \ - createvoicefrm.ui \ - sysinfofrm.ui \ - systracefrm.ui - -RESOURCES += $$_PRO_FILE_PWD_/rbutilqt.qrc -win32 { - RESOURCES += $$_PRO_FILE_PWD_/rbutilqt-win.qrc -} -!dbg { - RESOURCES += $$_PRO_FILE_PWD_/rbutilqt-lang.qrc -} - -TRANSLATIONS += lang/rbutil_cs.ts \ - lang/rbutil_de.ts \ - lang/rbutil_fi.ts \ - lang/rbutil_fr.ts \ - lang/rbutil_gr.ts \ - lang/rbutil_he.ts \ - lang/rbutil_it.ts \ - lang/rbutil_ja.ts \ - lang/rbutil_nl.ts \ - lang/rbutil_pl.ts \ - lang/rbutil_pt.ts \ - lang/rbutil_pt_BR.ts \ - lang/rbutil_ru.ts \ - lang/rbutil_tr.ts \ - lang/rbutil_zh_CN.ts \ - lang/rbutil_zh_TW.ts \ - - -QT += network DEFINES += RBUTIL _LARGEFILE64_SOURCE +# platform specific win32 { - SOURCES += ../ipodpatcher/ipodio-win32.c - SOURCES += ../ipodpatcher/ipodio-win32-scsi.c - SOURCES += ../sansapatcher/sansaio-win32.c - RC_FILE = rbutilqt.rc LIBS += -lsetupapi -lnetapi32 } - -unix { - SOURCES += ../ipodpatcher/ipodio-posix.c - SOURCES += ../sansapatcher/sansaio-posix.c -} unix:!static:!libusb1 { LIBS += -lusb } @@ -275,16 +135,12 @@ unix:static { } macx { - SOURCES += base/ttscarbon.cpp - HEADERS += base/ttscarbon.h QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk QMAKE_LFLAGS_PPC=-mmacosx-version-min=10.4 -arch ppc QMAKE_LFLAGS_X86=-mmacosx-version-min=10.4 -arch i386 CONFIG+=x86 ppc LIBS += -L/usr/local/lib -framework IOKit -framework CoreFoundation -framework Carbon -lz INCLUDEPATH += /usr/local/include - QMAKE_INFO_PLIST = Info.plist - RC_FILE = icons/rbutilqt.icns # rule for creating a dmg file dmg.commands = hdiutil create -ov -srcfolder rbutilqt.app/ rbutil.dmg @@ -304,5 +160,6 @@ unix { INSTALLS += target } - +# source files are separate. +include(rbutilqt.pri) |