controlpanel/src/common.pri
branchRCL_3
changeset 25 7e0eff37aedb
parent 24 8ee96d21d9bf
child 26 e78c61e77b1a
equal deleted inserted replaced
24:8ee96d21d9bf 25:7e0eff37aedb
     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 += $$MW_LAYER_PLATFORM_EXPORT_PATH(cplogger)
       
    53     INCLUDEPATH += $$MOC_DIR
       
    54     TARGET.CAPABILITY = ALL -TCB
       
    55     TARGET.EPOCALLOWDLLDATA = 1
       
    56 }
       
    57 win32 {
       
    58     # add platfrom API for windows
       
    59     INCLUDEPATH += $$PWD/../controlpanel_plat/inc
       
    60 }
       
    61 
       
    62 
       
    63