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