|
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 = Bedrock |
|
20 |
|
21 # Everything should be relative to ROOT_DIR (makes cut-and-paste safer). |
|
22 ROOT_DIR = $$PWD/.. |
|
23 |
|
24 # Qt |
|
25 QT += xml network sql webkit script |
|
26 |
|
27 ROOT_DIR = $$PWD/.. |
|
28 include($$ROOT_DIR/browserui.pri) |
|
29 |
|
30 # Common build options, library includes (browsercore etc), and Qt settings. |
|
31 include($$ROOT_DIR/common/commonExternals.pri) |
|
32 INCLUDEPATH += $$PWD/ContentViews |
|
33 |
|
34 |
|
35 # Gesture lib |
|
36 !contains(DEFINES, NO_QSTM_GESTURE) { |
|
37 message("Including qstmgesturelib.") |
|
38 INCLUDEPATH += $$PWD/../qstmgesturelib |
|
39 INCLUDEPATH += $$PWD/../qstmgesturelib/qstmfilelogger |
|
40 LIBS += -lqstmgesturelib |
|
41 LIBPATH += $$ROOT_DIR/app/browser/qstmgesturelib/output/bin |
|
42 } |
|
43 |
|
44 # Common SOURCES, HEADERS from app |
|
45 # include($$ROOT_DIR/app/common/platform/platform.pri) |
|
46 # include($$ROOT_DIR/app/common/common.pri) |
|
47 |
|
48 TRANSLATIONS += $$PWD/translations/browserLoc.ts |
|
49 |
|
50 # ;;; Following can presumably go away if we will also use Qt's QtWebKit |
|
51 win32: { |
|
52 # adding the WRT bin directory to LIBPATH so that we can pickup QtWebkit.lib |
|
53 CONFIG(release, debug|release):WRT_BIN_DIR = $$PWD/../../../WrtBuild/Release/bin |
|
54 CONFIG(debug, debug|release):WRT_BIN_DIR = $$PWD/../../../WrtBuild/Debug/bin |
|
55 LIBPATH += $$WRT_BIN_DIR |
|
56 } |
|
57 |
|
58 # Override some output directories set by commonExternals.pri. |
|
59 # Leave DEST_DIR unchanged. |
|
60 OBJECTS_DIR = $$APP_OUTPUT_DIR/ginebra2 |
|
61 MOC_DIR = $$APP_OUTPUT_DIR/ginebra2 |
|
62 RCC_DIR = $$APP_OUTPUT_DIR/ginebra2 |
|
63 TEMPDIR = $$APP_OUTPUT_DIR/ginebra2/build |
|
64 |
|
65 |
|
66 ################################################################################ |
|
67 # |
|
68 # NEW code for ginebra2 |
|
69 # |
|
70 ################################################################################ |
|
71 |
|
72 RESOURCES = ginebra2.qrc |
|
73 HEADERS = \ |
|
74 Application.h \ |
|
75 ActionButton.h \ |
|
76 ActionButtonSnippet.h \ |
|
77 CachedHandler.h \ |
|
78 ChromeDOM.h \ |
|
79 ChromeRenderer.h \ |
|
80 ChromeSnippet.h \ |
|
81 LocaleDelegate.h \ |
|
82 ChromeWidget.h \ |
|
83 ChromeWidgetJSObject.h \ |
|
84 ChromeView.h \ |
|
85 ContentViews\GWebContentViewJSObject.h \ |
|
86 ContentViews\GWebContentViewWidget.h \ |
|
87 ContentViews\GWebContentView.h \ |
|
88 DeviceDelegate.h \ |
|
89 VisibilityAnimator.h \ |
|
90 PopupWebChromeItem.h \ |
|
91 WebChromeItem.h \ |
|
92 WebChromeSnippet.h \ |
|
93 WebChromeContainerSnippet.h \ |
|
94 GGraphicsWebView.h \ |
|
95 GWebPage.h \ |
|
96 GraphicsItemAnimation.h \ |
|
97 NativeChromeItem.h \ |
|
98 ScrollZoomWidget.h \ |
|
99 SlidingWidget.h \ |
|
100 TextEditItem.h \ |
|
101 BlueChromeSnippet.h \ |
|
102 GreenChromeSnippet.h \ |
|
103 ProgressSnippet.h \ |
|
104 Snippets.h \ |
|
105 ScriptObjects.h \ |
|
106 animators/FadeAnimator.h \ |
|
107 animators/SlideAnimator.h \ |
|
108 emulator/browser.h \ |
|
109 emulator/ChromeConsole.h \ |
|
110 ViewController.h \ |
|
111 ViewStack.h \ |
|
112 GWebTouchNavigation.h \ |
|
113 KineticHelper.h \ |
|
114 iconsnippet.h \ |
|
115 iconwidget.h \ |
|
116 ToolbarChromeItem.h \ |
|
117 ContentToolbarChromeItem.h \ |
|
118 UrlSearchSnippet.h \ |
|
119 linearflowsnippet.h \ |
|
120 mostvisitedpageview.h \ |
|
121 mostvisitedsnippet.h |
|
122 |
|
123 contains(DEFINES, ENABLE_PERF_TRACE) { |
|
124 HEADERS += $$PWD/../internal/tests/perfTracing/wrtperftracer.h |
|
125 } |
|
126 |
|
127 contains(DEFINES, SET_DEFAULT_IAP) { |
|
128 HEADERS += sym_iap_util.h |
|
129 } |
|
130 |
|
131 !contains(DEFINES, NO_QSTM_GESTURE) { |
|
132 HEADERS += WebGestureHelper.h \ |
|
133 WebTouchNavigation.h |
|
134 } |
|
135 |
|
136 |
|
137 SOURCES = \ |
|
138 ActionButton.cpp \ |
|
139 ActionButtonSnippet.cpp \ |
|
140 Application.cpp \ |
|
141 CachedHandler.cpp \ |
|
142 ChromeDOM.cpp \ |
|
143 ChromeRenderer.cpp \ |
|
144 ChromeSnippet.cpp \ |
|
145 LocaleDelegate.cpp \ |
|
146 ChromeWidget.cpp \ |
|
147 ChromeWidgetJSObject.cpp \ |
|
148 ChromeView.cpp \ |
|
149 ContentViews\GWebContentViewJSObject.cpp \ |
|
150 ContentViews\GWebContentViewWidget.cpp \ |
|
151 ContentViews\GWebContentView.cpp \ |
|
152 DeviceDelegate.cpp \ |
|
153 VisibilityAnimator.cpp \ |
|
154 PopupWebChromeItem.cpp \ |
|
155 WebChromeItem.cpp \ |
|
156 WebChromeSnippet.cpp \ |
|
157 WebChromeContainerSnippet.cpp \ |
|
158 GGraphicsWebView.cpp \ |
|
159 GraphicsItemAnimation.cpp \ |
|
160 NativeChromeItem.cpp \ |
|
161 Snippets.cpp \ |
|
162 ScriptObjects.cpp \ |
|
163 ScrollZoomWidget.cpp \ |
|
164 SlidingWidget.cpp \ |
|
165 TextEditItem.cpp \ |
|
166 BlueChromeSnippet.cpp \ |
|
167 GreenChromeSnippet.cpp \ |
|
168 ProgressSnippet.cpp \ |
|
169 animators/FadeAnimator.cpp \ |
|
170 animators/SlideAnimator.cpp \ |
|
171 emulator/main.cpp \ |
|
172 emulator/browser.cpp \ |
|
173 emulator/ChromeConsole.cpp \ |
|
174 ViewController.cpp \ |
|
175 ViewStack.cpp \ |
|
176 GWebTouchNavigation.cpp \ |
|
177 KineticHelper.cpp \ |
|
178 iconsnippet.cpp \ |
|
179 iconwidget.cpp \ |
|
180 ToolbarChromeItem.cpp \ |
|
181 ContentToolbarChromeItem.cpp \ |
|
182 UrlSearchSnippet.cpp \ |
|
183 mostvisitedpageview.cpp \ |
|
184 linearflowsnippet.cpp \ |
|
185 mostvisitedsnippet.cpp |
|
186 |
|
187 contains(IMPORT_SUBDIRS, downloadmgr) { |
|
188 HEADERS += Downloads.h |
|
189 SOURCES += Downloads.cpp |
|
190 } |
|
191 |
|
192 |
|
193 contains(DEFINES, ENABLE_PERF_TRACE) { |
|
194 SOURCES += $$PWD/../internal/tests/perfTracing/wrtperftracer.cpp |
|
195 } |
|
196 |
|
197 !contains(DEFINES, NO_QSTM_GESTURE) { |
|
198 SOURCES += WebGestureHelper.cpp \ |
|
199 WebTouchNavigation.cpp |
|
200 } |
|
201 |
|
202 |
|
203 |
|
204 FORMS += emulator/ui/console.ui |
|
205 |
|
206 contains(what, devicedelegate) { |
|
207 CONFIG += mobility |
|
208 MOBILITY = bearer systeminfo |
|
209 DEFINES += QT_MOBILITY_BEARER_SYSINFO |
|
210 } |
|
211 |
|
212 symbian: { |
|
213 TARGET.EPOCALLOWDLLDATA = 1 |
|
214 TARGET.EPOCSTACKSIZE = 0x14000 |
|
215 TARGET.EPOCHEAPSIZE = 0x20000 \ |
|
216 0x2000000 \ |
|
217 // \ |
|
218 Min \ |
|
219 128kB, \ |
|
220 Max \ |
|
221 32MB |
|
222 TARGET.CAPABILITY = All -TCB -DRM -AllFiles |
|
223 ICON = ./browserIcon.svg |
|
224 contains(what, plat_101) { |
|
225 TARGET.UID3 = 0x10008D39 |
|
226 } |
|
227 else { |
|
228 TARGET.UID3 = 0x200267DF |
|
229 } |
|
230 LIBS += -lcommdb |
|
231 LIBS += -lesock -lconnmon |
|
232 contains(what, plat_101 ) { |
|
233 DEFINES += PLAT_101 |
|
234 } else { |
|
235 LIBS += -lstandaloneallocator.lib |
|
236 } |
|
237 |
|
238 LIBS += -lhal -lsysutil |
|
239 |
|
240 chrome.sources = ./chrome/*.htm \ |
|
241 ./chrome/*.js \ |
|
242 ./chrome/*.css |
|
243 chrome.path = /data/Others/ginebra2/chrome |
|
244 DEPLOYMENT += chrome |
|
245 |
|
246 # for all chromes |
|
247 globaljs.sources = ./chrome/js/*.htm \ |
|
248 ./chrome/js/*.js \ |
|
249 ./chrome/js/*.css |
|
250 globaljs.path = /data/Others/ginebra2/chrome/js |
|
251 CHROME_DEPLOYS += globaljs |
|
252 |
|
253 # localpages |
|
254 localpages.sources = ./chrome/localpages/*.htm* \ |
|
255 ./chrome/localpages/*.js \ |
|
256 ./chrome/localpages/*.css \ |
|
257 ./chrome/localpages/*.jpg \ |
|
258 ./chrome/localpages/*.png |
|
259 localpages.path = /data/Others/ginebra2/chrome/localpages |
|
260 CHROME_DEPLOYS += localpages |
|
261 |
|
262 !contains(DEFINES, NO_QSTM_GESTURE) { |
|
263 qstmgesturelib.sources = qstmgesturelib.dll |
|
264 qstmgesturelib.path = /sys/bin |
|
265 DEPLOYMENT += qstmgesturelib |
|
266 } |
|
267 |
|
268 chromehtml.sources = ./chrome/bedrockchrome/*.htm* \ |
|
269 ./chrome/bedrockchrome/*.js \ |
|
270 ./chrome/bedrockchrome/*.css |
|
271 chromehtml.path = /data/Others/ginebra2/chrome/bedrockchrome |
|
272 BEDROCKCHROME_DEPLOYS += chromehtml |
|
273 |
|
274 globaljsthp.sources = ./chrome/js/3rdparty/*.htm* \ |
|
275 ./chrome/js/3rdparty/*.js \ |
|
276 ./chrome/js/3rdparty/*.css |
|
277 globaljsthp.path = /data/Others/ginebra2/chrome/js/3rdparty |
|
278 CHROME_DEPLOYS += globaljsthp |
|
279 |
|
280 globaljsjui.sources = ./chrome/js/3rdparty/jquery-ui/*.htm* \ |
|
281 ./chrome/js/3rdparty/jquery-ui/*.js \ |
|
282 ./chrome/js/3rdparty/jquery-ui/*.css |
|
283 globaljsjui.path = /data/Others/ginebra2/chrome/js/3rdparty/jquery-ui |
|
284 CHROME_DEPLOYS += globaljsjui |
|
285 |
|
286 statusbar.sources = ./chrome/bedrockchrome/statusbar.snippet/*.htm* \ |
|
287 ./chrome/bedrockchrome/statusbar.snippet/*.js \ |
|
288 ./chrome/bedrockchrome/statusbar.snippet/*.css |
|
289 statusbar.path = /data/Others/ginebra2/chrome/bedrockchrome/statusbar.snippet |
|
290 BEDROCKCHROME_DEPLOYS += statusbar |
|
291 |
|
292 statusbaricons.sources = ./chrome/bedrockchrome/statusbar.snippet/icons/*.png |
|
293 statusbaricons.path = /data/Others/ginebra2/chrome/bedrockchrome/statusbar.snippet/icons |
|
294 BEDROCKCHROME_DEPLOYS += statusbaricons |
|
295 |
|
296 statusbariconsbattery.sources = ./chrome/bedrockchrome/statusbar.snippet/icons/battery/*.png |
|
297 statusbariconsbattery.path = /data/Others/ginebra2/chrome/bedrockchrome/statusbar.snippet/icons/battery |
|
298 BEDROCKCHROME_DEPLOYS += statusbariconsbattery |
|
299 |
|
300 statusbariconssignal.sources = ./chrome/bedrockchrome/statusbar.snippet/icons/signal/*.png |
|
301 statusbariconssignal.path = /data/Others/ginebra2/chrome/bedrockchrome/statusbar.snippet/icons/signal |
|
302 BEDROCKCHROME_DEPLOYS += statusbariconssignal |
|
303 |
|
304 toolbar.sources = ./chrome/bedrockchrome/toolbar.snippet/*.htm* \ |
|
305 ./chrome/bedrockchrome/toolbar.snippet/*.js \ |
|
306 ./chrome/bedrockchrome/toolbar.snippet/*.css |
|
307 toolbar.path = /data/Others/ginebra2/chrome/bedrockchrome/toolbar.snippet |
|
308 BEDROCKCHROME_DEPLOYS += toolbar |
|
309 |
|
310 toolbaricons.sources = ./chrome/bedrockchrome/toolbar.snippet/icons/*.png |
|
311 toolbaricons.path = /data/Others/ginebra2/chrome/bedrockchrome/toolbar.snippet/icons |
|
312 BEDROCKCHROME_DEPLOYS += toolbaricons |
|
313 |
|
314 download.sources = ./chrome/bedrockchrome/download.snippet/*.htm* \ |
|
315 ./chrome/bedrockchrome/download.snippet/*.js \ |
|
316 ./chrome/bedrockchrome/download.snippet/*.css |
|
317 download.path = /data/Others/ginebra2/chrome/bedrockchrome/download.snippet |
|
318 BEDROCKCHROME_DEPLOYS += download |
|
319 |
|
320 downloadicons.sources = ./chrome/bedrockchrome/download.snippet/icons/*.png |
|
321 downloadicons.path = /data/Others/ginebra2/chrome/bedrockchrome/download.snippet/icons |
|
322 BEDROCKCHROME_DEPLOYS += downloadicons |
|
323 |
|
324 contextmenu.sources = ./chrome/bedrockchrome/contextmenu.snippet/*.htm* \ |
|
325 ./chrome/bedrockchrome/contextmenu.snippet/*.js \ |
|
326 ./chrome/bedrockchrome/contextmenu.snippet/*.css |
|
327 contextmenu.path = /data/Others/ginebra2/chrome/bedrockchrome/contextmenu.snippet |
|
328 BEDROCKCHROME_DEPLOYS += contextmenu |
|
329 |
|
330 contexticons.sources = ./chrome/bedrockchrome/contextmenu.snippet/icons/*.png |
|
331 contexticons.path = /data/Others/ginebra2/chrome/bedrockchrome/contextmenu.snippet/icons |
|
332 BEDROCKCHROME_DEPLOYS += contexticons |
|
333 |
|
334 urlsearch.sources = ./chrome/bedrockchrome/urlsearch.snippet/*.htm* \ |
|
335 ./chrome/bedrockchrome/urlsearch.snippet/*.js \ |
|
336 ./chrome/bedrockchrome/urlsearch.snippet/*.css |
|
337 urlsearch.path = /data/Others/ginebra2/chrome/bedrockchrome/urlsearch.snippet |
|
338 BEDROCKCHROME_DEPLOYS += urlsearch |
|
339 |
|
340 urlsearchicons.sources = ./chrome/bedrockchrome/urlsearch.snippet/icons/*.png |
|
341 urlsearchicons.path = /data/Others/ginebra2/chrome/bedrockchrome/urlsearch.snippet/icons |
|
342 BEDROCKCHROME_DEPLOYS += urlsearchicons |
|
343 |
|
344 suggests.sources = ./chrome/bedrockchrome/suggests.snippet/*.htm* \ |
|
345 ./chrome/bedrockchrome/suggests.snippet/*.js \ |
|
346 ./chrome/bedrockchrome/suggests.snippet/*.css |
|
347 suggests.path = /data/Others/ginebra2/chrome/bedrockchrome/suggests.snippet |
|
348 BEDROCKCHROME_DEPLOYS += suggests |
|
349 |
|
350 windowcount.sources = ./chrome/bedrockchrome/windowcount.snippet/*.htm* \ |
|
351 ./chrome/bedrockchrome/windowcount.snippet/*.js \ |
|
352 ./chrome/bedrockchrome/windowcount.snippet/*.css |
|
353 windowcount.path = /data/Others/ginebra2/chrome/bedrockchrome/windowcount.snippet |
|
354 BEDROCKCHROME_DEPLOYS += windowcount |
|
355 |
|
356 networkstatus.sources = ./chrome/bedrockchrome/networkstatus.snippet/*.htm* \ |
|
357 ./chrome/bedrockchrome/networkstatus.snippet/*.js \ |
|
358 ./chrome/bedrockchrome/networkstatus.snippet/*.css |
|
359 networkstatus.path = /data/Others/ginebra2/chrome/bedrockchrome/networkstatus.snippet |
|
360 BEDROCKCHROME_DEPLOYS += networkstatus |
|
361 |
|
362 windowcounticons.sources = ./chrome/bedrockchrome/windowcount.snippet/icons/*.png |
|
363 windowcounticons.path = /data/Others/ginebra2/chrome/bedrockchrome/windowcount.snippet/icons |
|
364 BEDROCKCHROME_DEPLOYS += windowcounticons |
|
365 |
|
366 zoombar.sources = ./chrome/bedrockchrome/zoombar.snippet/*.htm* \ |
|
367 ./chrome/bedrockchrome/zoombar.snippet/*.js \ |
|
368 ./chrome/bedrockchrome/zoombar.snippet/*.css |
|
369 zoombar.path = /data/Others/ginebra2/chrome/bedrockchrome/zoombar.snippet |
|
370 BEDROCKCHROME_DEPLOYS += zoombar |
|
371 |
|
372 zoombaricons.sources = ./chrome/bedrockchrome/zoombar.snippet/icons/*.png |
|
373 zoombaricons.path = /data/Others/ginebra2/chrome/bedrockchrome/zoombar.snippet/icons |
|
374 BEDROCKCHROME_DEPLOYS += zoombaricons |
|
375 |
|
376 bookmarkview.sources = ./chrome/bedrockchrome/bookmarkview.superpage/*.htm* \ |
|
377 ./chrome/bedrockchrome/bookmarkview.superpage/*.js \ |
|
378 ./chrome/bedrockchrome/bookmarkview.superpage/*.css |
|
379 bookmarkview.path = /data/Others/ginebra2/chrome/bedrockchrome/bookmarkview.superpage |
|
380 BEDROCKCHROME_DEPLOYS += bookmarkview |
|
381 |
|
382 bookmarkviewicons.sources = ./chrome/bedrockchrome/bookmarkview.superpage/icons/*.png \ |
|
383 ./chrome/bedrockchrome/bookmarkview.superpage/icons/*.gif \ |
|
384 ./chrome/bedrockchrome/bookmarkview.superpage/icons/*.db |
|
385 bookmarkviewicons.path = /data/Others/ginebra2/chrome/bedrockchrome/bookmarkview.superpage/icons |
|
386 BEDROCKCHROME_DEPLOYS += bookmarkviewicons |
|
387 |
|
388 historyview.sources = ./chrome/bedrockchrome/historyview.superpage/*.htm* \ |
|
389 ./chrome/bedrockchrome/historyview.superpage/*.js \ |
|
390 ./chrome/bedrockchrome/historyview.superpage/*.css |
|
391 historyview.path = /data/Others/ginebra2/chrome/bedrockchrome/historyview.superpage |
|
392 BEDROCKCHROME_DEPLOYS += historyview |
|
393 |
|
394 historyviewicons.sources = ./chrome/bedrockchrome/historyview.superpage/icons/*.png |
|
395 historyviewicons.path = /data/Others/ginebra2/chrome/bedrockchrome/historyview.superpage/icons |
|
396 BEDROCKCHROME_DEPLOYS += historyviewicons |
|
397 |
|
398 settingsview.sources = ./chrome/bedrockchrome/settingsview.superpage/*.htm* \ |
|
399 ./chrome/bedrockchrome/settingsview.superpage/*.js \ |
|
400 ./chrome/bedrockchrome/settingsview.superpage/*.css |
|
401 settingsview.path = /data/Others/ginebra2/chrome/bedrockchrome/settingsview.superpage |
|
402 BEDROCKCHROME_DEPLOYS += settingsview |
|
403 |
|
404 settingsviewicons.sources = ./chrome/bedrockchrome/settingsview.superpage/icons/*.png \ |
|
405 ./chrome/bedrockchrome/settingsview.superpage/icons/*.gif \ |
|
406 ./chrome/bedrockchrome/settingsview.superpage/icons/*.db |
|
407 settingsviewicons.path = /data/Others/ginebra2/chrome/bedrockchrome/settingsview.superpage/icons |
|
408 BEDROCKCHROME_DEPLOYS += settingsviewicons |
|
409 |
|
410 |
|
411 # Deploy common chrome files. |
|
412 DEPLOYMENT += $$CHROME_DEPLOYS |
|
413 |
|
414 # Deploy bedrock chrome files. |
|
415 DEPLOYMENT += $$BEDROCKCHROME_DEPLOYS |
|
416 } |
|
417 |
|
418 #unix: { |
|
419 # Create symbolic link to executable. |
|
420 # QMAKE_POST_LINK += ln -sf $$DESTDIR/$$TARGET $$PWD/$$TARGET; |
|
421 #} |
|
422 |
|
423 |
|
424 ################################## |
|
425 # Generate documentation |
|
426 # ################################# |
|
427 dox.target = docs |
|
428 dox.commands = doxygen ./doc/doxyfile |
|
429 dox.depends = $$SOURCES $$HEADERS |
|
430 QMAKE_EXTRA_UNIX_TARGETS += dox |
|
431 |
|
432 #INCLUDEPATH += $$PWD/../../mw/bedrockProvisioning |