homescreenapp/examples/localisedhellowidgetplugin/localisedhellowidgetplugin.pro
changeset 86 e4f038c420f7
parent 51 4785f57bf3d4
child 90 3ac3aaebaee5
equal deleted inserted replaced
81:7dd137878ff8 86:e4f038c420f7
     9 # Initial Contributors:
     9 # Initial Contributors:
    10 # Nokia Corporation - initial contribution.
    10 # Nokia Corporation - initial contribution.
    11 #
    11 #
    12 # Contributors:
    12 # Contributors:
    13 #
    13 #
    14 # Description: Example of home screen widget
    14 # Description: Example home screen widget
    15 #
    15 #
    16 
    16 
    17 TEMPLATE = lib
    17 TEMPLATE = lib
    18 CONFIG += plugin mobility hb
    18 CONFIG += plugin mobility hb
    19 MOBILITY = serviceframework
    19 MOBILITY = serviceframework
    22 SOURCES += ./src/*.cpp
    22 SOURCES += ./src/*.cpp
    23 
    23 
    24 INCLUDEPATH += ./inc               
    24 INCLUDEPATH += ./inc               
    25 
    25 
    26 symbian: {
    26 symbian: {
    27 		    
    27 	
       
    28 	WIDGET_DIR = /private/20022F35/import/widgetregistry/20022F80	    
    28     INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
    29     INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
    29 
    30 
    30     TARGET.UID3 = 0x20022F80
    31     TARGET.UID3 = 0x20022F80
    31     TARGET.EPOCALLOWDLLDATA=1
    32     TARGET.EPOCALLOWDLLDATA=1
    32     TARGET.CAPABILITY = ALL -TCB
    33     TARGET.CAPABILITY = ALL -TCB
    33     
    34             
    34     DESTDIR = /private/20022F35/import/widgetregistry/20022F80
    35     plugins.path = /resource/qt/plugins/homescreen
    35     
       
    36     plugins.path = $${DESTDIR}
       
    37     plugins.sources = $${TARGET}.dll 
    36     plugins.sources = $${TARGET}.dll 
    38     
    37     
    39     widgetResources.path = $${DESTDIR}
    38     CONFIG += qtservice
    40     widgetResources.sources += resource/$${TARGET}.xml    
    39     QTSERVICE.DESCRIPTOR = resource/$${TARGET}.xml
       
    40     
       
    41     widgetResources.path = $${WIDGET_DIR}
    41     widgetResources.sources += resource/$${TARGET}.manifest
    42     widgetResources.sources += resource/$${TARGET}.manifest
       
    43     widgetResources.sources += resource/$${TARGET}.xml
    42     widgetResources.sources += resource/$${TARGET}.png
    44     widgetResources.sources += resource/$${TARGET}.png
    43     
    45     
    44     localisedFiles.path = /resource/qt/translations
    46     widgetTranslations.path = /resource/qt/translations
    45     localisedFiles.sources += ./locales/*.qm 
    47     widgetTranslations.sources += ./locales/*.qm 
    46     
    48     
    47     DEPLOYMENT += plugins \
    49     DEPLOYMENT += plugins \
    48                   widgetResources \
    50                   widgetResources \
    49                   localisedFiles
    51                   widgetTranslations
       
    52                   
       
    53     BLD_INF_RULES.prj_exports += \
       
    54       "./rom/localisedhellowidgetplugin.iby            CORE_APP_LAYER_IBY_EXPORT_PATH(localisedhellowidgetplugin.iby)" \
       
    55       "./rom/localisedhellowidgetpluginresources.iby   LANGUAGE_APP_LAYER_IBY_EXPORT_PATH(localisedhellowidgetpluginresources.iby)"
    50 }
    56 }
    51 
    57 
    52 win32: {
    58 win32: {
    53 
    59 
    54     CONFIG(debug, debug|release) {
    60     CONFIG(debug, debug|release) {
    55       SUBDIRPART = debug
    61       TARGET_DIR = debug
    56     } else {
    62     } else {
    57       SUBDIRPART = release
    63       TARGET_DIR = release
    58     }    				 
    64     }
    59    
       
    60     PLUGIN_SUBDIR = /private/20022F35/import/widgetregistry/20022F80
       
    61     
    65     
    62     DESTDIR = $$PWD/../../../../bin/$${SUBDIRPART}/$${PLUGIN_SUBDIR}
    66     HOMESCREEN_DIR = $$PWD/../../../../bin/$${TARGET_DIR}
    63 	
       
    64     manifest.path = $${DESTDIR}
       
    65     manifest.files = ./resource/*.manifest ./resource/*.xml ./resource/*.png
       
    66     
    67     
    67     widgetLocalisation.path = $$PWD/../../../../bin/$${SUBDIRPART}/resource/qt/translations
    68     PLUGIN_DIR = $${HOMESCREEN_DIR}/resource/qt/plugins/homescreen    
    68     widgetLocalisation.files += ./locales/*.qm 
    69     WIDGET_DIR = $${HOMESCREEN_DIR}/private/20022F35/import/widgetregistry/20022F80
       
    70     TRANSLATIONS_DIR = $${HOMESCREEN_DIR}/resource/qt/translations
       
    71     
       
    72     DESTDIR = $${PLUGIN_DIR}
       
    73     
       
    74     widgetResources.path = $${WIDGET_DIR}
       
    75     widgetResources.files = ./resource/*.manifest \
       
    76                             ./resource/*.xml \
       
    77                             ./resource/*.png
       
    78     
       
    79     widgetTranslations.path = $${TRANSLATIONS_DIR}
       
    80     widgetTranslations.files += ./locales/*.qm 
    69         
    81         
    70     INSTALLS += manifest widgetLocalisation      
    82     INSTALLS += widgetResources \
       
    83                 widgetTranslations
       
    84 
    71 }
    85 }