homescreenapp/examples/helloworldwidgetplugin/helloworldwidgetplugin.pro
changeset 92 6727c5d0afc7
parent 61 2b1b11a301d2
child 90 3ac3aaebaee5
equal deleted inserted replaced
85:35368b604b28 92:6727c5d0afc7
     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
    23 
    23 
    24 INCLUDEPATH += ./inc               
    24 INCLUDEPATH += ./inc               
    25 
    25 
    26 symbian: {
    26 symbian: {
    27 
    27 
    28     DESTDIR = /private/20022F35/import/widgetregistry/20022F7E
    28     WIDGET_DIR = /private/20022F35/import/widgetregistry/20022F7E
    29     INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
    29     INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
    30 
    30 
    31     TARGET.UID3 = 0x20022F7E
    31     TARGET.UID3 = 0x20022F7E
    32     TARGET.EPOCALLOWDLLDATA=1
    32     TARGET.EPOCALLOWDLLDATA=1
    33     TARGET.CAPABILITY = ALL -TCB
    33     TARGET.CAPABILITY = ALL -TCB
    34     
    34     
    35     plugins.path = $${DESTDIR}
    35     plugins.path = /resource/qt/plugins/homescreen
    36     plugins.sources = $${TARGET}.dll 
    36     plugins.sources = $${TARGET}.dll 
       
    37 
       
    38     CONFIG += qtservice
       
    39     QTSERVICE.DESCRIPTOR = resource/$${TARGET}.xml
    37     
    40     
    38     widgetResources.path = $${DESTDIR}
    41     widgetResources.path = $${WIDGET_DIR}    
    39     widgetResources.sources += resource/$${TARGET}.xml    
       
    40     widgetResources.sources += resource/$${TARGET}.manifest
    42     widgetResources.sources += resource/$${TARGET}.manifest
       
    43     widgetResources.sources += resource/$${TARGET}.xml
    41     widgetResources.sources += resource/$${TARGET}preview.png
    44     widgetResources.sources += resource/$${TARGET}preview.png
    42     widgetResources.sources += resource/$${TARGET}.svg
    45     widgetResources.sources += resource/$${TARGET}.svg
    43         
    46         
    44     DEPLOYMENT += plugins \
    47     DEPLOYMENT += plugins \
    45                   widgetResources
    48                   widgetResources
       
    49 
       
    50     BLD_INF_RULES.prj_exports += \
       
    51       "./rom/helloworldwidgetplugin.iby  CORE_APP_LAYER_IBY_EXPORT_PATH(helloworldwidgetplugin.iby)" 
    46 }
    52 }
    47 
    53 
    48 win32: {
    54 win32: {
    49 
    55 
    50     CONFIG(debug, debug|release) {
    56     CONFIG(debug, debug|release) {
    51       SUBDIRPART = debug
    57       TARGET_DIR = debug
    52     } else {
    58     } else {
    53       SUBDIRPART = release
    59       TARGET_DIR = release
    54     }    
    60     }        
    55     
    61     
    56     PLUGIN_SUBDIR = /private/20022F35/import/widgetregistry/20022F7E
    62     HOMESCREEN_DIR = $$PWD/../../../../bin/$${TARGET_DIR}
    57     
    63     
    58     DESTDIR = $$PWD/../../../../bin/$${SUBDIRPART}/$${PLUGIN_SUBDIR}
    64     PLUGIN_DIR = $${HOMESCREEN_DIR}/resource/qt/plugins/homescreen
    59 
    65     WIDGET_DIR = $${HOMESCREEN_DIR}/private/20022F35/import/widgetregistry/20022F7E
    60     manifest.path = $${DESTDIR}
    66         
    61     manifest.files = ./resource/*.manifest ./resource/*.xml ./resource/*.png ./resource/*.svg
    67     DESTDIR = $${PLUGIN_DIR}
    62     
    68     
    63     INSTALLS += manifest    
    69     widgetResources.path = $${WIDGET_DIR}
       
    70     widgetResources.files = ./resource/*.manifest \
       
    71                             ./resource/*.xml \
       
    72                             ./resource/*.png \
       
    73                             ./resource/*.svg
       
    74     
       
    75     INSTALLS += widgetResources
    64     
    76     
    65 }
    77 }