Robert Bieber | f8dd370 | 2010-07-30 01:26:10 +0000 | [diff] [blame] | 1 | # Setting the binary name |
Robert Bieber | d530f0b | 2010-07-26 21:18:47 +0000 | [diff] [blame] | 2 | TARGET = rbthemeeditor |
Robert Bieber | dbeb1ee | 2010-07-26 21:37:26 +0000 | [diff] [blame] | 3 | VERSION = 0.5 |
Robert Bieber | f8dd370 | 2010-07-30 01:26:10 +0000 | [diff] [blame] | 4 | CONFIG(debug) { |
Robert Bieber | 1c37249 | 2010-07-28 06:50:52 +0000 | [diff] [blame] | 5 | REVISION = $$system(svnversion) |
Robert Bieber | f8dd370 | 2010-07-30 01:26:10 +0000 | [diff] [blame] | 6 | VERSION = $$join(VERSION,,,r) |
| 7 | VERSION = $$join(VERSION,,,$$REVISION) |
Robert Bieber | 1c37249 | 2010-07-28 06:50:52 +0000 | [diff] [blame] | 8 | } |
| 9 | |
Robert Bieber | d530f0b | 2010-07-26 21:18:47 +0000 | [diff] [blame] | 10 | # Adding network support |
Robert Bieber | 7c52284 | 2010-07-21 07:45:29 +0000 | [diff] [blame] | 11 | QT += network |
| 12 | |
Robert Bieber | 6d609e0 | 2010-07-07 09:33:47 +0000 | [diff] [blame] | 13 | # Enabling profiling |
| 14 | QMAKE_CXXFLAGS_DEBUG += -pg |
| 15 | QMAKE_LFLAGS_DEBUG += -pg |
| 16 | |
Robert Bieber | 7c52284 | 2010-07-21 07:45:29 +0000 | [diff] [blame] | 17 | # Adding zlib dependency for QuaZip |
| 18 | LIBS += -lz |
| 19 | INCLUDEPATH += zlib |
| 20 | |
Robert Bieber | e5a3ec2 | 2010-06-02 20:36:30 +0000 | [diff] [blame] | 21 | # build in a separate folder. |
| 22 | MYBUILDDIR = $$OUT_PWD/build/ |
| 23 | OBJECTS_DIR = $$MYBUILDDIR/o |
| 24 | UI_DIR = $$MYBUILDDIR/ui |
| 25 | MOC_DIR = $$MYBUILDDIR/moc |
| 26 | RCC_DIR = $$MYBUILDDIR/rcc |
Jonathan Gordon | 36b934d | 2010-06-17 06:52:02 +0000 | [diff] [blame] | 27 | RBBASE_DIR = $$_PRO_FILE_PWD_ |
| 28 | RBBASE_DIR = $$replace(RBBASE_DIR,/utils/themeeditor,) |
| 29 | |
Robert Bieber | 02c3774 | 2010-06-17 20:44:11 +0000 | [diff] [blame] | 30 | # Include directories |
Robert Bieber | ca56428 | 2010-06-17 05:37:01 +0000 | [diff] [blame] | 31 | INCLUDEPATH += gui |
Robert Bieber | ca56428 | 2010-06-17 05:37:01 +0000 | [diff] [blame] | 32 | INCLUDEPATH += models |
Robert Bieber | 02c3774 | 2010-06-17 20:44:11 +0000 | [diff] [blame] | 33 | INCLUDEPATH += graphics |
Robert Bieber | 7c52284 | 2010-07-21 07:45:29 +0000 | [diff] [blame] | 34 | INCLUDEPATH += quazip |
Robert Bieber | e6fd3d0 | 2010-07-23 07:31:53 +0000 | [diff] [blame] | 35 | INCLUDEPATH += qtfindreplacedialog |
Dominik Riebeling | 62f6618 | 2010-07-25 18:06:41 +0000 | [diff] [blame] | 36 | DEFINES += FINDREPLACE_NOLIB |
Robert Bieber | e6fd3d0 | 2010-07-23 07:31:53 +0000 | [diff] [blame] | 37 | cross { |
Dominik Riebeling | e86940c | 2010-07-21 19:35:20 +0000 | [diff] [blame] | 38 | message("Crossbuilding for W32 binary") |
Robert Bieber | e6fd3d0 | 2010-07-23 07:31:53 +0000 | [diff] [blame] | 39 | |
Dominik Riebeling | e86940c | 2010-07-21 19:35:20 +0000 | [diff] [blame] | 40 | # 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 Riebeling | 8c6b8e6 | 2011-03-05 12:50:46 +0000 | [diff] [blame] | 43 | CROSSOPTIONS += AR=$$member(QMAKE_LIB) TARGETPLATFORM=\"MinGW\" |
Robert Bieber | e6fd3d0 | 2010-07-23 07:31:53 +0000 | [diff] [blame] | 44 | |
Dominik Riebeling | e86940c | 2010-07-21 19:35:20 +0000 | [diff] [blame] | 45 | # make sure we use the correct subsystem to prevent a console window coming up. |
| 46 | LIBS += -Wl,-subsystem,windows |
| 47 | } |
Robert Bieber | e6fd3d0 | 2010-07-23 07:31:53 +0000 | [diff] [blame] | 48 | |
Jonathan Gordon | 36b934d | 2010-06-17 06:52:02 +0000 | [diff] [blame] | 49 | # Stuff for the parse lib |
| 50 | libskin_parser.commands = @$(MAKE) \ |
Robert Bieber | 6f06793 | 2010-07-07 08:41:36 +0000 | [diff] [blame] | 51 | TARGET_DIR=$$MYBUILDDIR \ |
| 52 | CC=\"$$QMAKE_CC\" \ |
Dominik Riebeling | e86940c | 2010-07-21 19:35:20 +0000 | [diff] [blame] | 53 | $$CROSSOPTIONS \ |
Robert Bieber | 02c3774 | 2010-06-17 20:44:11 +0000 | [diff] [blame] | 54 | BUILDDIR=$$OBJECTS_DIR \ |
Robert Bieber | 6f06793 | 2010-07-07 08:41:36 +0000 | [diff] [blame] | 55 | -C \ |
| 56 | $$RBBASE_DIR/lib/skin_parser \ |
Dominik Riebeling | e464128 | 2010-07-06 21:08:16 +0000 | [diff] [blame] | 57 | libskin_parser.a |
Jonathan Gordon | 36b934d | 2010-06-17 06:52:02 +0000 | [diff] [blame] | 58 | QMAKE_EXTRA_TARGETS += libskin_parser |
| 59 | PRE_TARGETDEPS += libskin_parser |
| 60 | INCLUDEPATH += $$RBBASE_DIR/lib/skin_parser |
Robert Bieber | 6f06793 | 2010-07-07 08:41:36 +0000 | [diff] [blame] | 61 | LIBS += -L$$MYBUILDDIR \ |
| 62 | -lskin_parser |
Jonathan Gordon | 36b934d | 2010-06-17 06:52:02 +0000 | [diff] [blame] | 63 | DEPENDPATH = $$INCLUDEPATH |
Jonathan Gordon | 36b934d | 2010-06-17 06:52:02 +0000 | [diff] [blame] | 64 | HEADERS += models/parsetreemodel.h \ |
Robert Bieber | ca56428 | 2010-06-17 05:37:01 +0000 | [diff] [blame] | 65 | 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 Bieber | 02c3774 | 2010-06-17 20:44:11 +0000 | [diff] [blame] | 74 | gui/skinviewer.h \ |
Robert Bieber | d8827b5 | 2010-06-18 21:10:01 +0000 | [diff] [blame] | 75 | graphics/rbscreen.h \ |
| 76 | graphics/rbviewport.h \ |
Robert Bieber | ac9287b | 2010-06-22 07:55:50 +0000 | [diff] [blame] | 77 | graphics/rbrenderinfo.h \ |
Robert Bieber | 6d61566 | 2010-06-23 20:18:31 +0000 | [diff] [blame] | 78 | graphics/rbimage.h \ |
Robert Bieber | 58ad1e7 | 2010-06-23 20:46:43 +0000 | [diff] [blame] | 79 | graphics/rbfont.h \ |
Robert Bieber | be70fd8 | 2010-06-26 07:59:23 +0000 | [diff] [blame] | 80 | gui/devicestate.h \ |
Robert Bieber | 9742704 | 2010-07-02 00:20:36 +0000 | [diff] [blame] | 81 | graphics/rbalbumart.h \ |
Robert Bieber | fb09d63 | 2010-07-03 06:08:59 +0000 | [diff] [blame] | 82 | graphics/rbprogressbar.h \ |
Robert Bieber | 6f06793 | 2010-07-07 08:41:36 +0000 | [diff] [blame] | 83 | graphics/rbtext.h \ |
Robert Bieber | 6d609e0 | 2010-07-07 09:33:47 +0000 | [diff] [blame] | 84 | graphics/rbfontcache.h \ |
Robert Bieber | 73a3747 | 2010-07-08 21:53:27 +0000 | [diff] [blame] | 85 | graphics/rbtextcache.h \ |
Robert Bieber | 1423874 | 2010-07-10 06:43:50 +0000 | [diff] [blame] | 86 | gui/skintimer.h \ |
Robert Bieber | c272144 | 2010-07-15 21:39:09 +0000 | [diff] [blame] | 87 | graphics/rbtoucharea.h \ |
Robert Bieber | 025147e | 2010-07-16 20:47:23 +0000 | [diff] [blame] | 88 | gui/newprojectdialog.h \ |
Robert Bieber | 7c52284 | 2010-07-21 07:45:29 +0000 | [diff] [blame] | 89 | 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 Bieber | e6fd3d0 | 2010-07-23 07:31:53 +0000 | [diff] [blame] | 100 | 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 Bieber | 5297db9 | 2010-07-23 21:15:15 +0000 | [diff] [blame] | 106 | qtfindreplacedialog/finddialog.h \ |
Robert Bieber | d92f817 | 2010-07-25 21:59:35 +0000 | [diff] [blame] | 107 | gui/projectexporter.h \ |
Robert Bieber | f8dd370 | 2010-07-30 01:26:10 +0000 | [diff] [blame] | 108 | gui/targetdownloader.h \ |
Robert Bieber | 83c60a1 | 2010-08-03 22:29:26 +0000 | [diff] [blame] | 109 | gui/syntaxcompleter.h \ |
Robert Bieber | df1ff11 | 2010-08-06 20:53:50 +0000 | [diff] [blame] | 110 | graphics/rbmovable.h \ |
Robert Bieber | 5602342 | 2010-08-12 05:30:31 +0000 | [diff] [blame] | 111 | graphics/rbscene.h \ |
| 112 | gui/rbconsole.h |
Jonathan Gordon | 36b934d | 2010-06-17 06:52:02 +0000 | [diff] [blame] | 113 | SOURCES += main.cpp \ |
Robert Bieber | ca56428 | 2010-06-17 05:37:01 +0000 | [diff] [blame] | 114 | 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 Bieber | 02c3774 | 2010-06-17 20:44:11 +0000 | [diff] [blame] | 123 | gui/skinviewer.cpp \ |
Robert Bieber | d8827b5 | 2010-06-18 21:10:01 +0000 | [diff] [blame] | 124 | graphics/rbscreen.cpp \ |
| 125 | graphics/rbviewport.cpp \ |
Robert Bieber | ac9287b | 2010-06-22 07:55:50 +0000 | [diff] [blame] | 126 | graphics/rbrenderinfo.cpp \ |
Robert Bieber | 6d61566 | 2010-06-23 20:18:31 +0000 | [diff] [blame] | 127 | graphics/rbimage.cpp \ |
Robert Bieber | 58ad1e7 | 2010-06-23 20:46:43 +0000 | [diff] [blame] | 128 | graphics/rbfont.cpp \ |
Robert Bieber | be70fd8 | 2010-06-26 07:59:23 +0000 | [diff] [blame] | 129 | gui/devicestate.cpp \ |
Robert Bieber | 9742704 | 2010-07-02 00:20:36 +0000 | [diff] [blame] | 130 | graphics/rbalbumart.cpp \ |
Robert Bieber | fb09d63 | 2010-07-03 06:08:59 +0000 | [diff] [blame] | 131 | graphics/rbprogressbar.cpp \ |
Robert Bieber | 6f06793 | 2010-07-07 08:41:36 +0000 | [diff] [blame] | 132 | graphics/rbtext.cpp \ |
Robert Bieber | 6d609e0 | 2010-07-07 09:33:47 +0000 | [diff] [blame] | 133 | graphics/rbfontcache.cpp \ |
Robert Bieber | 73a3747 | 2010-07-08 21:53:27 +0000 | [diff] [blame] | 134 | graphics/rbtextcache.cpp \ |
Robert Bieber | 1423874 | 2010-07-10 06:43:50 +0000 | [diff] [blame] | 135 | gui/skintimer.cpp \ |
Robert Bieber | c272144 | 2010-07-15 21:39:09 +0000 | [diff] [blame] | 136 | graphics/rbtoucharea.cpp \ |
Robert Bieber | 025147e | 2010-07-16 20:47:23 +0000 | [diff] [blame] | 137 | gui/newprojectdialog.cpp \ |
Robert Bieber | 7c52284 | 2010-07-21 07:45:29 +0000 | [diff] [blame] | 138 | 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 Bieber | e6fd3d0 | 2010-07-23 07:31:53 +0000 | [diff] [blame] | 145 | gui/fontdownloader.cpp \ |
| 146 | qtfindreplacedialog/varianteditor.cpp \ |
| 147 | qtfindreplacedialog/findreplaceform.cpp \ |
| 148 | qtfindreplacedialog/findreplacedialog.cpp \ |
| 149 | qtfindreplacedialog/findform.cpp \ |
Robert Bieber | 5297db9 | 2010-07-23 21:15:15 +0000 | [diff] [blame] | 150 | qtfindreplacedialog/finddialog.cpp \ |
Robert Bieber | d92f817 | 2010-07-25 21:59:35 +0000 | [diff] [blame] | 151 | gui/projectexporter.cpp \ |
Robert Bieber | f8dd370 | 2010-07-30 01:26:10 +0000 | [diff] [blame] | 152 | gui/targetdownloader.cpp \ |
Robert Bieber | 83c60a1 | 2010-08-03 22:29:26 +0000 | [diff] [blame] | 153 | gui/syntaxcompleter.cpp \ |
Robert Bieber | df1ff11 | 2010-08-06 20:53:50 +0000 | [diff] [blame] | 154 | graphics/rbmovable.cpp \ |
Robert Bieber | 5602342 | 2010-08-12 05:30:31 +0000 | [diff] [blame] | 155 | graphics/rbscene.cpp \ |
| 156 | gui/rbconsole.cpp |
Robert Bieber | 084ff07 | 2010-06-03 20:51:17 +0000 | [diff] [blame] | 157 | OTHER_FILES += README \ |
| 158 | resources/windowicon.png \ |
Robert Bieber | 47181b8 | 2010-06-05 19:47:49 +0000 | [diff] [blame] | 159 | resources/appicon.xcf \ |
| 160 | resources/COPYING \ |
| 161 | resources/document-save.png \ |
| 162 | resources/document-open.png \ |
Robert Bieber | 1ae6ee2 | 2010-06-24 07:59:41 +0000 | [diff] [blame] | 163 | resources/document-new.png \ |
Robert Bieber | 35150b6 | 2010-06-30 21:28:11 +0000 | [diff] [blame] | 164 | resources/deviceoptions \ |
| 165 | resources/render/statusbar.png \ |
Robert Bieber | 73a3747 | 2010-07-08 21:53:27 +0000 | [diff] [blame] | 166 | 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 Bieber | 4b457d6 | 2010-07-14 07:38:09 +0000 | [diff] [blame] | 173 | resources/ffwd.png \ |
| 174 | resources/lines.xcf \ |
| 175 | resources/lines.png \ |
| 176 | resources/cursor.xcf \ |
Robert Bieber | 025147e | 2010-07-16 20:47:23 +0000 | [diff] [blame] | 177 | resources/cursor.png \ |
Robert Bieber | 7c52284 | 2010-07-21 07:45:29 +0000 | [diff] [blame] | 178 | resources/targetdb \ |
| 179 | quazip/README.ROCKBOX \ |
Robert Bieber | e6fd3d0 | 2010-07-23 07:31:53 +0000 | [diff] [blame] | 180 | quazip/LICENSE.GPL \ |
Robert Bieber | f8dd370 | 2010-07-30 01:26:10 +0000 | [diff] [blame] | 181 | qtfindreplacedialog/dialogs.pro \ |
Robert Bieber | c216100 | 2010-08-04 17:56:00 +0000 | [diff] [blame] | 182 | 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 Bieber | 054a85f | 2010-08-05 00:43:33 +0000 | [diff] [blame] | 189 | resources/edit-find-replace.png \ |
| 190 | resources/applications-system.png |
Robert Bieber | ca56428 | 2010-06-17 05:37:01 +0000 | [diff] [blame] | 191 | FORMS += gui/editorwindow.ui \ |
| 192 | gui/preferencesdialog.ui \ |
| 193 | gui/configdocument.ui \ |
Robert Bieber | be70fd8 | 2010-06-26 07:59:23 +0000 | [diff] [blame] | 194 | gui/skinviewer.ui \ |
Robert Bieber | c272144 | 2010-07-15 21:39:09 +0000 | [diff] [blame] | 195 | gui/skintimer.ui \ |
Robert Bieber | 7c52284 | 2010-07-21 07:45:29 +0000 | [diff] [blame] | 196 | gui/newprojectdialog.ui \ |
Robert Bieber | e6fd3d0 | 2010-07-23 07:31:53 +0000 | [diff] [blame] | 197 | gui/fontdownloader.ui \ |
| 198 | qtfindreplacedialog/findreplaceform.ui \ |
Robert Bieber | 5297db9 | 2010-07-23 21:15:15 +0000 | [diff] [blame] | 199 | qtfindreplacedialog/findreplacedialog.ui \ |
Robert Bieber | d92f817 | 2010-07-25 21:59:35 +0000 | [diff] [blame] | 200 | gui/projectexporter.ui \ |
Robert Bieber | 5602342 | 2010-08-12 05:30:31 +0000 | [diff] [blame] | 201 | gui/targetdownloader.ui \ |
| 202 | gui/rbconsole.ui |
Robert Bieber | 084ff07 | 2010-06-03 20:51:17 +0000 | [diff] [blame] | 203 | RESOURCES += resources.qrc |
Robert Bieber | 6f06793 | 2010-07-07 08:41:36 +0000 | [diff] [blame] | 204 | win32:RC_FILE = themeeditor.rc |
| 205 | macx { |
| 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 Riebeling | b4443ef | 2010-07-06 21:46:53 +0000 | [diff] [blame] | 215 | QMAKE_INFO_PLIST = Info.plist |
| 216 | RC_FILE = resources/windowicon.icns |
Dominik Riebeling | e464128 | 2010-07-06 21:08:16 +0000 | [diff] [blame] | 217 | } |
Dominik Riebeling | 2ce1dfe | 2011-05-29 19:33:17 +0000 | [diff] [blame] | 218 | |
| 219 | # add any external lib build into build/ to clean target, as well as objects |
| 220 | # created during that in the objects build folder. |
| 221 | QMAKE_CLEAN += build/*.a $$OBJECTS_DIR/*.o |