|
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 = cpaboutplugin |
|
19 |
|
20 LIBS += -lcpframework |
|
21 |
|
22 symbian { |
|
23 LIBS += -lsysversioninfo \ |
|
24 -lsysutil \ |
|
25 -lxqutils |
|
26 } |
|
27 |
|
28 TRANSLATIONS = control_panel.ts |
|
29 CONFIG += hb plugin |
|
30 |
|
31 include (aboutplugin.pri) |
|
32 include (rom/aboutplugin_rom.pri) |
|
33 |
|
34 CONFIG += debug_and_release |
|
35 MOC_DIR = moc |
|
36 OBJECT_DIR = obj |
|
37 RCC_DIR = rcc |
|
38 # On win32 and mac, debug and release libraries are named differently. |
|
39 # We must follow the debug and release settings Qt was compiled with: |
|
40 # build debug iff Qt built debug, build release iff Qt built release. |
|
41 |
|
42 win32|mac { |
|
43 !contains(QT_CONFIG,debug)|!contains(QT_CONFIG,release) { |
|
44 CONFIG -= debug_and_release debug release |
|
45 contains(QT_CONFIG,debug): CONFIG+=debug |
|
46 contains(QT_CONFIG,release):CONFIG+=release |
|
47 } |
|
48 } |
|
49 |
|
50 CONFIG(debug, debug|release) { |
|
51 SUBDIRPART = debug |
|
52 } else { |
|
53 SUBDIRPART = release |
|
54 } |
|
55 |
|
56 win32 { |
|
57 DESTDIR = C:/ControlPanel/$$SUBDIRPART/bin |
|
58 OBJECTS_DIR = $$PWD/$$SUBDIRPART/tmp/$$TARGET |
|
59 # add platfrom API for windows |
|
60 INCLUDEPATH += $$PWD/../../../controlpanel_plat/inc |
|
61 } |
|
62 |
|
63 # Add the output dirs to the link path too |
|
64 LIBS += -L$$DESTDIR |
|
65 symbian { |
|
66 INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE |
|
67 INCLUDEPATH += $$MOC_DIR |
|
68 TARGET.CAPABILITY = ALL -TCB |
|
69 TARGET.EPOCALLOWDLLDATA = 1 |
|
70 TARGET.UID3 = 0X2002873B |
|
71 } |
|
72 |
|
73 symbian: plugin { # copy qtstub and manifest |
|
74 |
|
75 PLUGIN_STUB_PATH = /resource/qt/plugins/controlpanel |
|
76 |
|
77 deploy.path = C: |
|
78 pluginstub.sources = $${TARGET}.dll |
|
79 pluginstub.path = $$PLUGIN_STUB_PATH |
|
80 DEPLOYMENT += pluginstub |
|
81 |
|
82 qtplugins.path = $$PLUGIN_STUB_PATH |
|
83 qtplugins.sources += qmakepluginstubs/$${TARGET}.qtplugin |
|
84 |
|
85 for(qtplugin, qtplugins.sources):BLD_INF_RULES.prj_exports += "./$$qtplugin $$deploy.path$$qtplugins.path/$$basename(qtplugin)" |
|
86 } |