|
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: |
|
15 # |
|
16 |
|
17 TEMPLATE = lib |
|
18 TARGET = cpthemeplugin |
|
19 |
|
20 CONFIG += hb plugin |
|
21 |
|
22 LIBS += -lcpframework |
|
23 TRANSLATIONS = control_panel.ts |
|
24 |
|
25 CONFIG += debug_and_release |
|
26 RESOURCES += themeplugin.qrc |
|
27 |
|
28 include (themeplugin.pri) |
|
29 include (rom/themeplugin_rom.pri) |
|
30 |
|
31 MOC_DIR = moc |
|
32 OBJECT_DIR = obj |
|
33 RCC_DIR = rcc |
|
34 |
|
35 # On win32 and mac, debug and release libraries are named differently. |
|
36 # We must follow the debug and release settings Qt was compiled with: |
|
37 # build debug iff Qt built debug, build release iff Qt built release. |
|
38 |
|
39 win32|mac { |
|
40 !contains(QT_CONFIG,debug)|!contains(QT_CONFIG,release) { |
|
41 CONFIG -= debug_and_release debug release |
|
42 contains(QT_CONFIG,debug): CONFIG+=debug |
|
43 contains(QT_CONFIG,release):CONFIG+=release |
|
44 } |
|
45 } |
|
46 |
|
47 CONFIG(debug, debug|release) { |
|
48 SUBDIRPART = debug |
|
49 } else { |
|
50 SUBDIRPART = release |
|
51 } |
|
52 |
|
53 win32 { |
|
54 DESTDIR = C:/ControlPanel/$$SUBDIRPART/bin |
|
55 OBJECTS_DIR = $$PWD/$$SUBDIRPART/tmp/$$TARGET |
|
56 # add platfrom API for windows |
|
57 INCLUDEPATH += $$PWD/../../../controlpanel_plat/inc |
|
58 } |
|
59 |
|
60 # Add the output dirs to the link path too |
|
61 LIBS += -L$$DESTDIR |
|
62 |
|
63 |
|
64 #For some reason the default include path doesn't include MOC_DIR on symbian |
|
65 symbian { |
|
66 INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE |
|
67 INCLUDEPATH += $$MOC_DIR |
|
68 TARGET.CAPABILITY = ALL -TCB |
|
69 TARGET.EPOCALLOWDLLDATA = 1 |
|
70 TARGET.UID3 = 0X2002C2F3 |
|
71 } |
|
72 |
|
73 |
|
74 symbian: plugin { # copy qtstub and manifest |
|
75 |
|
76 PLUGIN_STUB_PATH = /resource/qt/plugins/controlpanel |
|
77 |
|
78 deploy.path = C: |
|
79 pluginstub.sources = $${TARGET}.dll |
|
80 pluginstub.path = $$PLUGIN_STUB_PATH |
|
81 DEPLOYMENT += pluginstub |
|
82 |
|
83 qtplugins.path = $$PLUGIN_STUB_PATH |
|
84 qtplugins.sources += qmakepluginstubs/$${TARGET}.qtplugin |
|
85 |
|
86 for(qtplugin, qtplugins.sources):BLD_INF_RULES.prj_exports += "./$$qtplugin $$deploy.path$$qtplugins.path/$$basename(qtplugin)" |
|
87 } |
|
88 |
|
89 #symbian: INCLUDEPATH += /sf/mw/hb/include/hbservices \ |
|
90 # /sf/mw/hb/include/hbservices/private \ |
|
91 # /sf/mw/hb/include/hbcore \ |
|
92 # /sf/mw/hb/include/hbcore/private |
|
93 # |
|
94 |
|
95 # End of file --Don't remove this. |