hswidgetplugin/fmradiohswidgetplugin/fmradiohswidgetplugin.pro
changeset 32 189d20c34778
parent 28 075425b8d9a4
child 33 11b6825f0862
equal deleted inserted replaced
28:075425b8d9a4 32:189d20c34778
     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 # Traslations is waiting for the widget specific ts
       
    23 #TRANSLATIONS += $${TARGET}.ts
       
    24 
       
    25 LIBS += -lxqsettingsmanager \
       
    26 		-lxqservice \
       
    27 		-lxqserviceutil
       
    28 
       
    29 HEADERS += ./inc/*.h
       
    30 SOURCES += ./src/*.cpp
       
    31 SOURCES += ../../common/radiologger.cpp
       
    32 
       
    33 INCLUDEPATH += ./inc
       
    34 INCLUDEPATH += ../../common
       
    35 
       
    36 UID = 2002E6D6
       
    37 
       
    38 RESOURCES = resources.qrc
       
    39 #exportResources(./resource/$${TARGET}_icon*.png, $$PLUGIN_SUBDIR)
       
    40 
       
    41 symbian: {
       
    42 
       
    43     DESTDIR = /private/20022F35/import/widgetregistry/$${UID}
       
    44     INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
       
    45 
       
    46     TARGET.UID3 = 0x$${UID}
       
    47     TARGET.EPOCALLOWDLLDATA=1
       
    48     TARGET.VID = VID_DEFAULT
       
    49     TARGET.CAPABILITY = CAP_GENERAL_DLL
       
    50     
       
    51     plugins.path = $${DESTDIR}
       
    52     plugins.sources = $${TARGET}.dll 
       
    53     
       
    54     widgetResources.path = $${DESTDIR}
       
    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     localisedFiles.path = /resource/qt/translations
       
    61     localisedFiles.sources += ./locales/*.qm
       
    62         
       
    63     DEPLOYMENT += plugins \
       
    64                   widgetResources \
       
    65                   localisedFiles
       
    66 }
       
    67 
       
    68 win32: {
       
    69 
       
    70     CONFIG(debug, debug|release) {
       
    71       SUBDIRPART = debug
       
    72     } else {
       
    73       SUBDIRPART = release
       
    74     }    
       
    75     
       
    76     PLUGIN_SUBDIR = /hsresources/import/widgetregistry/$${UID}
       
    77     
       
    78     DESTDIR = $$PWD/../../../../../bin/$${SUBDIRPART}/$${PLUGIN_SUBDIR}
       
    79 
       
    80     manifest.path = $${DESTDIR}
       
    81     manifest.files = ./resource/*.manifest ./resource/*.xml ./resource/*.css #./resource/*.png
       
    82     
       
    83     widgetLocalisation.path = $$PWD/../../../../../bin/$${SUBDIRPART}/resource/qt/translations
       
    84     widgetLocalisation.files += ./locales/*.qm
       
    85     
       
    86     INSTALLS += manifest    
       
    87 }
       
    88