tsdevicedialog/common.pri
author hgs
Thu, 24 Jun 2010 16:18:29 +0300
changeset 99 7aaf39b772ac
child 102 8b8b34fa9751
permissions -rw-r--r--
201025
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
99
hgs
parents:
diff changeset
     1
#
hgs
parents:
diff changeset
     2
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
# All rights reserved.
hgs
parents:
diff changeset
     4
# This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
# under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
# which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
#
hgs
parents:
diff changeset
     9
# Initial Contributors:
hgs
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
#
hgs
parents:
diff changeset
    12
# Contributors:
hgs
parents:
diff changeset
    13
#
hgs
parents:
diff changeset
    14
# Description: taskswitcherapp project - common QMake settings
hgs
parents:
diff changeset
    15
#
hgs
parents:
diff changeset
    16
hgs
parents:
diff changeset
    17
CONFIG += debug_and_release
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
# On win32 and mac, debug and release libraries are named differently.
hgs
parents:
diff changeset
    20
# We must follow the debug and release settings Qt was compiled with:
hgs
parents:
diff changeset
    21
# build debug iff Qt built debug, build release iff Qt built release.
hgs
parents:
diff changeset
    22
win32|mac {
hgs
parents:
diff changeset
    23
    !contains(QT_CONFIG,debug)|!contains(QT_CONFIG,release) {
hgs
parents:
diff changeset
    24
        CONFIG -= debug_and_release debug release
hgs
parents:
diff changeset
    25
        contains(QT_CONFIG,debug):  CONFIG+=debug
hgs
parents:
diff changeset
    26
        contains(QT_CONFIG,release):CONFIG+=release
hgs
parents:
diff changeset
    27
    }
hgs
parents:
diff changeset
    28
}
hgs
parents:
diff changeset
    29
hgs
parents:
diff changeset
    30
CONFIG(debug, debug|release) {
hgs
parents:
diff changeset
    31
    SUBDIRPART = debug
hgs
parents:
diff changeset
    32
} else {
hgs
parents:
diff changeset
    33
    SUBDIRPART = release
hgs
parents:
diff changeset
    34
}
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
win32: OUTPUT_DIR = $$PWD/../../bin/$$SUBDIRPART
hgs
parents:
diff changeset
    37
symbian: OUTPUT_DIR = $$PWD/bin
hgs
parents:
diff changeset
    38
hgs
parents:
diff changeset
    39
#test whether we have a unit test
hgs
parents:
diff changeset
    40
!testcase {
hgs
parents:
diff changeset
    41
    OBJECTS_DIR = $$OUTPUT_DIR/tmp/$$TARGET
hgs
parents:
diff changeset
    42
    DESTDIR = $$OUTPUT_DIR
hgs
parents:
diff changeset
    43
    MOC_DIR = $$OUTPUT_DIR/tmp/$$TARGET/moc
hgs
parents:
diff changeset
    44
    RCC_DIR = $$OUTPUT_DIR/tmp/$$TARGET/rcc
hgs
parents:
diff changeset
    45
    UI_DIR = $$OUTPUT_DIR/tmp/$$TARGET/ui
hgs
parents:
diff changeset
    46
} else { # test part is NOT DONE
hgs
parents:
diff changeset
    47
    QT *= testlib
hgs
parents:
diff changeset
    48
    CONFIG += console
hgs
parents:
diff changeset
    49
    CONFIG -= app_bundle
hgs
parents:
diff changeset
    50
    OBJECTS_DIR = $$OUTPUT_DIR/tests/tmp/$$TARGET
hgs
parents:
diff changeset
    51
    DESTDIR = $$OUTPUT_DIR
hgs
parents:
diff changeset
    52
    MOC_DIR = $$OUTPUT_DIR/tests/tmp/$$TARGET/moc
hgs
parents:
diff changeset
    53
    RCC_DIR = $$OUTPUT_DIR/tests/tmp/$$TARGET/rcc
hgs
parents:
diff changeset
    54
    UI_DIR = $$OUTPUT_DIR/tests/tmp/$$TARGET/ui
hgs
parents:
diff changeset
    55
    coverage {
hgs
parents:
diff changeset
    56
        DEFINES += COVERAGE_MEASUREMENT
hgs
parents:
diff changeset
    57
        DEFINES += QT_NO_DEBUG  # omit ASSERTS in coverage measurements
hgs
parents:
diff changeset
    58
    }    
hgs
parents:
diff changeset
    59
}
hgs
parents:
diff changeset
    60
hgs
parents:
diff changeset
    61
# Add the output dirs to the link path too
hgs
parents:
diff changeset
    62
LIBS += -L$$DESTDIR
hgs
parents:
diff changeset
    63
hgs
parents:
diff changeset
    64
#For some reason the default include path doesn't include MOC_DIR on symbian
hgs
parents:
diff changeset
    65
symbian {
hgs
parents:
diff changeset
    66
    INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
hgs
parents:
diff changeset
    67
    INCLUDEPATH += $$MOC_DIR
hgs
parents:
diff changeset
    68
    TARGET.CAPABILITY = ALL -TCB
hgs
parents:
diff changeset
    69
    TARGET.EPOCALLOWDLLDATA=1
hgs
parents:
diff changeset
    70
}
hgs
parents:
diff changeset
    71
hgs
parents:
diff changeset
    72
win32 {
hgs
parents:
diff changeset
    73
    # add platfrom API for windows
hgs
parents:
diff changeset
    74
    INCLUDEPATH += \
hgs
parents:
diff changeset
    75
                $$PWD/../../homescreensrv/homescreensrv_plat/contentstorage_api \
hgs
parents:
diff changeset
    76
                $$PWD/../../homescreensrv/homescreensrv_plat/hswidgetmodel_api \
hgs
parents:
diff changeset
    77
}