hswidgetplugin/fmradiohswidgetplugin/fmradiohswidgetplugin.pro
branchGCC_SURGE
changeset 37 451b2e1545b2
parent 26 6bcf277166c1
parent 33 11b6825f0862
equal deleted inserted replaced
26:6bcf277166c1 37:451b2e1545b2
     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 INCLUDEPATH += ../../radioapp/commoninc
       
    32 
       
    33 UID = 2002E6D6
       
    34 
       
    35 RESOURCES = resources.qrc
       
    36 #exportResources(./resource/$${TARGET}_icon*.png, $$PLUGIN_SUBDIR)
       
    37 
       
    38 symbian: {
       
    39 
       
    40     DESTDIR = /private/20022F35/import/widgetregistry/$${UID}
       
    41     INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
       
    42 
       
    43     TARGET.UID3 = 0x$${UID}
       
    44     TARGET.EPOCALLOWDLLDATA=1
       
    45     TARGET.CAPABILITY = ALL -TCB
       
    46     
       
    47     plugins.path = $${DESTDIR}
       
    48     plugins.sources = $${TARGET}.dll 
       
    49     
       
    50     widgetResources.path = $${DESTDIR}
       
    51 # commented out
       
    52 #    widgetResources.sources += resource/$${TARGET}.s60xml
       
    53 # Use this in emulator instead of xml in resources directory.    
       
    54 #    widgetResources.sources += $${TARGET}.xml
       
    55     widgetResources.sources += resource/$${TARGET}.xml
       
    56     widgetResources.sources += resource/$${TARGET}.manifest
       
    57 # icon is now removed to be able to unistall the widget more easily.
       
    58 #    widgetResources.sources += resource/$${TARGET}_icon*.png
       
    59         
       
    60     DEPLOYMENT += plugins \
       
    61                   widgetResources
       
    62 }
       
    63 
       
    64 win32: {
       
    65 
       
    66     CONFIG(debug, debug|release) {
       
    67       SUBDIRPART = debug
       
    68     } else {
       
    69       SUBDIRPART = release
       
    70     }    
       
    71     
       
    72     PLUGIN_SUBDIR = /hsresources/import/widgetregistry/$${UID}
       
    73     
       
    74     DESTDIR = $$PWD/../../../../../bin/$${SUBDIRPART}/$${PLUGIN_SUBDIR}
       
    75 
       
    76     manifest.path = $${DESTDIR}
       
    77     manifest.files = ./resource/*.manifest ./resource/*.xml ./resource/*.css #./resource/*.png
       
    78     
       
    79     INSTALLS += manifest    
       
    80     
       
    81 }