qtmobility/examples/examples.pri
branchRCL_3
changeset 9 5d007b20cfd0
parent 8 885c2596c964
child 10 cd2778e5acfe
equal deleted inserted replaced
8:885c2596c964 9:5d007b20cfd0
     1 include(../staticconfig.pri)
       
     2         
       
     3 #!contains(build_examples, yes):error(Please use the -examples configure switch to enable building of examples)
       
     4 
       
     5 win32:contains(CONFIG_WIN32,build_all):Win32DebugAndRelease=yes
       
     6 mac | contains(Win32DebugAndRelease,yes) {
       
     7     #due to different debug/release library names we have to comply with 
       
     8     #whatever Qt does
       
     9     !contains(QT_CONFIG,debug)|!contains(QT_CONFIG,release) {
       
    10         CONFIG -= debug_and_release debug release
       
    11         contains(QT_CONFIG,debug): CONFIG+=debug
       
    12         contains(QT_CONFIG,release): CONFIG+=release
       
    13     }
       
    14 }
       
    15 
       
    16 CONFIG(debug, debug|release) {
       
    17     SUBDIRPART=Debug
       
    18 } else {
       
    19     SUBDIRPART=Release
       
    20 }
       
    21 
       
    22 OUTPUT_DIR = $$QT_MOBILITY_BUILD_TREE
       
    23 MOC_DIR = $$OUTPUT_DIR/build/$$SUBDIRPART/$$TARGET/moc
       
    24 RCC_DIR = $$OUTPUT_DIR/build/$$SUBDIRPART/$$TARGET/rcc
       
    25 UI_DIR = $$OUTPUT_DIR/build/$$SUBDIRPART/$$TARGET/ui
       
    26 OBJECTS_DIR = $$OUTPUT_DIR/build/$$SUBDIRPART/$$TARGET
       
    27 mac:LIBS+= -F$$OUTPUT_DIR/lib
       
    28 LIBS+= -L$$OUTPUT_DIR/lib
       
    29 QMAKE_RPATHDIR+=$$OUTPUT_DIR/lib
       
    30 INCLUDEPATH+= $$QT_MOBILITY_SOURCE_TREE/src/global
       
    31 
       
    32 !plugin {
       
    33     target.path=$$QT_MOBILITY_PREFIX/bin
       
    34 } else {
       
    35     target.path = $${QT_MOBILITY_PLUGINS}/$${PLUGIN_TYPE}
       
    36 }
       
    37 INSTALLS += target
       
    38 
       
    39 maemo6 {
       
    40     DEFINES+= Q_WS_MAEMO_6
       
    41     DEFINES+= QTM_EXAMPLES_SMALL_SCREEN
       
    42     DEFINES+= QTM_EXAMPLES_PREFER_LANDSCAPE
       
    43 }
       
    44 maemo5 {
       
    45     DEFINES+= Q_WS_MAEMO_5
       
    46     DEFINES+= QTM_EXAMPLES_SMALL_SCREEN
       
    47     DEFINES+= QTM_EXAMPLES_PREFER_LANDSCAPE
       
    48 }
       
    49 symbian {
       
    50     DEFINES+= QTM_EXAMPLES_SMALL_SCREEN
       
    51 }