browserui.pri
changeset 3 0954f5dd2cd0
parent 0 1450b09d0cfd
child 9 b39122337a00
equal deleted inserted replaced
1:b0dd75e285d2 3:0954f5dd2cd0
     1 #
     1 #
     2 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     2 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 # All rights reserved.
     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 #
     4 #
     9 # Initial Contributors:
     5 # This program is free software: you can redistribute it and/or modify
    10 # Nokia Corporation - initial contribution.
     6 # it under the terms of the GNU Lesser General Public License as published by
       
     7 # the Free Software Foundation, version 2.1 of the License.
       
     8 # 
       
     9 # This program is distributed in the hope that it will be useful,
       
    10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12 # GNU Lesser General Public License for more details.
    11 #
    13 #
    12 # Contributors:
    14 # You should have received a copy of the GNU Lesser General Public License
       
    15 # along with this program.  If not, 
       
    16 # see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/".
    13 #
    17 #
    14 # Description: 
    18 # Description:
       
    19 #
       
    20 #   BrowserUi - common settings - browserui.pri
       
    21 #
       
    22 #   any edits made here that are common to app and mw should also be made 
       
    23 #   in the mw\browser\browser.pri file
    15 #
    24 #
    16 
    25 
    17 # Build using default nestwork access mgr
       
    18 #DEFINES+=NO_NETWORK_ACCESS_MANAGER
       
    19 
       
    20 # Build without page resizing on load 
       
    21 #DEFINES+=NO_RESIZE_ON_LOAD
       
    22 
       
    23 # Build without gestures
       
    24 DEFINES += NO_QSTM_GESTURE
       
    25 
       
    26 # Build without chrome
       
    27 #DEFINES += __gva_no_chrome__
       
    28 
       
    29 # Enable setting Default IAP 
       
    30 symbian: {  
       
    31  !contains(what, plat_101) { 
       
    32         # Enable setting Default IAP 
       
    33         DEFINES += SET_DEFAULT_IAP 
       
    34     } 
       
    35 }
       
    36 
       
    37 # Enable perfTracer
       
    38 #DEFINES += ENABLE_PERF_TRACE
       
    39 
    26 
    40 isEmpty(_BROWSERUI_PRI_INCLUDED_): {
    27 isEmpty(_BROWSERUI_PRI_INCLUDED_): {
    41     
    28 
    42     _BROWSERUI_PRI_INCLUDED_=1
    29     _BROWSERUI_PRI_INCLUDED_=1
    43 
    30 
    44     symbian {
    31     symbian {
    45         CONFIG += debug_and_release
    32         CONFIG += debug_and_release
    46         MMP_RULES += EXPORTUNFROZEN
    33         MMP_RULES += EXPORTUNFROZEN
    47     }
    34     }
    48    
    35 
    49     CONFIG(debug, debug|release) {
    36     CONFIG(debug, debug|release) {
    50         SUBDIRPART = Debug
    37         SUBDIRPART = Debug
    51     } else {
    38     } else {
    52         SUBDIRPART = Release
    39         SUBDIRPART = Release
    53     }
    40     }
    54     
    41 
    55     # Figure out the root of where stuff should go (this could be done via configure)
    42     # Figure out the root of where stuff should go (this could be done via configure)
    56     
    43 
    57     symbian {
    44     symbian {
    58         OUTPUT_DIR = $$PWD
    45         OUTPUT_DIR = $$PWD
    59     } else {
    46     } else {
    60         OUTPUT_DIR = $$PWD/../../..
    47         OUTPUT_DIR = $$PWD/../../..
    61     }    
    48     }    
    65     UI_DIR = $$OUTPUT_DIR/WrtBuild/$$SUBDIRPART/$$TARGET/tmp
    52     UI_DIR = $$OUTPUT_DIR/WrtBuild/$$SUBDIRPART/$$TARGET/tmp
    66     TEMPDIR= $$OUTPUT_DIR/WrtBuild/$$SUBDIRPART/$$TARGET/build
    53     TEMPDIR= $$OUTPUT_DIR/WrtBuild/$$SUBDIRPART/$$TARGET/build
    67     DESTDIR = $$OUTPUT_DIR/WrtBuild/$$SUBDIRPART/bin
    54     DESTDIR = $$OUTPUT_DIR/WrtBuild/$$SUBDIRPART/bin
    68     QMAKE_RPATHDIR = $$DESTDIR $$QMAKE_RPATHDIR
    55     QMAKE_RPATHDIR = $$DESTDIR $$QMAKE_RPATHDIR
    69     QMAKE_LIBDIR = $$DESTDIR $$QMAKE_LIBDIR
    56     QMAKE_LIBDIR = $$DESTDIR $$QMAKE_LIBDIR
    70     
    57 
    71     # Add the output dirs to the link path too
    58     # Add the output dirs to the link path too
    72     LIBS += -L$$DESTDIR
    59     LIBS += -L$$DESTDIR
    73     
    60 
    74     DEPENDPATH += .
    61     DEPENDPATH += .
    75     INCLUDEPATH += .
    62     INCLUDEPATH += .
    76 
    63 
    77     QMAKE_CXXFLAGS_DEBUG += -g
    64     QMAKE_CXXFLAGS_DEBUG += -g
    78     
    65 
    79     CONFIG(gcov)   {
    66     CONFIG(gcov)   {
    80        LIBS +=   -lgcov
    67        LIBS +=   -lgcov
    81        QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage
    68        QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage
    82     }
    69     }
       
    70     #########################
       
    71     # Feature Flags     
       
    72     #########################
       
    73     br_mobility_bearer=no
       
    74     br_mobility_sysinfo=no
       
    75     br_fast_allocator=no
       
    76     br_download_mgr=no
       
    77     br_default_iap=no
       
    78     br_orbit_ui=no
       
    79     br_openurl=no
       
    80     br_tiled_backing_store=no
       
    81     
       
    82     # For now Symbian only, Windows, Maemo will use the defaults    
       
    83     symbian {
       
    84        contains (browser_addon, fivezero) {
       
    85           br_fast_allocator=yes
       
    86           br_download_mgr=yes
       
    87           br_mobility_sysinfo=yes
       
    88           br_mobility_bearer=yes
       
    89        }
       
    90        contains (browser_addon, ninetwo) {
       
    91           br_fast_allocator=yes
       
    92           br_download_mgr=yes
       
    93           br_mobility_sysinfo=yes
       
    94           br_mobility_bearer=yes
       
    95        }
       
    96        isEmpty (browser_addon){
       
    97           browser_addon=no
       
    98           br_mobility_sysinfo=yes
       
    99           br_mobility_bearer=yes
       
   100           br_orbit_ui=yes
       
   101           br_openurl=yes
       
   102        }
       
   103     }
    83 }
   104 }
    84 
   105