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
)
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 SOURCES
+= main
.cpp \
111 models
/parsetreemodel
.cpp \
112 models
/parsetreenode
.cpp \
113 gui
/editorwindow
.cpp \
114 gui
/skinhighlighter
.cpp \
115 gui
/skindocument
.cpp \
116 gui
/preferencesdialog
.cpp \
118 models
/projectmodel
.cpp \
119 gui
/configdocument
.cpp \
121 graphics
/rbscreen
.cpp \
122 graphics
/rbviewport
.cpp \
123 graphics
/rbrenderinfo
.cpp \
124 graphics
/rbimage
.cpp \
125 graphics
/rbfont
.cpp \
126 gui
/devicestate
.cpp \
127 graphics
/rbalbumart
.cpp \
128 graphics
/rbprogressbar
.cpp \
129 graphics
/rbtext
.cpp \
130 graphics
/rbfontcache
.cpp \
131 graphics
/rbtextcache
.cpp \
133 graphics
/rbtoucharea
.cpp \
134 gui
/newprojectdialog
.cpp \
135 models
/targetdata
.cpp \
138 quazip
/quazipnewinfo
.cpp \
139 quazip
/quazipfile
.cpp \
142 gui
/fontdownloader
.cpp \
143 qtfindreplacedialog
/varianteditor
.cpp \
144 qtfindreplacedialog
/findreplaceform
.cpp \
145 qtfindreplacedialog
/findreplacedialog
.cpp \
146 qtfindreplacedialog
/findform
.cpp \
147 qtfindreplacedialog
/finddialog
.cpp \
148 gui
/projectexporter
.cpp \
149 gui
/targetdownloader
.cpp \
150 gui
/syntaxcompleter
.cpp
151 OTHER_FILES
+= README \
152 resources
/windowicon
.png \
153 resources
/appicon
.xcf \
155 resources
/document
-save
.png \
156 resources
/document
-open.png \
157 resources
/document
-new
.png \
158 resources
/deviceoptions \
159 resources
/render
/statusbar
.png \
160 resources
/render
/scenebg
.png \
164 resources
/pause
.xcf \
165 resources
/pause
.png \
168 resources
/lines
.xcf \
169 resources
/lines
.png \
170 resources
/cursor
.xcf \
171 resources
/cursor
.png \
173 quazip
/README
.ROCKBOX \
175 qtfindreplacedialog
/dialogs
.pro \
177 FORMS
+= gui
/editorwindow
.ui \
178 gui
/preferencesdialog
.ui \
179 gui
/configdocument
.ui \
182 gui
/newprojectdialog
.ui \
183 gui
/fontdownloader
.ui \
184 qtfindreplacedialog
/findreplaceform
.ui \
185 qtfindreplacedialog
/findreplacedialog
.ui \
186 gui
/projectexporter
.ui \
187 gui
/targetdownloader
.ui
188 RESOURCES
+= resources
.qrc
189 win32
:RC_FILE
= themeeditor
.rc
191 QMAKE_MAC_SDK
= /Developer
/SDKs
/MacOSX10
.4u
.sdk
192 QMAKE_LFLAGS_PPC
= -mmacosx
-version
-min
=10.4 \
195 QMAKE_LFLAGS_X86
= -mmacosx
-version
-min
=10.4 \
200 QMAKE_INFO_PLIST
= Info
.plist
201 RC_FILE
= resources
/windowicon
.icns