blob: a7db28c7e9185b108076ced50f870e08a5784da4 [file] [log] [blame]
Robert Bieberf8dd3702010-07-30 01:26:10 +00001# Setting the binary name
Robert Bieberd530f0b2010-07-26 21:18:47 +00002TARGET = rbthemeeditor
Robert Bieberdbeb1ee2010-07-26 21:37:26 +00003VERSION = 0.5
Robert Bieberf8dd3702010-07-30 01:26:10 +00004CONFIG(debug) {
Robert Bieber1c372492010-07-28 06:50:52 +00005 REVISION = $$system(svnversion)
Robert Bieberf8dd3702010-07-30 01:26:10 +00006 VERSION = $$join(VERSION,,,r)
7 VERSION = $$join(VERSION,,,$$REVISION)
Robert Bieber1c372492010-07-28 06:50:52 +00008}
9
Robert Bieberd530f0b2010-07-26 21:18:47 +000010# Adding network support
Robert Bieber7c522842010-07-21 07:45:29 +000011QT += network
12
Robert Bieber6d609e02010-07-07 09:33:47 +000013# Enabling profiling
14QMAKE_CXXFLAGS_DEBUG += -pg
15QMAKE_LFLAGS_DEBUG += -pg
16
Robert Bieber7c522842010-07-21 07:45:29 +000017# Adding zlib dependency for QuaZip
18LIBS += -lz
19INCLUDEPATH += zlib
20
Robert Biebere5a3ec22010-06-02 20:36:30 +000021# build in a separate folder.
22MYBUILDDIR = $$OUT_PWD/build/
23OBJECTS_DIR = $$MYBUILDDIR/o
24UI_DIR = $$MYBUILDDIR/ui
25MOC_DIR = $$MYBUILDDIR/moc
26RCC_DIR = $$MYBUILDDIR/rcc
Jonathan Gordon36b934d2010-06-17 06:52:02 +000027RBBASE_DIR = $$_PRO_FILE_PWD_
28RBBASE_DIR = $$replace(RBBASE_DIR,/utils/themeeditor,)
29
Robert Bieber02c37742010-06-17 20:44:11 +000030# Include directories
Robert Bieberca564282010-06-17 05:37:01 +000031INCLUDEPATH += gui
Robert Bieberca564282010-06-17 05:37:01 +000032INCLUDEPATH += models
Robert Bieber02c37742010-06-17 20:44:11 +000033INCLUDEPATH += graphics
Robert Bieber7c522842010-07-21 07:45:29 +000034INCLUDEPATH += quazip
Robert Biebere6fd3d02010-07-23 07:31:53 +000035INCLUDEPATH += qtfindreplacedialog
Dominik Riebeling62f66182010-07-25 18:06:41 +000036DEFINES += FINDREPLACE_NOLIB
Robert Biebere6fd3d02010-07-23 07:31:53 +000037cross {
Dominik Riebelinge86940c2010-07-21 19:35:20 +000038 message("Crossbuilding for W32 binary")
Robert Biebere6fd3d02010-07-23 07:31:53 +000039
Dominik Riebelinge86940c2010-07-21 19:35:20 +000040 # retrieve ar binary for w32 cross compile. This might be specific to
41 # Fedora mingw32 packages of Qt. Using member() here is needed because at
42 # least the F13 packages add ar options to the variable.
Dominik Riebeling8c6b8e62011-03-05 12:50:46 +000043 CROSSOPTIONS += AR=$$member(QMAKE_LIB) TARGETPLATFORM=\"MinGW\"
Robert Biebere6fd3d02010-07-23 07:31:53 +000044
Dominik Riebelinge86940c2010-07-21 19:35:20 +000045 # make sure we use the correct subsystem to prevent a console window coming up.
46 LIBS += -Wl,-subsystem,windows
47}
Robert Biebere6fd3d02010-07-23 07:31:53 +000048
Jonathan Gordon36b934d2010-06-17 06:52:02 +000049# Stuff for the parse lib
50libskin_parser.commands = @$(MAKE) \
Robert Bieber6f067932010-07-07 08:41:36 +000051 TARGET_DIR=$$MYBUILDDIR \
52 CC=\"$$QMAKE_CC\" \
Dominik Riebelinge86940c2010-07-21 19:35:20 +000053 $$CROSSOPTIONS \
Robert Bieber02c37742010-06-17 20:44:11 +000054 BUILDDIR=$$OBJECTS_DIR \
Robert Bieber6f067932010-07-07 08:41:36 +000055 -C \
56 $$RBBASE_DIR/lib/skin_parser \
Dominik Riebelinge4641282010-07-06 21:08:16 +000057 libskin_parser.a
Jonathan Gordon36b934d2010-06-17 06:52:02 +000058QMAKE_EXTRA_TARGETS += libskin_parser
59PRE_TARGETDEPS += libskin_parser
60INCLUDEPATH += $$RBBASE_DIR/lib/skin_parser
Robert Bieber6f067932010-07-07 08:41:36 +000061LIBS += -L$$MYBUILDDIR \
62 -lskin_parser
Jonathan Gordon36b934d2010-06-17 06:52:02 +000063DEPENDPATH = $$INCLUDEPATH
Jonathan Gordon36b934d2010-06-17 06:52:02 +000064HEADERS += models/parsetreemodel.h \
Robert Bieberca564282010-06-17 05:37:01 +000065 models/parsetreenode.h \
66 gui/editorwindow.h \
67 gui/skinhighlighter.h \
68 gui/skindocument.h \
69 gui/preferencesdialog.h \
70 gui/codeeditor.h \
71 models/projectmodel.h \
72 gui/tabcontent.h \
73 gui/configdocument.h \
Robert Bieber02c37742010-06-17 20:44:11 +000074 gui/skinviewer.h \
Robert Bieberd8827b52010-06-18 21:10:01 +000075 graphics/rbscreen.h \
76 graphics/rbviewport.h \
Robert Bieberac9287b2010-06-22 07:55:50 +000077 graphics/rbrenderinfo.h \
Robert Bieber6d615662010-06-23 20:18:31 +000078 graphics/rbimage.h \
Robert Bieber58ad1e72010-06-23 20:46:43 +000079 graphics/rbfont.h \
Robert Bieberbe70fd82010-06-26 07:59:23 +000080 gui/devicestate.h \
Robert Bieber97427042010-07-02 00:20:36 +000081 graphics/rbalbumart.h \
Robert Bieberfb09d632010-07-03 06:08:59 +000082 graphics/rbprogressbar.h \
Robert Bieber6f067932010-07-07 08:41:36 +000083 graphics/rbtext.h \
Robert Bieber6d609e02010-07-07 09:33:47 +000084 graphics/rbfontcache.h \
Robert Bieber73a37472010-07-08 21:53:27 +000085 graphics/rbtextcache.h \
Robert Bieber14238742010-07-10 06:43:50 +000086 gui/skintimer.h \
Robert Bieberc2721442010-07-15 21:39:09 +000087 graphics/rbtoucharea.h \
Robert Bieber025147e2010-07-16 20:47:23 +000088 gui/newprojectdialog.h \
Robert Bieber7c522842010-07-21 07:45:29 +000089 models/targetdata.h \
90 quazip/zip.h \
91 quazip/unzip.h \
92 quazip/quazipnewinfo.h \
93 quazip/quazipfileinfo.h \
94 quazip/quazipfile.h \
95 quazip/quazip.h \
96 quazip/ioapi.h \
97 quazip/crypt.h \
98 zlib/zlib.h \
99 zlib/zconf.h \
Robert Biebere6fd3d02010-07-23 07:31:53 +0000100 gui/fontdownloader.h \
101 qtfindreplacedialog/varianteditor.h \
102 qtfindreplacedialog/findreplace_global.h \
103 qtfindreplacedialog/findreplaceform.h \
104 qtfindreplacedialog/findreplacedialog.h \
105 qtfindreplacedialog/findform.h \
Robert Bieber5297db92010-07-23 21:15:15 +0000106 qtfindreplacedialog/finddialog.h \
Robert Bieberd92f8172010-07-25 21:59:35 +0000107 gui/projectexporter.h \
Robert Bieberf8dd3702010-07-30 01:26:10 +0000108 gui/targetdownloader.h \
Robert Bieber83c60a12010-08-03 22:29:26 +0000109 gui/syntaxcompleter.h \
Robert Bieberdf1ff112010-08-06 20:53:50 +0000110 graphics/rbmovable.h \
Robert Bieber56023422010-08-12 05:30:31 +0000111 graphics/rbscene.h \
112 gui/rbconsole.h
Jonathan Gordon36b934d2010-06-17 06:52:02 +0000113SOURCES += main.cpp \
Robert Bieberca564282010-06-17 05:37:01 +0000114 models/parsetreemodel.cpp \
115 models/parsetreenode.cpp \
116 gui/editorwindow.cpp \
117 gui/skinhighlighter.cpp \
118 gui/skindocument.cpp \
119 gui/preferencesdialog.cpp \
120 gui/codeeditor.cpp \
121 models/projectmodel.cpp \
122 gui/configdocument.cpp \
Robert Bieber02c37742010-06-17 20:44:11 +0000123 gui/skinviewer.cpp \
Robert Bieberd8827b52010-06-18 21:10:01 +0000124 graphics/rbscreen.cpp \
125 graphics/rbviewport.cpp \
Robert Bieberac9287b2010-06-22 07:55:50 +0000126 graphics/rbrenderinfo.cpp \
Robert Bieber6d615662010-06-23 20:18:31 +0000127 graphics/rbimage.cpp \
Robert Bieber58ad1e72010-06-23 20:46:43 +0000128 graphics/rbfont.cpp \
Robert Bieberbe70fd82010-06-26 07:59:23 +0000129 gui/devicestate.cpp \
Robert Bieber97427042010-07-02 00:20:36 +0000130 graphics/rbalbumart.cpp \
Robert Bieberfb09d632010-07-03 06:08:59 +0000131 graphics/rbprogressbar.cpp \
Robert Bieber6f067932010-07-07 08:41:36 +0000132 graphics/rbtext.cpp \
Robert Bieber6d609e02010-07-07 09:33:47 +0000133 graphics/rbfontcache.cpp \
Robert Bieber73a37472010-07-08 21:53:27 +0000134 graphics/rbtextcache.cpp \
Robert Bieber14238742010-07-10 06:43:50 +0000135 gui/skintimer.cpp \
Robert Bieberc2721442010-07-15 21:39:09 +0000136 graphics/rbtoucharea.cpp \
Robert Bieber025147e2010-07-16 20:47:23 +0000137 gui/newprojectdialog.cpp \
Robert Bieber7c522842010-07-21 07:45:29 +0000138 models/targetdata.cpp \
139 quazip/zip.c \
140 quazip/unzip.c \
141 quazip/quazipnewinfo.cpp \
142 quazip/quazipfile.cpp \
143 quazip/quazip.cpp \
144 quazip/ioapi.c \
Robert Biebere6fd3d02010-07-23 07:31:53 +0000145 gui/fontdownloader.cpp \
146 qtfindreplacedialog/varianteditor.cpp \
147 qtfindreplacedialog/findreplaceform.cpp \
148 qtfindreplacedialog/findreplacedialog.cpp \
149 qtfindreplacedialog/findform.cpp \
Robert Bieber5297db92010-07-23 21:15:15 +0000150 qtfindreplacedialog/finddialog.cpp \
Robert Bieberd92f8172010-07-25 21:59:35 +0000151 gui/projectexporter.cpp \
Robert Bieberf8dd3702010-07-30 01:26:10 +0000152 gui/targetdownloader.cpp \
Robert Bieber83c60a12010-08-03 22:29:26 +0000153 gui/syntaxcompleter.cpp \
Robert Bieberdf1ff112010-08-06 20:53:50 +0000154 graphics/rbmovable.cpp \
Robert Bieber56023422010-08-12 05:30:31 +0000155 graphics/rbscene.cpp \
156 gui/rbconsole.cpp
Robert Bieber084ff072010-06-03 20:51:17 +0000157OTHER_FILES += README \
158 resources/windowicon.png \
Robert Bieber47181b82010-06-05 19:47:49 +0000159 resources/appicon.xcf \
160 resources/COPYING \
161 resources/document-save.png \
162 resources/document-open.png \
Robert Bieber1ae6ee22010-06-24 07:59:41 +0000163 resources/document-new.png \
Robert Bieber35150b62010-06-30 21:28:11 +0000164 resources/deviceoptions \
165 resources/render/statusbar.png \
Robert Bieber73a37472010-07-08 21:53:27 +0000166 resources/render/scenebg.png \
167 resources/play.xcf \
168 resources/play.png \
169 resources/rwnd.png \
170 resources/pause.xcf \
171 resources/pause.png \
172 resources/ffwd.xcf \
Robert Bieber4b457d62010-07-14 07:38:09 +0000173 resources/ffwd.png \
174 resources/lines.xcf \
175 resources/lines.png \
176 resources/cursor.xcf \
Robert Bieber025147e2010-07-16 20:47:23 +0000177 resources/cursor.png \
Robert Bieber7c522842010-07-21 07:45:29 +0000178 resources/targetdb \
179 quazip/README.ROCKBOX \
Robert Biebere6fd3d02010-07-23 07:31:53 +0000180 quazip/LICENSE.GPL \
Robert Bieberf8dd3702010-07-30 01:26:10 +0000181 qtfindreplacedialog/dialogs.pro \
Robert Bieberc2161002010-08-04 17:56:00 +0000182 resources/tagdb \
183 resources/document-save-as.png \
184 resources/edit-undo.png \
185 resources/edit-redo.png \
186 resources/edit-paste.png \
187 resources/edit-cut.png \
188 resources/edit-copy.png \
Robert Bieber054a85f2010-08-05 00:43:33 +0000189 resources/edit-find-replace.png \
190 resources/applications-system.png
Robert Bieberca564282010-06-17 05:37:01 +0000191FORMS += gui/editorwindow.ui \
192 gui/preferencesdialog.ui \
193 gui/configdocument.ui \
Robert Bieberbe70fd82010-06-26 07:59:23 +0000194 gui/skinviewer.ui \
Robert Bieberc2721442010-07-15 21:39:09 +0000195 gui/skintimer.ui \
Robert Bieber7c522842010-07-21 07:45:29 +0000196 gui/newprojectdialog.ui \
Robert Biebere6fd3d02010-07-23 07:31:53 +0000197 gui/fontdownloader.ui \
198 qtfindreplacedialog/findreplaceform.ui \
Robert Bieber5297db92010-07-23 21:15:15 +0000199 qtfindreplacedialog/findreplacedialog.ui \
Robert Bieberd92f8172010-07-25 21:59:35 +0000200 gui/projectexporter.ui \
Robert Bieber56023422010-08-12 05:30:31 +0000201 gui/targetdownloader.ui \
202 gui/rbconsole.ui
Robert Bieber084ff072010-06-03 20:51:17 +0000203RESOURCES += resources.qrc
Robert Bieber6f067932010-07-07 08:41:36 +0000204win32:RC_FILE = themeeditor.rc
205macx {
206 QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk
207 QMAKE_LFLAGS_PPC = -mmacosx-version-min=10.4 \
208 -arch \
209 ppc
210 QMAKE_LFLAGS_X86 = -mmacosx-version-min=10.4 \
211 -arch \
212 i386
213 CONFIG += x86 \
214 ppc
Dominik Riebelingb4443ef2010-07-06 21:46:53 +0000215 QMAKE_INFO_PLIST = Info.plist
216 RC_FILE = resources/windowicon.icns
Dominik Riebelinge4641282010-07-06 21:08:16 +0000217}
Dominik Riebeling2ce1dfe2011-05-29 19:33:17 +0000218
219# add any external lib build into build/ to clean target, as well as objects
220# created during that in the objects build folder.
221QMAKE_CLEAN += build/*.a $$OBJECTS_DIR/*.o