homescreenapp/examples/localisedhellowidgetplugin/localisedhellowidgetplugin.pro
changeset 51 4785f57bf3d4
parent 39 4e8ebe173323
child 86 e4f038c420f7
--- a/homescreenapp/examples/localisedhellowidgetplugin/localisedhellowidgetplugin.pro	Fri May 14 15:43:04 2010 +0300
+++ b/homescreenapp/examples/localisedhellowidgetplugin/localisedhellowidgetplugin.pro	Thu May 27 12:46:08 2010 +0300
@@ -14,6 +14,58 @@
 # Description: Example of home screen widget
 #
 
-TEMPLATE = subdirs
-SUBDIRS = localisedhellowidgetplugin \
-          localisedhellowidgetplugininstaller
+TEMPLATE = lib
+CONFIG += plugin mobility hb
+MOBILITY = serviceframework
+
+HEADERS += ./inc/*.h
+SOURCES += ./src/*.cpp
+
+INCLUDEPATH += ./inc               
+
+symbian: {
+		    
+    INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
+
+    TARGET.UID3 = 0x20022F80
+    TARGET.EPOCALLOWDLLDATA=1
+    TARGET.CAPABILITY = ALL -TCB
+    
+    DESTDIR = /private/20022F35/import/widgetregistry/20022F80
+    
+    plugins.path = $${DESTDIR}
+    plugins.sources = $${TARGET}.dll 
+    
+    widgetResources.path = $${DESTDIR}
+    widgetResources.sources += resource/$${TARGET}.xml    
+    widgetResources.sources += resource/$${TARGET}.manifest
+    widgetResources.sources += resource/$${TARGET}.png
+    
+    localisedFiles.path = /resource/qt/translations
+    localisedFiles.sources += ./locales/*.qm 
+    
+    DEPLOYMENT += plugins \
+                  widgetResources \
+                  localisedFiles
+}
+
+win32: {
+
+    CONFIG(debug, debug|release) {
+      SUBDIRPART = debug
+    } else {
+      SUBDIRPART = release
+    }    				 
+   
+    PLUGIN_SUBDIR = /private/20022F35/import/widgetregistry/20022F80
+    
+    DESTDIR = $$PWD/../../../../bin/$${SUBDIRPART}/$${PLUGIN_SUBDIR}
+	
+    manifest.path = $${DESTDIR}
+    manifest.files = ./resource/*.manifest ./resource/*.xml ./resource/*.png
+    
+    widgetLocalisation.path = $$PWD/../../../../bin/$${SUBDIRPART}/resource/qt/translations
+    widgetLocalisation.files += ./locales/*.qm 
+        
+    INSTALLS += manifest widgetLocalisation      
+}