99
|
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: taskswitcherapp 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 |
win32|mac {
|
|
23 |
!contains(QT_CONFIG,debug)|!contains(QT_CONFIG,release) {
|
|
24 |
CONFIG -= debug_and_release debug release
|
|
25 |
contains(QT_CONFIG,debug): CONFIG+=debug
|
|
26 |
contains(QT_CONFIG,release):CONFIG+=release
|
|
27 |
}
|
|
28 |
}
|
|
29 |
|
|
30 |
CONFIG(debug, debug|release) {
|
|
31 |
SUBDIRPART = debug
|
|
32 |
} else {
|
|
33 |
SUBDIRPART = release
|
|
34 |
}
|
|
35 |
|
|
36 |
win32: OUTPUT_DIR = $$PWD/../../bin/$$SUBDIRPART
|
|
37 |
symbian: OUTPUT_DIR = $$PWD/bin
|
|
38 |
|
|
39 |
#test whether we have a unit test
|
|
40 |
!testcase {
|
|
41 |
OBJECTS_DIR = $$OUTPUT_DIR/tmp/$$TARGET
|
|
42 |
DESTDIR = $$OUTPUT_DIR
|
|
43 |
MOC_DIR = $$OUTPUT_DIR/tmp/$$TARGET/moc
|
|
44 |
RCC_DIR = $$OUTPUT_DIR/tmp/$$TARGET/rcc
|
|
45 |
UI_DIR = $$OUTPUT_DIR/tmp/$$TARGET/ui
|
|
46 |
} else { # test part is NOT DONE
|
|
47 |
QT *= testlib
|
|
48 |
CONFIG += console
|
|
49 |
CONFIG -= app_bundle
|
|
50 |
OBJECTS_DIR = $$OUTPUT_DIR/tests/tmp/$$TARGET
|
|
51 |
DESTDIR = $$OUTPUT_DIR
|
|
52 |
MOC_DIR = $$OUTPUT_DIR/tests/tmp/$$TARGET/moc
|
|
53 |
RCC_DIR = $$OUTPUT_DIR/tests/tmp/$$TARGET/rcc
|
|
54 |
UI_DIR = $$OUTPUT_DIR/tests/tmp/$$TARGET/ui
|
|
55 |
coverage {
|
|
56 |
DEFINES += COVERAGE_MEASUREMENT
|
|
57 |
DEFINES += QT_NO_DEBUG # omit ASSERTS in coverage measurements
|
|
58 |
}
|
|
59 |
}
|
|
60 |
|
|
61 |
# Add the output dirs to the link path too
|
|
62 |
LIBS += -L$$DESTDIR
|
|
63 |
|
|
64 |
#For some reason the default include path doesn't include MOC_DIR on symbian
|
|
65 |
symbian {
|
|
66 |
INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
|
|
67 |
INCLUDEPATH += $$MOC_DIR
|
|
68 |
TARGET.CAPABILITY = ALL -TCB
|
|
69 |
TARGET.EPOCALLOWDLLDATA=1
|
|
70 |
}
|
|
71 |
|
|
72 |
win32 {
|
|
73 |
# add platfrom API for windows
|
|
74 |
INCLUDEPATH += \
|
102
|
75 |
$$PWD/../../homescreensrv/homescreensrv_plat/contentstorage_api
|
99
|
76 |
}
|