1 # Setting the binary name
5 REVISION
= $$
system(svnversion
)
6 VERSION
= $$
join(VERSION
,,,r
)
7 VERSION
= $$
join(VERSION
,,,$$REVISION
)
10 # Adding network support
14 QMAKE_CXXFLAGS_DEBUG
+= -pg
15 QMAKE_LFLAGS_DEBUG
+= -pg
17 # Adding zlib dependency for QuaZip
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
27 RBBASE_DIR
= $$_PRO_FILE_PWD_
28 RBBASE_DIR
= $$
replace(RBBASE_DIR
,/utils
/themeeditor
,)
33 INCLUDEPATH
+= graphics
35 INCLUDEPATH
+= qtfindreplacedialog
36 DEFINES
+= FINDREPLACE_NOLIB
38 message("Crossbuilding for W32 binary")
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.
43 CROSSOPTIONS
+= AR
=$$
member(QMAKE_LIB
) TARGETPLATFORM
=\"MinGW
\"
45 # make sure we use the correct subsystem to prevent a console window coming up.
46 LIBS
+= -Wl
,-subsystem
,windows
49 # Stuff for the parse lib
50 libskin_parser
.commands
= @$
(MAKE
) \
51 TARGET_DIR
=$$MYBUILDDIR \
54 BUILDDIR
=$$OBJECTS_DIR \
56 $$RBBASE_DIR
/lib
/skin_parser \
58 QMAKE_EXTRA_TARGETS
+= libskin_parser
59 PRE_TARGETDEPS
+= libskin_parser
60 INCLUDEPATH
+= $$RBBASE_DIR
/lib
/skin_parser
61 LIBS
+= -L$$MYBUILDDIR \
63 DEPENDPATH
= $$INCLUDEPATH
64 HEADERS
+= models
/parsetreemodel
.h \
65 models
/parsetreenode
.h \
67 gui
/skinhighlighter
.h \
69 gui
/preferencesdialog
.h \
71 models
/projectmodel
.h \
73 gui
/configdocument
.h \
76 graphics
/rbviewport
.h \
77 graphics
/rbrenderinfo
.h \
81 graphics
/rbalbumart
.h \
82 graphics
/rbprogressbar
.h \
84 graphics
/rbfontcache
.h \
85 graphics
/rbtextcache
.h \
87 graphics
/rbtoucharea
.h \
88 gui
/newprojectdialog
.h \
92 quazip
/quazipnewinfo
.h \
93 quazip
/quazipfileinfo
.h \
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 \
106 qtfindreplacedialog
/finddialog
.h \
107 gui
/projectexporter
.h \
108 gui
/targetdownloader
.h \
109 gui
/syntaxcompleter
.h \
110 graphics
/rbmovable
.h \
113 SOURCES
+= main
.cpp \
114 models
/parsetreemodel
.cpp \
115 models
/parsetreenode
.cpp \
116 gui
/editorwindow
.cpp \
117 gui
/skinhighlighter
.cpp \
118 gui
/skindocument
.cpp \
119 gui
/preferencesdialog
.cpp \
121 models
/projectmodel
.cpp \
122 gui
/configdocument
.cpp \
124 graphics
/rbscreen
.cpp \
125 graphics
/rbviewport
.cpp \
126 graphics
/rbrenderinfo
.cpp \
127 graphics
/rbimage
.cpp \
128 graphics
/rbfont
.cpp \
129 gui
/devicestate
.cpp \
130 graphics
/rbalbumart
.cpp \
131 graphics
/rbprogressbar
.cpp \
132 graphics
/rbtext
.cpp \
133 graphics
/rbfontcache
.cpp \
134 graphics
/rbtextcache
.cpp \
136 graphics
/rbtoucharea
.cpp \
137 gui
/newprojectdialog
.cpp \
138 models
/targetdata
.cpp \
141 quazip
/quazipnewinfo
.cpp \
142 quazip
/quazipfile
.cpp \
145 gui
/fontdownloader
.cpp \
146 qtfindreplacedialog
/varianteditor
.cpp \
147 qtfindreplacedialog
/findreplaceform
.cpp \
148 qtfindreplacedialog
/findreplacedialog
.cpp \
149 qtfindreplacedialog
/findform
.cpp \
150 qtfindreplacedialog
/finddialog
.cpp \
151 gui
/projectexporter
.cpp \
152 gui
/targetdownloader
.cpp \
153 gui
/syntaxcompleter
.cpp \
154 graphics
/rbmovable
.cpp \
155 graphics
/rbscene
.cpp \
157 OTHER_FILES
+= README \
158 resources
/windowicon
.png \
159 resources
/appicon
.xcf \
161 resources
/document
-save
.png \
162 resources
/document
-open.png \
163 resources
/document
-new
.png \
164 resources
/deviceoptions \
165 resources
/render
/statusbar
.png \
166 resources
/render
/scenebg
.png \
170 resources
/pause
.xcf \
171 resources
/pause
.png \
174 resources
/lines
.xcf \
175 resources
/lines
.png \
176 resources
/cursor
.xcf \
177 resources
/cursor
.png \
179 quazip
/README
.ROCKBOX \
181 qtfindreplacedialog
/dialogs
.pro \
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 \
189 resources
/edit
-find
-replace
.png \
190 resources
/applications
-system
.png
191 FORMS
+= gui
/editorwindow
.ui \
192 gui
/preferencesdialog
.ui \
193 gui
/configdocument
.ui \
196 gui
/newprojectdialog
.ui \
197 gui
/fontdownloader
.ui \
198 qtfindreplacedialog
/findreplaceform
.ui \
199 qtfindreplacedialog
/findreplacedialog
.ui \
200 gui
/projectexporter
.ui \
201 gui
/targetdownloader
.ui \
203 RESOURCES
+= resources
.qrc
204 win32
:RC_FILE
= themeeditor
.rc
206 QMAKE_MAC_SDK
= /Developer
/SDKs
/MacOSX10
.4u
.sdk
207 QMAKE_LFLAGS_PPC
= -mmacosx
-version
-min
=10.4 \
210 QMAKE_LFLAGS_X86
= -mmacosx
-version
-min
=10.4 \
215 QMAKE_INFO_PLIST
= Info
.plist
216 RC_FILE
= resources
/windowicon
.icns
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