author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Fri, 11 Jun 2010 13:38:32 +0300 | |
changeset 28 | 075425b8d9a4 |
parent 24 | 6df133bd92e1 |
permissions | -rw-r--r-- |
24 | 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: Example of home screen widget |
|
15 |
# |
|
16 |
||
17 |
include(../buildflags.pri) |
|
18 |
||
19 |
TEMPLATE = lib |
|
20 |
CONFIG += plugin mobility hb |
|
21 |
MOBILITY = serviceframework |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
22 |
# Traslations is waiting for the widget specific ts |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
23 |
#TRANSLATIONS += $${TARGET}.ts |
24 | 24 |
|
25 |
LIBS += -lxqsettingsmanager \ |
|
26 |
-lxqservice \ |
|
27 |
-lxqserviceutil |
|
28 |
||
29 |
HEADERS += ./inc/*.h |
|
30 |
SOURCES += ./src/*.cpp |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
31 |
SOURCES += ../../common/radiologger.cpp |
24 | 32 |
|
33 |
INCLUDEPATH += ./inc |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
34 |
INCLUDEPATH += ../../common |
24 | 35 |
|
36 |
UID = 2002E6D6 |
|
37 |
||
38 |
RESOURCES = resources.qrc |
|
39 |
#exportResources(./resource/$${TARGET}_icon*.png, $$PLUGIN_SUBDIR) |
|
40 |
||
41 |
symbian: { |
|
42 |
||
43 |
DESTDIR = /private/20022F35/import/widgetregistry/$${UID} |
|
44 |
INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE |
|
45 |
||
46 |
TARGET.UID3 = 0x$${UID} |
|
47 |
TARGET.EPOCALLOWDLLDATA=1 |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
48 |
TARGET.VID = VID_DEFAULT |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
49 |
TARGET.CAPABILITY = CAP_GENERAL_DLL |
24 | 50 |
|
51 |
plugins.path = $${DESTDIR} |
|
52 |
plugins.sources = $${TARGET}.dll |
|
53 |
||
54 |
widgetResources.path = $${DESTDIR} |
|
55 |
widgetResources.sources += resource/$${TARGET}.xml |
|
56 |
widgetResources.sources += resource/$${TARGET}.manifest |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
57 |
# icon is now removed to be able to unistall the widget more easily. |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
58 |
#widgetResources.sources += resource/$${TARGET}_icon*.png |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
59 |
|
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
60 |
localisedFiles.path = /resource/qt/translations |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
61 |
localisedFiles.sources += ./locales/*.qm |
24 | 62 |
|
63 |
DEPLOYMENT += plugins \ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
64 |
widgetResources \ |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
65 |
localisedFiles |
24 | 66 |
} |
67 |
||
68 |
win32: { |
|
69 |
||
70 |
CONFIG(debug, debug|release) { |
|
71 |
SUBDIRPART = debug |
|
72 |
} else { |
|
73 |
SUBDIRPART = release |
|
74 |
} |
|
75 |
||
76 |
PLUGIN_SUBDIR = /hsresources/import/widgetregistry/$${UID} |
|
77 |
||
78 |
DESTDIR = $$PWD/../../../../../bin/$${SUBDIRPART}/$${PLUGIN_SUBDIR} |
|
79 |
||
80 |
manifest.path = $${DESTDIR} |
|
81 |
manifest.files = ./resource/*.manifest ./resource/*.xml ./resource/*.css #./resource/*.png |
|
82 |
||
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
83 |
widgetLocalisation.path = $$PWD/../../../../../bin/$${SUBDIRPART}/resource/qt/translations |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
84 |
widgetLocalisation.files += ./locales/*.qm |
24 | 85 |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
86 |
INSTALLS += manifest |
24 | 87 |
} |
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
88 |