controlpanel/examples/example_common.pri
branchRCL_3
changeset 24 8ee96d21d9bf
equal deleted inserted replaced
23:8bda91a87a00 24:8ee96d21d9bf
       
     1 #
       
     2 # Copyright (c) 2009 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: controlpanel project - common qmake settings
       
    15 #
       
    16 
       
    17 CONFIG += debug_and_release 
       
    18 
       
    19 # On win32 and mac, debug and release libraries are named differently.
       
    20 # We must follow the debug and release settings Qt was compiled with:
       
    21 # build debug iff Qt built debug, build release iff Qt built release.
       
    22 
       
    23 win32|mac {
       
    24     !contains(QT_CONFIG,debug)|!contains(QT_CONFIG,release) {
       
    25         CONFIG -= debug_and_release debug release
       
    26         contains(QT_CONFIG,debug):  CONFIG+=debug
       
    27         contains(QT_CONFIG,release):CONFIG+=release
       
    28     }
       
    29 }
       
    30 
       
    31 CONFIG(debug, debug|release) {
       
    32     SUBDIRPART = debug
       
    33 } else {
       
    34     SUBDIRPART = release
       
    35 }
       
    36 
       
    37 win32 { 
       
    38     DESTDIR = C:/ControlPanel/$$SUBDIRPART/bin
       
    39     OBJECTS_DIR = $$PWD/../$$SUBDIRPART/tmp/$$TARGET
       
    40 }
       
    41 
       
    42 # Add the output dirs to the link path too
       
    43 LIBS += -L$$DESTDIR
       
    44 
       
    45 MOC_DIR = moc
       
    46 OBJECT_DIR = obj
       
    47 RCC_DIR = rcc
       
    48 
       
    49 #For some reason the default include path doesn't include MOC_DIR on symbian
       
    50 symbian {
       
    51     INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE
       
    52     INCLUDEPATH += $$MOC_DIR
       
    53     TARGET.CAPABILITY = ALL -TCB
       
    54     TARGET.EPOCALLOWDLLDATA = 1
       
    55 }
       
    56 
       
    57 win32 {
       
    58     # add platfrom API for windows
       
    59     INCLUDEPATH += $$PWD/../controlpanel_plat/inc
       
    60 }
       
    61 
       
    62 CONFIG += hb plugin
       
    63 LIBS += -lcpframework
       
    64 
       
    65 symbian: plugin { # copy qtstub and manifest
       
    66 	
       
    67 	PLUGIN_STUB_PATH = /resource/qt/plugins/controlpanel
       
    68 	
       
    69 	deploy.path = C:
       
    70 	pluginstub.sources = $${TARGET}.dll
       
    71 	pluginstub.path = $$PLUGIN_STUB_PATH
       
    72 	DEPLOYMENT += pluginstub
       
    73 
       
    74     qtplugins.path = $$PLUGIN_STUB_PATH
       
    75     qtplugins.sources += qmakepluginstubs/$${TARGET}.qtplugin
       
    76      
       
    77     for(qtplugin, qtplugins.sources):BLD_INF_RULES.prj_exports += "./$$qtplugin  $$deploy.path$$qtplugins.path/$$basename(qtplugin)" 
       
    78 }
       
    79 
       
    80 
       
    81