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