2010-07-21 07:45:29 +00:00
|
|
|
QT += network
|
|
|
|
|
2010-07-07 09:33:47 +00:00
|
|
|
# Enabling profiling
|
|
|
|
QMAKE_CXXFLAGS_DEBUG += -pg
|
|
|
|
QMAKE_LFLAGS_DEBUG += -pg
|
|
|
|
|
2010-07-21 07:45:29 +00:00
|
|
|
# Adding zlib dependency for QuaZip
|
|
|
|
LIBS += -lz
|
|
|
|
INCLUDEPATH += zlib
|
|
|
|
|
2010-06-02 20:36:30 +00:00
|
|
|
# build in a separate folder.
|
|
|
|
MYBUILDDIR = $$OUT_PWD/build/
|
|
|
|
OBJECTS_DIR = $$MYBUILDDIR/o
|
|
|
|
UI_DIR = $$MYBUILDDIR/ui
|
|
|
|
MOC_DIR = $$MYBUILDDIR/moc
|
|
|
|
RCC_DIR = $$MYBUILDDIR/rcc
|
2010-06-17 06:52:02 +00:00
|
|
|
RBBASE_DIR = $$_PRO_FILE_PWD_
|
|
|
|
RBBASE_DIR = $$replace(RBBASE_DIR,/utils/themeeditor,)
|
|
|
|
|
2010-06-17 20:44:11 +00:00
|
|
|
# Include directories
|
2010-06-17 05:37:01 +00:00
|
|
|
INCLUDEPATH += gui
|
|
|
|
INCLUDEPATH += models
|
2010-06-17 20:44:11 +00:00
|
|
|
INCLUDEPATH += graphics
|
2010-07-21 07:45:29 +00:00
|
|
|
INCLUDEPATH += quazip
|
2010-07-23 07:31:53 +00:00
|
|
|
INCLUDEPATH += qtfindreplacedialog
|
2010-07-25 18:06:41 +00:00
|
|
|
|
|
|
|
DEFINES += FINDREPLACE_NOLIB
|
2010-07-23 07:31:53 +00:00
|
|
|
cross {
|
2010-07-21 19:35:20 +00:00
|
|
|
message("Crossbuilding for W32 binary")
|
2010-07-23 07:31:53 +00:00
|
|
|
|
2010-07-21 19:35:20 +00:00
|
|
|
# retrieve ar binary for w32 cross compile. This might be specific to
|
|
|
|
# Fedora mingw32 packages of Qt. Using member() here is needed because at
|
|
|
|
# least the F13 packages add ar options to the variable.
|
|
|
|
CROSSOPTIONS += AR=$$member(QMAKE_LIB)
|
2010-07-23 07:31:53 +00:00
|
|
|
|
2010-07-21 19:35:20 +00:00
|
|
|
# make sure we use the correct subsystem to prevent a console window coming up.
|
|
|
|
LIBS += -Wl,-subsystem,windows
|
|
|
|
}
|
2010-07-23 07:31:53 +00:00
|
|
|
|
2010-06-17 06:52:02 +00:00
|
|
|
# Stuff for the parse lib
|
|
|
|
libskin_parser.commands = @$(MAKE) \
|
2010-07-07 08:41:36 +00:00
|
|
|
TARGET_DIR=$$MYBUILDDIR \
|
|
|
|
CC=\"$$QMAKE_CC\" \
|
2010-07-21 19:35:20 +00:00
|
|
|
$$CROSSOPTIONS \
|
2010-06-17 20:44:11 +00:00
|
|
|
BUILDDIR=$$OBJECTS_DIR \
|
2010-07-07 08:41:36 +00:00
|
|
|
-C \
|
|
|
|
$$RBBASE_DIR/lib/skin_parser \
|
2010-07-06 21:08:16 +00:00
|
|
|
libskin_parser.a
|
2010-06-17 06:52:02 +00:00
|
|
|
QMAKE_EXTRA_TARGETS += libskin_parser
|
|
|
|
PRE_TARGETDEPS += libskin_parser
|
|
|
|
INCLUDEPATH += $$RBBASE_DIR/lib/skin_parser
|
2010-07-07 08:41:36 +00:00
|
|
|
LIBS += -L$$MYBUILDDIR \
|
|
|
|
-lskin_parser
|
2010-06-17 06:52:02 +00:00
|
|
|
DEPENDPATH = $$INCLUDEPATH
|
|
|
|
HEADERS += models/parsetreemodel.h \
|
2010-06-17 05:37:01 +00:00
|
|
|
models/parsetreenode.h \
|
|
|
|
gui/editorwindow.h \
|
|
|
|
gui/skinhighlighter.h \
|
|
|
|
gui/skindocument.h \
|
|
|
|
gui/preferencesdialog.h \
|
|
|
|
gui/codeeditor.h \
|
|
|
|
models/projectmodel.h \
|
|
|
|
gui/tabcontent.h \
|
|
|
|
gui/configdocument.h \
|
2010-06-17 20:44:11 +00:00
|
|
|
gui/skinviewer.h \
|
2010-06-18 21:10:01 +00:00
|
|
|
graphics/rbscreen.h \
|
|
|
|
graphics/rbviewport.h \
|
2010-06-22 07:55:50 +00:00
|
|
|
graphics/rbrenderinfo.h \
|
2010-06-23 20:18:31 +00:00
|
|
|
graphics/rbimage.h \
|
2010-06-23 20:46:43 +00:00
|
|
|
graphics/rbfont.h \
|
2010-06-26 07:59:23 +00:00
|
|
|
gui/devicestate.h \
|
2010-07-02 00:20:36 +00:00
|
|
|
graphics/rbalbumart.h \
|
2010-07-03 06:08:59 +00:00
|
|
|
graphics/rbprogressbar.h \
|
2010-07-07 08:41:36 +00:00
|
|
|
graphics/rbtext.h \
|
2010-07-07 09:33:47 +00:00
|
|
|
graphics/rbfontcache.h \
|
2010-07-08 21:53:27 +00:00
|
|
|
graphics/rbtextcache.h \
|
2010-07-10 06:43:50 +00:00
|
|
|
gui/skintimer.h \
|
2010-07-15 21:39:09 +00:00
|
|
|
graphics/rbtoucharea.h \
|
2010-07-16 20:47:23 +00:00
|
|
|
gui/newprojectdialog.h \
|
2010-07-21 07:45:29 +00:00
|
|
|
models/targetdata.h \
|
|
|
|
quazip/zip.h \
|
|
|
|
quazip/unzip.h \
|
|
|
|
quazip/quazipnewinfo.h \
|
|
|
|
quazip/quazipfileinfo.h \
|
|
|
|
quazip/quazipfile.h \
|
|
|
|
quazip/quazip.h \
|
|
|
|
quazip/ioapi.h \
|
|
|
|
quazip/crypt.h \
|
|
|
|
zlib/zlib.h \
|
|
|
|
zlib/zconf.h \
|
2010-07-23 07:31:53 +00:00
|
|
|
gui/fontdownloader.h \
|
|
|
|
qtfindreplacedialog/varianteditor.h \
|
|
|
|
qtfindreplacedialog/findreplace_global.h \
|
|
|
|
qtfindreplacedialog/findreplaceform.h \
|
|
|
|
qtfindreplacedialog/findreplacedialog.h \
|
|
|
|
qtfindreplacedialog/findform.h \
|
2010-07-23 21:15:15 +00:00
|
|
|
qtfindreplacedialog/finddialog.h \
|
|
|
|
gui/projectexporter.h
|
2010-06-17 06:52:02 +00:00
|
|
|
SOURCES += main.cpp \
|
2010-06-17 05:37:01 +00:00
|
|
|
models/parsetreemodel.cpp \
|
|
|
|
models/parsetreenode.cpp \
|
|
|
|
gui/editorwindow.cpp \
|
|
|
|
gui/skinhighlighter.cpp \
|
|
|
|
gui/skindocument.cpp \
|
|
|
|
gui/preferencesdialog.cpp \
|
|
|
|
gui/codeeditor.cpp \
|
|
|
|
models/projectmodel.cpp \
|
|
|
|
gui/configdocument.cpp \
|
2010-06-17 20:44:11 +00:00
|
|
|
gui/skinviewer.cpp \
|
2010-06-18 21:10:01 +00:00
|
|
|
graphics/rbscreen.cpp \
|
|
|
|
graphics/rbviewport.cpp \
|
2010-06-22 07:55:50 +00:00
|
|
|
graphics/rbrenderinfo.cpp \
|
2010-06-23 20:18:31 +00:00
|
|
|
graphics/rbimage.cpp \
|
2010-06-23 20:46:43 +00:00
|
|
|
graphics/rbfont.cpp \
|
2010-06-26 07:59:23 +00:00
|
|
|
gui/devicestate.cpp \
|
2010-07-02 00:20:36 +00:00
|
|
|
graphics/rbalbumart.cpp \
|
2010-07-03 06:08:59 +00:00
|
|
|
graphics/rbprogressbar.cpp \
|
2010-07-07 08:41:36 +00:00
|
|
|
graphics/rbtext.cpp \
|
2010-07-07 09:33:47 +00:00
|
|
|
graphics/rbfontcache.cpp \
|
2010-07-08 21:53:27 +00:00
|
|
|
graphics/rbtextcache.cpp \
|
2010-07-10 06:43:50 +00:00
|
|
|
gui/skintimer.cpp \
|
2010-07-15 21:39:09 +00:00
|
|
|
graphics/rbtoucharea.cpp \
|
2010-07-16 20:47:23 +00:00
|
|
|
gui/newprojectdialog.cpp \
|
2010-07-21 07:45:29 +00:00
|
|
|
models/targetdata.cpp \
|
|
|
|
quazip/zip.c \
|
|
|
|
quazip/unzip.c \
|
|
|
|
quazip/quazipnewinfo.cpp \
|
|
|
|
quazip/quazipfile.cpp \
|
|
|
|
quazip/quazip.cpp \
|
|
|
|
quazip/ioapi.c \
|
2010-07-23 07:31:53 +00:00
|
|
|
gui/fontdownloader.cpp \
|
|
|
|
qtfindreplacedialog/varianteditor.cpp \
|
|
|
|
qtfindreplacedialog/findreplaceform.cpp \
|
|
|
|
qtfindreplacedialog/findreplacedialog.cpp \
|
|
|
|
qtfindreplacedialog/findform.cpp \
|
2010-07-23 21:15:15 +00:00
|
|
|
qtfindreplacedialog/finddialog.cpp \
|
|
|
|
gui/projectexporter.cpp
|
2010-06-03 20:51:17 +00:00
|
|
|
OTHER_FILES += README \
|
|
|
|
resources/windowicon.png \
|
2010-06-05 19:47:49 +00:00
|
|
|
resources/appicon.xcf \
|
|
|
|
resources/COPYING \
|
|
|
|
resources/document-save.png \
|
|
|
|
resources/document-open.png \
|
2010-06-24 07:59:41 +00:00
|
|
|
resources/document-new.png \
|
2010-06-30 21:28:11 +00:00
|
|
|
resources/deviceoptions \
|
|
|
|
resources/render/statusbar.png \
|
2010-07-08 21:53:27 +00:00
|
|
|
resources/render/scenebg.png \
|
|
|
|
resources/play.xcf \
|
|
|
|
resources/play.png \
|
|
|
|
resources/rwnd.png \
|
|
|
|
resources/pause.xcf \
|
|
|
|
resources/pause.png \
|
|
|
|
resources/ffwd.xcf \
|
2010-07-14 07:38:09 +00:00
|
|
|
resources/ffwd.png \
|
|
|
|
resources/lines.xcf \
|
|
|
|
resources/lines.png \
|
|
|
|
resources/cursor.xcf \
|
2010-07-16 20:47:23 +00:00
|
|
|
resources/cursor.png \
|
2010-07-21 07:45:29 +00:00
|
|
|
resources/targetdb \
|
|
|
|
quazip/README.ROCKBOX \
|
2010-07-23 07:31:53 +00:00
|
|
|
quazip/LICENSE.GPL \
|
|
|
|
qtfindreplacedialog/dialogs.pro
|
2010-06-17 05:37:01 +00:00
|
|
|
FORMS += gui/editorwindow.ui \
|
|
|
|
gui/preferencesdialog.ui \
|
|
|
|
gui/configdocument.ui \
|
2010-06-26 07:59:23 +00:00
|
|
|
gui/skinviewer.ui \
|
2010-07-15 21:39:09 +00:00
|
|
|
gui/skintimer.ui \
|
2010-07-21 07:45:29 +00:00
|
|
|
gui/newprojectdialog.ui \
|
2010-07-23 07:31:53 +00:00
|
|
|
gui/fontdownloader.ui \
|
|
|
|
qtfindreplacedialog/findreplaceform.ui \
|
2010-07-23 21:15:15 +00:00
|
|
|
qtfindreplacedialog/findreplacedialog.ui \
|
|
|
|
gui/projectexporter.ui
|
2010-06-03 20:51:17 +00:00
|
|
|
RESOURCES += resources.qrc
|
2010-07-07 08:41:36 +00:00
|
|
|
win32:RC_FILE = themeeditor.rc
|
|
|
|
macx {
|
|
|
|
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
|
2010-07-06 21:46:53 +00:00
|
|
|
QMAKE_INFO_PLIST = Info.plist
|
|
|
|
RC_FILE = resources/windowicon.icns
|
2010-07-06 21:08:16 +00:00
|
|
|
}
|