|
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 += $$APP_LAYER_SYSTEMINCLUDE |
|
54 INCLUDEPATH += $$MOC_DIR |
|
55 TARGET.CAPABILITY = ALL -TCB |
|
56 TARGET.EPOCALLOWDLLDATA = 1 |
|
57 } |
|
58 |
|
59 INCLUDEPATH += $$PWD/inc |
|
60 win32 { |
|
61 # add platfrom API for windows |
|
62 INCLUDEPATH += $$PWD/../../controlpanel/controlpanel_plat/inc |
|
63 } |
|
64 |
|
65 |
|
66 |