qtcontactsmobility/common.pri
changeset 27 de1630741fbe
parent 24 0ba2181d7c28
equal deleted inserted replaced
25:76a2435edfd4 27:de1630741fbe
     1 ######################################################################
     1 ######################################################################
     2 #
     2 #
     3 # Mobility API project - common QMake settings
     3 # Mobility API project - common QMake settings
     4 #
     4 #
     5 ######################################################################
     5 ######################################################################
       
     6 
     6 
     7 
     7 CONFIG(debug, debug|release) {
     8 CONFIG(debug, debug|release) {
     8     WAS_IN_DEBUG=debug
     9     WAS_IN_DEBUG=debug
     9 } else {
    10 } else {
    10     WAS_IN_DEBUG=release
    11     WAS_IN_DEBUG=release
    11 }
    12 }
    12 
    13 
    13 include(pathconfig.pri)
    14 include(staticconfig.pri)
    14 include($$QT_MOBILITY_BUILD_TREE/config.pri)
    15 
       
    16 symbian:contains(symbian_symbols_unfrozen,1) {
       
    17     #see configure.bat for details
       
    18     MMP_RULES+="EXPORTUNFROZEN"
       
    19 }
    15 
    20 
    16 mac {
    21 mac {
    17     contains(QT_CONFIG, qt_framework):contains(TEMPLATE, lib) {
    22     contains(QT_CONFIG, qt_framework):contains(TEMPLATE, lib) {
    18         #MacOSX always builds debug and release libs when using mac framework
    23         #MacOSX always builds debug and release libs when using mac framework
    19         CONFIG+=$$WAS_IN_DEBUG
    24         CONFIG+=$$WAS_IN_DEBUG
    78 
    83 
    79 #test whether we have a unit test
    84 #test whether we have a unit test
    80 !testcase {
    85 !testcase {
    81     OBJECTS_DIR = $$OUTPUT_DIR/build/$$SUBDIRPART/$$TARGET
    86     OBJECTS_DIR = $$OUTPUT_DIR/build/$$SUBDIRPART/$$TARGET
    82     !plugin {
    87     !plugin {
    83         contains(TEMPLATE,.*lib):DESTDIR = $$OUTPUT_DIR/lib
    88         contains(TEMPLATE,.*lib) {
    84         else:DESTDIR = $$OUTPUT_DIR/bin
    89             DESTDIR = $$OUTPUT_DIR/lib
       
    90             symbian:defFilePath=../s60installs
       
    91         } else {
       
    92             DESTDIR = $$OUTPUT_DIR/bin
       
    93         }
    85     } else {
    94     } else {
    86         testplugin:DESTDIR = $$OUTPUT_DIR/build/tests/bin/plugins/$$PLUGIN_TYPE
    95         testplugin:DESTDIR = $$OUTPUT_DIR/build/tests/bin/plugins/$$PLUGIN_TYPE
    87         !testplugin:DESTDIR = $$OUTPUT_DIR/plugins/$$PLUGIN_TYPE
    96         !testplugin:DESTDIR = $$OUTPUT_DIR/plugins/$$PLUGIN_TYPE
    88     }
    97     }
    89 
    98 
   102     RCC_DIR = $$OUTPUT_DIR/build/tests/$$SUBDIRPART/$$TARGET/rcc
   111     RCC_DIR = $$OUTPUT_DIR/build/tests/$$SUBDIRPART/$$TARGET/rcc
   103     UI_DIR = $$OUTPUT_DIR/build/tests/$$SUBDIRPART/$$TARGET/ui
   112     UI_DIR = $$OUTPUT_DIR/build/tests/$$SUBDIRPART/$$TARGET/ui
   104     QMAKE_RPATHDIR += $$OUTPUT_DIR/lib
   113     QMAKE_RPATHDIR += $$OUTPUT_DIR/lib
   105 }
   114 }
   106 
   115 
       
   116 contains(TEMPLATE,.*lib):DEFINES += QT_SHARED
       
   117 
   107 maemo6 {
   118 maemo6 {
   108     DEFINES+= Q_WS_MAEMO_6
   119     DEFINES+= Q_WS_MAEMO_6
       
   120     contains(TEMPLATE,.*app.*): QMAKE_LIB_FLAGS+= -Wl,-rpath-link $$[QT_INSTALL_LIBS]
       
   121     QMAKE_LIB_FLAGS+= -Wl,-rpath-link $$[QT_INSTALL_LIBS]
       
   122     QMAKE_RPATHDIR += $$[QT_INSTALL_LIBS]
   109 }
   123 }
   110 maemo5 {
   124 maemo5 {
   111     DEFINES+= Q_WS_MAEMO_5
   125     DEFINES+= Q_WS_MAEMO_5
       
   126     LIBS += -lgconf-2 -lrtcom-eventlogger -lmodest-dbus-client-1.0 -losso -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -ltpsession -ltelepathy-qt4}
       
   127 maemo* {
       
   128     LIBS += -L/opt/qt4-maemo5/lib
       
   129     QMAKE_LFLAGS += -Wl,-rpath,/opt/qt4-maemo5/lib
   112 }
   130 }
   113 
   131 
   114 wince* {
   132 wince* {
   115     ### Bearer Management
   133     ### Bearer Management
   116     BEARERLIB.sources = $$OUTPUT_DIR/lib/$$mobilityDeployFilename(QtBearer).dll
   134     BEARERLIB.sources = $$OUTPUT_DIR/lib/$$mobilityDeployFilename(QtBearer).dll
   149     ##contains(TEMPLATE, app)|contains(CONFIG,plugin):LIBS+=-F$$OUTPUT_DIR/lib
   167     ##contains(TEMPLATE, app)|contains(CONFIG,plugin):LIBS+=-F$$OUTPUT_DIR/lib
   150     LIBS+=-F$$OUTPUT_DIR/lib
   168     LIBS+=-F$$OUTPUT_DIR/lib
   151 }
   169 }
   152 LIBS += -L$$OUTPUT_DIR/lib
   170 LIBS += -L$$OUTPUT_DIR/lib
   153 
   171 
       
   172 
   154 DEPENDPATH += . $$SOURCE_DIR
   173 DEPENDPATH += . $$SOURCE_DIR
   155 INCLUDEPATH += $$SOURCE_DIR/src/global
   174 INCLUDEPATH += $$SOURCE_DIR/src/global
       
   175