hswidgetplugin/fmradiohswidgetplugin/fmradiohswidgetplugin.pro
changeset 14 63aabac4416d
child 16 f54ebcfc1b80
equal deleted inserted replaced
13:46974bebc798 14:63aabac4416d
       
     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
       
    22 
       
    23 LIBS += -lxqsettingsmanager \
       
    24 		-lxqservice \
       
    25 		-lxqserviceutil
       
    26 
       
    27 HEADERS += ./inc/*.h
       
    28 SOURCES += ./src/*.cpp
       
    29 
       
    30 INCLUDEPATH += ./inc
       
    31 
       
    32 UID = E0022EEE
       
    33 
       
    34 RESOURCES = resources.qrc
       
    35 #exportResources(./resource/$${TARGET}_icon*.png, $$PLUGIN_SUBDIR)
       
    36 
       
    37 symbian: {
       
    38 
       
    39     DESTDIR = /private/20022F35/import/widgetregistry/$${UID}
       
    40     INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
       
    41 
       
    42     TARGET.UID3 = 0x$${UID}
       
    43     TARGET.EPOCALLOWDLLDATA=1
       
    44     TARGET.CAPABILITY = ALL -TCB
       
    45     
       
    46     plugins.path = $${DESTDIR}
       
    47     plugins.sources = $${TARGET}.dll 
       
    48     
       
    49     widgetResources.path = $${DESTDIR}
       
    50 # commented out
       
    51 #    widgetResources.sources += resource/$${TARGET}.s60xml
       
    52 # Use this in emulator instead of xml in resources directory.    
       
    53 #    widgetResources.sources += $${TARGET}.xml
       
    54     widgetResources.sources += resource/$${TARGET}.xml
       
    55     widgetResources.sources += resource/$${TARGET}.manifest
       
    56 # icon is now removed to be able to unistall the widget more easily.
       
    57 #    widgetResources.sources += resource/$${TARGET}_icon*.png
       
    58         
       
    59     DEPLOYMENT += plugins \
       
    60                   widgetResources
       
    61 }
       
    62 
       
    63 win32: {
       
    64 
       
    65     CONFIG(debug, debug|release) {
       
    66       SUBDIRPART = debug
       
    67     } else {
       
    68       SUBDIRPART = release
       
    69     }    
       
    70     
       
    71     PLUGIN_SUBDIR = /hsresources/import/widgetregistry/$${UID}
       
    72     
       
    73     DESTDIR = $$PWD/../../../../../bin/$${SUBDIRPART}/$${PLUGIN_SUBDIR}
       
    74 
       
    75     manifest.path = $${DESTDIR}
       
    76     manifest.files = ./resource/*.manifest ./resource/*.xml #./resource/*.png
       
    77     
       
    78     INSTALLS += manifest    
       
    79     
       
    80 }