1 # |
|
2 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # |
|
16 |
|
17 TEMPLATE = app |
|
18 |
|
19 TARGET = obsoleteBrowser |
|
20 #TARGET = ginebra |
|
21 |
|
22 # Everything should be relative to ROOT_DIR (makes cut-and-paste safer). |
|
23 #ROOT_DIR = $$PWD/.. |
|
24 |
|
25 # Common build options, library includes (browsercore etc), and Qt settings. |
|
26 #include($$ROOT_DIR/common/commonExternals.pri) |
|
27 include(../common/commonExternals.pri) |
|
28 |
|
29 QT += webkit |
|
30 include($$ROOT_DIR/sf/app/browserui/browserui.pri) |
|
31 |
|
32 |
|
33 # Common SOURCES, HEADERS from app |
|
34 include($$ROOT_DIR/sf/app/browserui/common/common.pri) |
|
35 |
|
36 TRANSLATIONS += $$PWD/translations/browserLoc.ts |
|
37 |
|
38 # ;;; Following can presumably go away if we will also use Qt's QtWebKit |
|
39 win32: { |
|
40 # adding the WRT bin directory to LIBPATH so that we can pickup QtWebkit.lib |
|
41 CONFIG(release, debug|release):WRT_BIN_DIR=$$PWD/../../../../WrtBuild/Release/bin |
|
42 CONFIG(debug, debug|release):WRT_BIN_DIR=$$PWD/../../../../WrtBuild/Debug/bin |
|
43 LIBPATH += $$WRT_BIN_DIR |
|
44 } |
|
45 |
|
46 # Override some output directories set by commonExternals.pri. |
|
47 # Leave DEST_DIR unchanged. |
|
48 OBJECTS_DIR = $$APP_OUTPUT_DIR/ginebra |
|
49 MOC_DIR = $$APP_OUTPUT_DIR/ginebra |
|
50 RCC_DIR = $$APP_OUTPUT_DIR/ginebra |
|
51 TEMPDIR = $$APP_OUTPUT_DIR/ginebra/build |
|
52 |
|
53 ################################################################################ |
|
54 # |
|
55 # NEW code for ginebra |
|
56 # |
|
57 ################################################################################ |
|
58 |
|
59 HEADERS = \ |
|
60 attentionanimator.h \ |
|
61 chromejsobject.h \ |
|
62 chromerenderer.h \ |
|
63 chromesnippet.h \ |
|
64 chromesnippetjsobject.h \ |
|
65 chromeview.h \ |
|
66 LocaleDelegate.h \ |
|
67 chromewidget.h \ |
|
68 chromewidgetjsobject.h \ |
|
69 devicedelegate.h \ |
|
70 flickcharm.h \ |
|
71 graphicsitemanimation.h \ |
|
72 utilities.h \ |
|
73 visibilityanimator.h \ |
|
74 viewstack.h \ |
|
75 animations/bounceanimator.h \ |
|
76 animations/flyoutanimator.h \ |
|
77 animations/fadeanimator.h \ |
|
78 animations/malstromanimator.h \ |
|
79 animations/pulseanimator.h \ |
|
80 animations/slideanimator.h \ |
|
81 emulator/chromeconsole.h \ |
|
82 emulator/chromewindow.h |
|
83 |
|
84 SOURCES = \ |
|
85 attentionanimator.cpp \ |
|
86 chromejsobject.cpp \ |
|
87 chromerenderer.cpp \ |
|
88 chromesnippet.cpp \ |
|
89 chromesnippetjsobject.cpp \ |
|
90 chromeview.cpp \ |
|
91 LocaleDelegate.cpp \ |
|
92 chromewidget.cpp \ |
|
93 chromewidgetjsobject.cpp \ |
|
94 devicedelegate.cpp \ |
|
95 flickcharm.cpp \ |
|
96 graphicsitemanimation.cpp \ |
|
97 visibilityanimator.cpp \ |
|
98 viewstack.cpp \ |
|
99 animations/bounceanimator.cpp \ |
|
100 animations/fadeanimator.cpp \ |
|
101 animations/flyoutanimator.cpp \ |
|
102 animations/malstromanimator.cpp \ |
|
103 animations/slideanimator.cpp \ |
|
104 animations/pulseanimator.cpp \ |
|
105 emulator/chromeconsole.cpp \ |
|
106 emulator/chromewindow.cpp \ |
|
107 emulator/main.cpp |
|
108 |
|
109 FORMS += emulator/ui/console.ui |
|
110 |
|
111 RESOURCES += $$PWD/ginebra.qrc |
|
112 |
|
113 contains(what, devicedelegate) { |
|
114 CONFIG += mobility |
|
115 MOBILITY = bearer systeminfo |
|
116 DEFINES += QT_MOBILITY_BEARER_SYSINFO |
|
117 } |
|
118 |
|
119 symbian: { |
|
120 TARGET.EPOCALLOWDLLDATA = 1 |
|
121 TARGET.EPOCSTACKSIZE = 0x14000 |
|
122 TARGET.EPOCHEAPSIZE = 0x20000 \ |
|
123 0x2000000 \ |
|
124 // \ |
|
125 Min \ |
|
126 128kB, \ |
|
127 Max \ |
|
128 32MB |
|
129 TARGET.CAPABILITY = All -TCB -DRM -AllFiles |
|
130 |
|
131 TARGET.UID3 = 0x200267F0 |
|
132 CONFIG += link_prl |
|
133 LIBS += -lcommdb |
|
134 LIBS += -lesock -lconnmon |
|
135 |
|
136 contains(what, plat_101 ) { |
|
137 DEFINES += PLAT_101 |
|
138 } else { |
|
139 LIBS += -lstandaloneallocator.lib |
|
140 } |
|
141 |
|
142 LIBS += -lhal |
|
143 |
|
144 # localpages |
|
145 localpages.sources = ./chrome/localpages/*.htm* \ |
|
146 ./chrome/localpages/*/js \ |
|
147 ./chrome/localpages/*.css \ |
|
148 ./chrome/localpages/*.png |
|
149 localpages.path = /data/Others/chrome/localpages |
|
150 CHROME_DEPLOYS += localpages |
|
151 |
|
152 # for all chromes |
|
153 globaljs.sources = ./chrome/js/*.html* \ |
|
154 ./chrome/js/*.js \ |
|
155 ./chrome/js/*.css |
|
156 globaljs.path = /data/Others/chrome/js |
|
157 CHROME_DEPLOYS += globaljs |
|
158 |
|
159 # for deploying bedrock chrome |
|
160 chromehtml.sources = ./chrome/bedrockchrome/*.html* \ |
|
161 ./chrome/bedrockchrome/*.js \ |
|
162 ./chrome/bedrockchrome/*.css |
|
163 chromehtml.path = /data/Others/chrome/bedrockchrome |
|
164 BEDROCKCHROME_DEPLOYS += chromehtml |
|
165 |
|
166 globaljsthp.sources = ./chrome/js/3rdparty/*.html* \ |
|
167 ./chrome/js/3rdparty/*.js \ |
|
168 ./chrome/js/3rdparty/*.css |
|
169 globaljsthp.path = /data/Others/chrome/js/3rdparty |
|
170 CHROME_DEPLOYS += globaljsthp |
|
171 |
|
172 statusbar.sources = ./chrome/bedrockchrome/statusbar.snippet/*.html* \ |
|
173 ./chrome/bedrockchrome/statusbar.snippet/*.js \ |
|
174 ./chrome/bedrockchrome/statusbar.snippet/*.css |
|
175 statusbar.path = /data/Others/chrome/bedrockchrome/statusbar.snippet |
|
176 BEDROCKCHROME_DEPLOYS += statusbar |
|
177 |
|
178 statusbaricons.sources = ./chrome/bedrockchrome/statusbar.snippet/icons/*.png |
|
179 statusbaricons.path = /data/Others/chrome/bedrockchrome/statusbar.snippet/icons |
|
180 BEDROCKCHROME_DEPLOYS += statusbaricons |
|
181 |
|
182 statusbariconsbattery.sources = ./chrome/bedrockchrome/statusbar.snippet/icons/battery/*.png |
|
183 statusbariconsbattery.path = /data/Others/chrome/bedrockchrome/statusbar.snippet/icons/battery |
|
184 BEDROCKCHROME_DEPLOYS += statusbariconsbattery |
|
185 |
|
186 statusbariconssignal.sources = ./chrome/bedrockchrome/statusbar.snippet/icons/signal/*.png |
|
187 statusbariconssignal.path = /data/Others/chrome/bedrockchrome/statusbar.snippet/icons/signal |
|
188 BEDROCKCHROME_DEPLOYS += statusbariconssignal |
|
189 |
|
190 toolbar.sources = ./chrome/bedrockchrome/toolbar2.snippet/*.html* \ |
|
191 ./chrome/bedrockchrome/toolbar2.snippet/*.js \ |
|
192 ./chrome/bedrockchrome/toolbar2.snippet/*.css |
|
193 toolbar.path = /data/Others/chrome/bedrockchrome/toolbar2.snippet |
|
194 BEDROCKCHROME_DEPLOYS += toolbar |
|
195 |
|
196 toolbaricons.sources = ./chrome/bedrockchrome/toolbar2.snippet/icons/*.png |
|
197 toolbaricons.path = /data/Others/chrome/bedrockchrome/toolbar2.snippet/icons |
|
198 BEDROCKCHROME_DEPLOYS += toolbaricons |
|
199 |
|
200 toolbarfjicons.sources = ./chrome/bedrockchrome/toolbar2.snippet/fjicons/*.png |
|
201 toolbarfjicons.path = /data/Others/chrome/bedrockchrome/toolbar2.snippet/fjicons |
|
202 BEDROCKCHROME_DEPLOYS += toolbarfjicons |
|
203 |
|
204 contextmenu.sources = ./chrome/bedrockchrome/contextmenu.snippet/*.html* \ |
|
205 ./chrome/bedrockchrome/contextmenu.snippet/*.js \ |
|
206 ./chrome/bedrockchrome/contextmenu.snippet/*.css |
|
207 contextmenu.path = /data/Others/chrome/bedrockchrome/contextmenu.snippet |
|
208 BEDROCKCHROME_DEPLOYS += contextmenu |
|
209 |
|
210 download.sources = ./chrome/bedrockchrome/download.snippet/*.html* \ |
|
211 ./chrome/bedrockchrome/download.snippet/*.js \ |
|
212 ./chrome/bedrockchrome/download.snippet/*.css |
|
213 download.path = /data/Others/chrome/bedrockchrome/download.snippet |
|
214 BEDROCKCHROME_DEPLOYS += download |
|
215 |
|
216 urlsearch.sources = ./chrome/bedrockchrome/urlsearch.snippet/*.html* \ |
|
217 ./chrome/bedrockchrome/urlsearch.snippet/*.js \ |
|
218 ./chrome/bedrockchrome/urlsearch.snippet/*.css |
|
219 urlsearch.path = /data/Others/chrome/bedrockchrome/urlsearch.snippet |
|
220 BEDROCKCHROME_DEPLOYS += urlsearch |
|
221 |
|
222 suggests.sources = ./chrome/bedrockchrome/suggests.snippet/*.html* \ |
|
223 ./chrome/bedrockchrome/suggests.snippet/*.js \ |
|
224 ./chrome/bedrockchrome/suggests.snippet/*.css |
|
225 suggests.path = /data/Others/chrome/bedrockchrome/suggests.snippet |
|
226 BEDROCKCHROME_DEPLOYS += suggests |
|
227 |
|
228 urlsearchicons.sources = ./chrome/bedrockchrome/urlsearch.snippet/icons/*.png |
|
229 urlsearchicons.path = /data/Others/chrome/bedrockchrome/urlsearch.snippet/icons |
|
230 BEDROCKCHROME_DEPLOYS += urlsearchicons |
|
231 |
|
232 windowcount.sources = ./chrome/bedrockchrome/windowcount.snippet/*.html* \ |
|
233 ./chrome/bedrockchrome/windowcount.snippet/*.js \ |
|
234 ./chrome/bedrockchrome/windowcount.snippet/*.css |
|
235 windowcount.path = /data/Others/chrome/bedrockchrome/windowcount.snippet |
|
236 BEDROCKCHROME_DEPLOYS += windowcount |
|
237 |
|
238 windowcounticons.sources = ./chrome/bedrockchrome/windowcount.snippet/icons/*.png |
|
239 windowcounticons.path = /data/Others/chrome/bedrockchrome/windowcount.snippet/icons |
|
240 BEDROCKCHROME_DEPLOYS += windowcounticons |
|
241 |
|
242 |
|
243 # Deploy common chrome files. |
|
244 DEPLOYMENT += $$CHROME_DEPLOYS |
|
245 |
|
246 # Deploy bedrock chrome files. |
|
247 DEPLOYMENT += $$BEDROCKCHROME_DEPLOYS |
|
248 |
|
249 # Deploy demo chrome files. |
|
250 #DEPLOYMENT += $$DEMOCHROME_DEPLOYS |
|
251 } |
|
252 |
|
253 unix: !symbian: { |
|
254 CURRENT_DIR = $$PWD |
|
255 CURRENT_CHROME = $$CURRENT_DIR/chrome |
|
256 CHROME_DEST = $$DESTDIR/chrome |
|
257 system(ln -s $$CURRENT_CHROME $$CHROME_DEST) |
|
258 } |
|
259 |
|
260 ################################## |
|
261 # Generate documentation |
|
262 ################################## |
|
263 dox.target = docs |
|
264 dox.commands = doxygen ./doc/doxyfile |
|
265 dox.depends = $$SOURCES $$HEADERS |
|
266 QMAKE_EXTRA_UNIX_TARGETS += dox |
|