controlpanel/src/common.pri
author hgs
Thu, 01 Apr 2010 03:17:51 +0800
changeset 31 2c9d3aa5bea2
child 32 20bd089f4aaa
permissions -rw-r--r--
201003_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
31
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     1
#
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     2
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     3
# All rights reserved.
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     4
# This component and the accompanying materials are made available
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     5
# under the terms of "Eclipse Public License v1.0"
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     6
# which accompanies this distribution, and is available
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     8
#
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     9
# Initial Contributors:
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    11
#
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    12
# Contributors:
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    13
#
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    14
# Description: controlpanel project - common qmake settings
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    15
#
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    16
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    17
CONFIG += debug_and_release 
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    18
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    19
# On win32 and mac, debug and release libraries are named differently.
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    20
# We must follow the debug and release settings Qt was compiled with:
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    21
# build debug iff Qt built debug, build release iff Qt built release.
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    22
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    23
win32|mac {
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    24
    !contains(QT_CONFIG,debug)|!contains(QT_CONFIG,release) {
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    25
        CONFIG -= debug_and_release debug release
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    26
        contains(QT_CONFIG,debug):  CONFIG+=debug
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    27
        contains(QT_CONFIG,release):CONFIG+=release
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    28
    }
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    29
}
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    30
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    31
CONFIG(debug, debug|release) {
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    32
    SUBDIRPART = debug
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    33
} else {
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    34
    SUBDIRPART = release
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    35
}
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    36
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    37
win32 { 
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    38
    DESTDIR = C:/ControlPanel/$$SUBDIRPART/bin
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    39
    OBJECTS_DIR = $$PWD/../$$SUBDIRPART/tmp/$$TARGET
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    40
}
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    41
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    42
# Add the output dirs to the link path too
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    43
LIBS += -L$$DESTDIR
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    44
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    45
MOC_DIR = moc
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    46
OBJECT_DIR = obj
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    47
RCC_DIR = rcc
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    48
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    49
#For some reason the default include path doesn't include MOC_DIR on symbian
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    50
symbian {
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    51
    INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    52
    INCLUDEPATH += $$MOC_DIR
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    53
    TARGET.CAPABILITY = ALL -TCB
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    54
    TARGET.EPOCALLOWDLLDATA = 1
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    55
}
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    56
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    57
INCLUDEPATH += $$PWD/inc
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    58
win32 {
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    59
    # add platfrom API for windows
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    60
    INCLUDEPATH += $$PWD/../controlpanel_plat/inc
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    61
}
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    62
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    63
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    64