ginebra2/ginebra2.pro
changeset 16 3c88a81ff781
parent 14 6aeb7a756187
equal deleted inserted replaced
14:6aeb7a756187 16:3c88a81ff781
    39 INCLUDEPATH += $$PWD/ContentViews
    39 INCLUDEPATH += $$PWD/ContentViews
    40 INCLUDEPATH += $$PWD/Charms
    40 INCLUDEPATH += $$PWD/Charms
    41 
    41 
    42 
    42 
    43 # Gesture lib
    43 # Gesture lib
    44 !contains(DEFINES,  NO_QSTM_GESTURE) {
       
    45    message("Including qstmgesturelib.")
       
    46    INCLUDEPATH += $$PWD/../qstmgesturelib
    44    INCLUDEPATH += $$PWD/../qstmgesturelib
    47    INCLUDEPATH += $$PWD/../qstmgesturelib/qstmfilelogger
    45    INCLUDEPATH += $$PWD/../qstmgesturelib/qstmfilelogger
    48    LIBS += -lqstmgesturelib
    46    LIBS += -lqstmgesturelib
    49    #LIBPATH += $$ROOT_DIR/app/browser/qstmgesturelib/output/bin
       
    50  }
       
    51 
    47 
    52 contains(DEFINES, ENABLE_PERF_TRACE) {
    48 contains(DEFINES, ENABLE_PERF_TRACE) {
    53     message("ginebra2.pro: Tracing is ON")
    49     message("ginebra2.pro: Tracing is ON")
    54     LIBS += -lbrperftrace
    50     LIBS += -lbrperftrace
    55     INCLUDEPATH += $$PWD/../internal/tests/perfTracing
    51     INCLUDEPATH += $$PWD/../internal/tests/perfTracing
    58 
    54 
    59 # Common SOURCES, HEADERS from app
    55 # Common SOURCES, HEADERS from app
    60 # include($$ROOT_DIR/app/common/platform/platform.pri)
    56 # include($$ROOT_DIR/app/common/platform/platform.pri)
    61 # include($$ROOT_DIR/app/common/common.pri)
    57 # include($$ROOT_DIR/app/common/common.pri)
    62 
    58 
    63 TRANSLATIONS += browserLoc.ts
    59 contains(br_platform_localization, no) {
       
    60     TRANSLATIONS += $$PWD/translations/browserloc.ts
       
    61 }else{
       
    62     DEFINES += PLATFORM_LOCALIZATION
       
    63     TRANSLATIONS += browserLoc.ts
       
    64 }
    64 
    65 
    65 # ;;; Following can presumably go away if we will also use Qt's QtWebKit
    66 # ;;; Following can presumably go away if we will also use Qt's QtWebKit
    66 win32: {
    67 win32: {
    67     # adding the WRT bin directory to LIBPATH so that we can pickup QtWebkit.lib
    68     # adding the WRT bin directory to LIBPATH so that we can pickup QtWebkit.lib
    68     CONFIG(release, debug|release):WRT_BIN_DIR = $$PWD/../../../WrtBuild/Release/bin
    69     CONFIG(release, debug|release):WRT_BIN_DIR = $$PWD/../../../WrtBuild/Release/bin
    82 #
    83 #
    83 # NEW code for ginebra2
    84 # NEW code for ginebra2
    84 #
    85 #
    85 ################################################################################
    86 ################################################################################
    86 
    87 
    87 RESOURCES = ginebra2.qrc
    88 RESOURCES = ./qrc/ginebra2.qrc
    88 
    89 
    89 contains(br_layout, tenone) {
    90 contains(br_layout, tenone) {
    90     RESOURCES += ginebra_tenone.qrc
    91     RESOURCES = ./qrc/ginebraTenone.qrc
    91     DEFINES += BROWSER_LAYOUT_TENONE
    92     DEFINES += BROWSER_LAYOUT_TENONE
    92 }
    93 }
    93 
    94 
    94 HEADERS = \
    95 contains(br_layout, maemolayout) {
       
    96     RESOURCES = ./qrc/ginebraMaemo.qrc
       
    97 }
       
    98 
       
    99 HEADERS += \
    95     Application.h \
   100     Application.h \
    96     ActionButton.h \
   101     ActionButton.h \
    97     ActionButtonSnippet.h \
   102     ActionButtonSnippet.h \
    98     CachedHandler.h \
   103     CachedHandler.h \
    99     ChromeDOM.h \
   104     ChromeDOM.h \
   103     ChromeEffect.h \
   108     ChromeEffect.h \
   104     ChromeLayout.h \
   109     ChromeLayout.h \
   105     ChromeWidget.h \
   110     ChromeWidget.h \
   106     ChromeWidgetJSObject.h \
   111     ChromeWidgetJSObject.h \
   107     ChromeView.h \
   112     ChromeView.h \
       
   113     ContentViews/ContentViewContextMenu.h \
   108     ContentViews/GWebContentViewJSObject.h \
   114     ContentViews/GWebContentViewJSObject.h \
   109     ContentViews/GWebContentViewWidget.h \
   115     ContentViews/GWebContentViewWidget.h \
   110     ContentViews/GWebContentView.h \
   116     ContentViews/GWebContentView.h \
   111     ContentViews/GContentViewTouchNavigation.h \
   117     ContentViews/GContentViewTouchNavigation.h \
   112     ContentViews/SuperPageView.h \
   118     ContentViews/SuperPageView.h \
       
   119     ContextMenu.h \
   113     DeviceDelegate.h \
   120     DeviceDelegate.h \
   114     NetworkDelegate.h \
   121     NetworkDelegate.h \
   115     VisibilityAnimator.h \
   122     VisibilityAnimator.h \
   116     ChromeItem.h \
   123     ChromeItem.h \
   117     PopupWebChromeItem.h \
   124     PopupWebChromeItem.h \
   133     Snippets.h \
   140     Snippets.h \
   134     ScriptObjects.h \
   141     ScriptObjects.h \
   135     animators/FadeAnimator.h \
   142     animators/FadeAnimator.h \
   136     animators/SlideAnimator.h \
   143     animators/SlideAnimator.h \
   137     emulator/browser.h \
   144     emulator/browser.h \
   138     emulator/ChromeConsole.h \
       
   139     ViewController.h \
   145     ViewController.h \
   140     ViewStack.h \
   146     ViewStack.h \
   141     GWebTouchNavigation.h \
   147     GWebTouchNavigation.h \
   142     KineticHelper.h \
   148     KineticHelper.h \
   143     TitleItem.h \
   149     TitleItem.h \
   153     RecentUrlToolbarSnippet.h \
   159     RecentUrlToolbarSnippet.h \
   154     TitleUrlContainerSnippet.h \
   160     TitleUrlContainerSnippet.h \
   155     UrlSearchSnippet.h \
   161     UrlSearchSnippet.h \
   156     Downloads.h \
   162     Downloads.h \
   157     GAlternateFileChooser.h \
   163     GAlternateFileChooser.h \
   158     linearflowsnippet.h \
       
   159     mostvisitedpageview.h \
       
   160     mostvisitedsnippet.h \
       
   161     EditorWidget.h \
   164     EditorWidget.h \
   162     EditorSnippet.h
   165     EditorSnippet.h \
   163 
   166     ScaleThreePainter.h \
       
   167     MostVisitedView.h \
       
   168     GridView.h \
       
   169     ScrollHelper.h \
       
   170     CopyCutPasteSnippet.h
       
   171 
       
   172 CONFIG(maemo){
       
   173    HEADERS+= ContentViews/WindowsView.h \
       
   174              ContentViews/BrowserWindow.h
       
   175 }
       
   176 contains(br_layout, tenone) {
       
   177     HEADERS += ScaleNinePainter.h
       
   178 }
       
   179 
       
   180 contains(br_layout, maemolayout) {
       
   181     HEADERS += mostvisitedsnippetmaemo.h \
       
   182     ScaleNinePainter.h
       
   183 }
       
   184 
       
   185 !contains(br_layout, maemolayout) {
       
   186     HEADERS += linearflowsnippet.h \    
       
   187     emulator/ChromeConsole.h \
       
   188     mostvisitedsnippet.h
       
   189 }
   164 
   190 
   165 contains(br_tiled_backing_store, yes) {
   191 contains(br_tiled_backing_store, yes) {
   166     DEFINES += BEDROCK_TILED_BACKING_STORE
   192     DEFINES += BEDROCK_TILED_BACKING_STORE
   167 }
   193     DEFINES += OWN_BACKING_STORE
   168 
   194 }
   169 !contains(DEFINES, NO_QSTM_GESTURE) {
   195 
   170     HEADERS += WebGestureHelper.h \
   196 contains(DEFINES, OWN_BACKING_STORE) {
   171                WebTouchNavigation.h
   197 DEFINES += BEDROCK_TILED_BACKING_STORE
   172 }
   198 
       
   199 HEADERS += ContentViews/TiledWebView.h
       
   200 SOURCES += ContentViews/TiledWebView.cpp
       
   201 }
       
   202 
       
   203     HEADERS += WebGestureHelper.h
       
   204 #WebTouchNavigation.h
   173 
   205 
   174 contains(DEFINES, BEDROCK_TILED_BACKING_STORE) {
   206 contains(DEFINES, BEDROCK_TILED_BACKING_STORE) {
   175     HEADERS += ContentViews/ScrollableWebContentView.h \
   207     HEADERS += ContentViews/ScrollableWebContentView.h \
   176                ContentViews/ViewportMetaData.h \
   208                ContentViews/ViewportMetaData.h \
   177                ContentViews/ViewportMetaDataParser.h \
   209                ContentViews/ViewportMetaDataParser.h \
   178                ContentViews/WebContentAnimationItem.h \
       
   179                ContentViews/WebContentViewWidget.h \
   210                ContentViews/WebContentViewWidget.h \
   180                ContentViews/WebView.h \
   211                ContentViews/WebView.h \
   181                Gestures/GestureEvent.h \
   212                Gestures/GestureEvent.h \
   182                Gestures/GestureListener.h \
   213                Gestures/GestureListener.h \
   183                Gestures/GestureRecognizer.h \
   214                Gestures/GestureRecognizer.h \
   184                Gestures/GestureRecognizer_p.h \
   215                Gestures/GestureRecognizer_p.h \
   185                Kinetics/KineticScrollable.h \
   216                Kinetics/KineticScrollable.h \
   186                Kinetics/KineticScroller.h \
   217                Kinetics/KineticScroller.h \
   187                ScrollableViewBase.h
   218                ScrollableViewBase.h                             
   188 }
   219 }
   189 
   220 
   190 SOURCES = \
   221 SOURCES += \
   191     ActionButton.cpp \
   222     ActionButton.cpp \
   192     ActionButtonSnippet.cpp \
   223     ActionButtonSnippet.cpp \
   193     Application.cpp \
   224     Application.cpp \
   194     CachedHandler.cpp \
   225     CachedHandler.cpp \
   195     ChromeDOM.cpp \
   226     ChromeDOM.cpp \
   204     ContentViews/GWebContentViewJSObject.cpp \
   235     ContentViews/GWebContentViewJSObject.cpp \
   205     ContentViews/GWebContentViewWidget.cpp \
   236     ContentViews/GWebContentViewWidget.cpp \
   206     ContentViews/GWebContentView.cpp \
   237     ContentViews/GWebContentView.cpp \
   207     ContentViews/GContentViewTouchNavigation.cpp \
   238     ContentViews/GContentViewTouchNavigation.cpp \
   208     ContentViews/SuperPageView.cpp \
   239     ContentViews/SuperPageView.cpp \
       
   240     ContentViews/ContentViewContextMenu.cpp \
   209     DeviceDelegate.cpp \
   241     DeviceDelegate.cpp \
   210     NetworkDelegate.cpp \
   242     NetworkDelegate.cpp \
   211     VisibilityAnimator.cpp \
   243     VisibilityAnimator.cpp \
   212     ChromeItem.cpp \
   244     ChromeItem.cpp \
   213     PopupWebChromeItem.cpp \
   245     PopupWebChromeItem.cpp \
   230     ProgressBarSnippet.cpp \
   262     ProgressBarSnippet.cpp \
   231     animators/FadeAnimator.cpp \
   263     animators/FadeAnimator.cpp \
   232     animators/SlideAnimator.cpp \
   264     animators/SlideAnimator.cpp \
   233     emulator/main.cpp \
   265     emulator/main.cpp \
   234     emulator/browser.cpp \
   266     emulator/browser.cpp \
   235     emulator/ChromeConsole.cpp \
       
   236     ViewController.cpp \
   267     ViewController.cpp \
   237     ViewStack.cpp \
   268     ViewStack.cpp \
   238     GWebTouchNavigation.cpp \
   269     GWebTouchNavigation.cpp \
   239     KineticHelper.cpp \
   270     KineticHelper.cpp \
   240     TitleItem.cpp \
   271     TitleItem.cpp \
   249     RecentUrlToolbarSnippet.cpp \
   280     RecentUrlToolbarSnippet.cpp \
   250     TitleUrlContainerSnippet.cpp \
   281     TitleUrlContainerSnippet.cpp \
   251     UrlSearchSnippet.cpp \
   282     UrlSearchSnippet.cpp \
   252     Downloads.cpp \
   283     Downloads.cpp \
   253     GAlternateFileChooser.cpp \
   284     GAlternateFileChooser.cpp \
       
   285     EditorWidget.cpp \
       
   286     EditorSnippet.cpp \
       
   287     ScaleThreePainter.cpp \
       
   288     MostVisitedView.cpp \
       
   289     GridView.cpp \
       
   290     ScrollHelper.cpp \
       
   291     CopyCutPasteSnippet.cpp
       
   292 
       
   293 CONFIG(maemo){
       
   294     SOURCES += ContentViews/WindowsView.cpp \
       
   295                ContentViews/BrowserWindow.cpp
       
   296 }
       
   297 
       
   298 contains(br_layout, maemolayout) {
       
   299     SOURCES += mostvisitedsnippetmaemo.cpp \
       
   300     ScaleNinePainter.cpp
       
   301 }
       
   302 
       
   303 !contains(br_layout, maemolayout) {
       
   304     SOURCES += emulator/ChromeConsole.cpp \
   254     linearflowsnippet.cpp \
   305     linearflowsnippet.cpp \
   255     mostvisitedpageview.cpp \
   306     mostvisitedsnippet.cpp
   256     mostvisitedsnippet.cpp \
   307 }
   257     EditorWidget.cpp \
   308 
   258     EditorSnippet.cpp
   309 contains(br_layout, tenone) {
       
   310     SOURCES += ScaleNinePainter.cpp
       
   311 }
   259 
   312 
   260 !contains(DEFINES, NO_QSTM_GESTURE) {
   313 !contains(DEFINES, NO_QSTM_GESTURE) {
   261     SOURCES += WebGestureHelper.cpp \
   314     SOURCES += WebGestureHelper.cpp
   262                WebTouchNavigation.cpp
   315 #    SOURCES += WebTouchNavigation.cpp
   263 }
   316 }
   264 
   317 
   265 contains(DEFINES, BEDROCK_TILED_BACKING_STORE) {
   318 contains(DEFINES, BEDROCK_TILED_BACKING_STORE) {
   266     SOURCES += ContentViews/ScrollableWebContentView.cpp \
   319     SOURCES += ContentViews/ScrollableWebContentView.cpp \
   267                ContentViews/ViewportMetaData.cpp \
   320                ContentViews/ViewportMetaData.cpp \
   268                ContentViews/ViewportMetaDataParser.cpp \
   321                ContentViews/ViewportMetaDataParser.cpp \
   269                ContentViews/WebContentAnimationItem.cpp \
       
   270                ContentViews/WebContentViewWidget.cpp \
   322                ContentViews/WebContentViewWidget.cpp \
   271                ContentViews/WebView.cpp \
   323                ContentViews/WebView.cpp \
   272                Gestures/GestureEvent.cpp \
   324                Gestures/GestureEvent.cpp \
   273                Gestures/GestureRecognizer.cpp \
   325                Gestures/GestureRecognizer.cpp \
   274                Kinetics/KineticScroller.cpp \
   326                Kinetics/KineticScroller.cpp \
   275                ScrollableViewBase.cpp
   327                ScrollableViewBase.cpp
   276 }
   328 }
   277 
   329 
   278 FORMS += emulator/ui/console.ui
   330 !contains(br_layout, maemolayout) {
       
   331 	FORMS += emulator/ui/console.ui
       
   332 }
   279 
   333 
   280 contains(br_mobility_sysinfo, yes) {
   334 contains(br_mobility_sysinfo, yes) {
   281     CONFIG += mobility
   335     CONFIG += mobility
   282     MOBILITY = systeminfo
   336     MOBILITY += systeminfo
   283     DEFINES += QT_MOBILITY_SYSINFO
   337     DEFINES += QT_MOBILITY_SYSINFO
   284 }
   338 }
   285 
   339 
   286 contains(br_mobility_sysinfo, yes) {
   340 contains(br_mobility_sysinfo, yes) {
   287     HEADERS += SystemDeviceImpl.h \
   341     HEADERS += SystemDeviceImpl.h \
   301     DEFINES += ORBIT_UI
   355     DEFINES += ORBIT_UI
   302 }
   356 }
   303 
   357 
   304 contains(br_mobility_serviceframework, yes) {
   358 contains(br_mobility_serviceframework, yes) {
   305     DEFINES += QT_MOBILITY_SERVICE_FRAMEWORK
   359     DEFINES += QT_MOBILITY_SERVICE_FRAMEWORK
       
   360 }
       
   361 
       
   362 # Geolocation asychronous API should be support by Qt 4.7/QWebKit 2.1, but need to qulify for each platform
       
   363 contains(br_geolocation, yes) {
       
   364    DEFINES += QT_GEOLOCATION
   306 }
   365 }
   307 
   366 
   308 symbian: {
   367 symbian: {
   309     TARGET.EPOCALLOWDLLDATA = 1
   368     TARGET.EPOCALLOWDLLDATA = 1
   310     TARGET.EPOCSTACKSIZE = 0x14000
   369     TARGET.EPOCSTACKSIZE = 0x14000
   330         MYCONDITIONS = WINSCW
   389         MYCONDITIONS = WINSCW
   331         MYVARIABLES = EHZ
   390         MYVARIABLES = EHZ
   332         addMMPRules(MYCONDITIONS, MYVARIABLES)
   391         addMMPRules(MYCONDITIONS, MYVARIABLES)
   333     }
   392     }
   334     
   393     
   335     TARGET.CAPABILITY = All -TCB -DRM -AllFiles
   394 #    TARGET.CAPABILITY = All -TCB -DRM -AllFiles
       
   395     TARGET.CAPABILITY = All -TCB -DRM
   336 
   396 
   337     contains(browser_addon, no) {
   397     contains(browser_addon, no) {
   338         TARGET.UID3 = 0x10008D39
   398         TARGET.UID3 = 0x10008D39
   339         CONFIG += hb 
   399         CONFIG += hb 
   340         SKINICON = qtg_large_browser 
   400         SKINICON = qtg_large_browser 
   346     TARGET.VID = VID_DEFAULT
   406     TARGET.VID = VID_DEFAULT
   347         
   407         
   348     LIBS += -lcommdb
   408     LIBS += -lcommdb
   349     LIBS += -lesock -lconnmon -linsock
   409     LIBS += -lesock -lconnmon -linsock
   350     LIBS += -lavkon -lapparc -leikcore -lcone -lws32 -lapgrfx 
   410     LIBS += -lavkon -lapparc -leikcore -lcone -lws32 -lapgrfx 
   351 
   411     
   352 # QtHighway is used in TB10.1 for Application Interworking (AIW) support.
   412 # QtHighway is used in TB10.1 for Application Interworking (AIW) support.
   353 contains(br_qthighway, yes) {
   413 contains(br_qthighway, yes) {
   354     DEFINES += QTHIGHWAY
   414     DEFINES += QTHIGHWAY
   355     LIBS += -lxqservice -lxqserviceutil
   415     LIBS += -lxqservice -lxqserviceutil
   356     CONFIG += service
   416     CONFIG += service
   379     LIBS += -lstandaloneallocator.lib
   439     LIBS += -lstandaloneallocator.lib
   380 }
   440 }
   381 
   441 
   382     LIBS += -lhal -lsysutil
   442     LIBS += -lhal -lsysutil
   383 
   443 
   384     # localpages
       
   385     localpages.sources =    ./chrome/localpages/*.htm* \
       
   386                             ./chrome/localpages/*.js \
       
   387                             ./chrome/localpages/*.css \
       
   388                             ./chrome/localpages/*.jpg \
       
   389                             ./chrome/localpages/*.png
       
   390     localpages.path = ./localpages
       
   391     DEPLOYMENT += localpages
       
   392 
       
   393     # backup restore file 
       
   394     backuprestore.sources = ./data/backup_registration.xml 
       
   395     backuprestore.path = ./
       
   396     DEPLOYMENT += backuprestore 
       
   397     
       
   398 !contains(DEFINES, NO_QSTM_GESTURE) {
       
   399     qstmgesturelib.sources = qstmgesturelib.dll
       
   400     qstmgesturelib.path = /sys/bin
       
   401     DEPLOYMENT += qstmgesturelib
       
   402 }
       
   403 
       
   404 contains(DEFINES, ENABLE_PERF_TRACE) {
       
   405     brperftrace.sources = brperftrace.dll
       
   406     brperftrace.path = /sys/bin
       
   407     DEPLOYMENT += brperftrace
       
   408 }
       
   409 
       
   410     contains(browser_addon, no) {
   444     contains(browser_addon, no) {
   411         HEADERS += emulator/BrowserMainS60.h
   445         HEADERS += emulator/BrowserMainS60.h
   412         SOURCES += emulator/BrowserMainS60.cpp
   446         SOURCES += emulator/BrowserMainS60.cpp
   413 }
   447 }
       
   448 
       
   449 include(deployment.pri)
       
   450 packageheader = "$${LITERAL_HASH}{\"NokiaBrowser\"},(0x10008D39),2,0,0,TYPE=SA,RU"
       
   451   my_deployment.pkg_prerules =  packageheader
       
   452   DEPLOYMENT += my_deployment
       
   453 DEPLOYMENT.installer_header = "$${LITERAL_HASH}{\"NokiaBrowser\"},(0x10008D39),2,0,0,TYPE=SA,RU"
       
   454 
   414 }
   455 }
   415 
   456 
   416 #unix: {
   457 #unix: {
   417     # Create symbolic link to executable.
   458     # Create symbolic link to executable.
   418 #    QMAKE_POST_LINK += ln -sf $$DESTDIR/$$TARGET $$PWD/$$TARGET;
   459 #    QMAKE_POST_LINK += ln -sf $$DESTDIR/$$TARGET $$PWD/$$TARGET;