filemanager/src/common.pri
branchRCL_3
changeset 20 491b3ed49290
equal deleted inserted replaced
19:95243422089a 20:491b3ed49290
       
     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: filemanager 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 = $$PWD/../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 += $$APP_LAYER_SYSTEMINCLUDE
       
    53     INCLUDEPATH += $$MOC_DIR
       
    54     TARGET.CAPABILITY = ALL -TCB
       
    55     TARGET.EPOCALLOWDLLDATA = 1
       
    56 }
       
    57 
       
    58 INCLUDEPATH += $$PWD/inc
       
    59 win32 {
       
    60     # add platfrom API for windows
       
    61     INCLUDEPATH += $$PWD/../filemanager_plat/inc
       
    62 }
       
    63 
       
    64 
       
    65