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: screensaverapp 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 SOURCE_DIR = $$PWD/inc |
|
37 |
|
38 DESTDIR = $$OUTPUT_DIR |
|
39 |
|
40 # Add the output dirs to the link path too |
|
41 LIBS += -L$$DESTDIR |
|
42 |
|
43 DEPENDPATH += . $$SOURCE_DIR |
|
44 INCLUDEPATH += . $$SOURCE_DIR |
|
45 #For some reason the default include path doesn't include MOC_DIR on symbian |
|
46 symbian { |
|
47 INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE |
|
48 TARGET.CAPABILITY = ALL -TCB |
|
49 TARGET.EPOCALLOWDLLDATA=1 |
|
50 } |
|
51 |
|
52 |
|
53 plugin: !isEmpty(PLUGIN_SUBDIR): DESTDIR = $$OUTPUT_DIR/$$PLUGIN_SUBDIR |
|
54 |
|
55 symbian: plugin { # copy qtstub and manifest |
|
56 pluginstub.sources = $${TARGET}.dll |
|
57 pluginstub.path = $$PLUGIN_SUBDIR |
|
58 |
|
59 DEPLOYMENT += pluginstub |
|
60 |
|
61 qtplugins.path = $$PLUGIN_SUBDIR |
|
62 qtplugins.sources += qmakepluginstubs/$${TARGET}.qtplugin |
|
63 qtplugins.sources += resource/$${TARGET}.manifest |
|
64 |
|
65 for(qtplugin, qtplugins.sources):BLD_INF_RULES.prj_exports += "./$$qtplugin z:$$qtplugins.path/$$basename(qtplugin)" |
|
66 } |
|