radiohswidget/radiohswidget.pro
changeset 32 189d20c34778
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 TARGET = fmradiohswidget
       
    21 CONFIG += plugin
       
    22 CONFIG += hb
       
    23 CONFIG += mobility
       
    24 MOBILITY = serviceframework
       
    25 # Traslations is waiting for the widget specific ts
       
    26 #TRANSLATIONS += $${TARGET}.ts
       
    27 
       
    28 LIBS += -lxqsettingsmanager
       
    29 LIBS += -lxqservice
       
    30 LIBS += -lxqserviceutil
       
    31 
       
    32 HEADERS += ./inc/*.h
       
    33 SOURCES += ./src/*.cpp
       
    34 SOURCES += ../common/radiologger.cpp
       
    35 
       
    36 INCLUDEPATH += ./inc
       
    37 INCLUDEPATH += ../common
       
    38 
       
    39 UID = 2002E6D6
       
    40 
       
    41 RESOURCES = resources.qrc
       
    42 #exportResources(./resource/$${TARGET}_icon*.png, $$PLUGIN_SUBDIR)
       
    43 
       
    44 symbian: {
       
    45 
       
    46     DESTDIR = /private/20022F35/import/widgetregistry/$${UID}
       
    47 
       
    48     TARGET.UID3 = 0x$${UID}
       
    49     TARGET.EPOCALLOWDLLDATA=1
       
    50     TARGET.VID = VID_DEFAULT
       
    51     TARGET.CAPABILITY = CAP_GENERAL_DLL
       
    52     
       
    53     plugins.path = $${DESTDIR}
       
    54     plugins.sources = $${TARGET}.dll 
       
    55     
       
    56     widgetResources.path = $${DESTDIR}
       
    57     widgetResources.sources += resource/$${TARGET}.xml
       
    58     widgetResources.sources += resource/$${TARGET}.manifest
       
    59     # icon is now removed to be able to unistall the widget more easily.
       
    60     #widgetResources.sources += resource/$${TARGET}_icon*.png
       
    61 	
       
    62     localisedFiles.path = /resource/qt/translations
       
    63     localisedFiles.sources += ./locales/*.qm
       
    64         
       
    65     DEPLOYMENT += plugins
       
    66     DEPLOYMENT += widgetResources
       
    67     DEPLOYMENT += localisedFiles
       
    68     
       
    69     include(radiohswidget_exports_to_rom.pri)
       
    70 }
       
    71 
       
    72 win32: {
       
    73 
       
    74     CONFIG(debug, debug|release) {
       
    75       SUBDIRPART = debug
       
    76     } else {
       
    77       SUBDIRPART = release
       
    78     }    
       
    79     
       
    80     PLUGIN_SUBDIR = /hsresources/import/widgetregistry/$${UID}
       
    81     
       
    82     DESTDIR = $$PWD/../../../../../bin/$${SUBDIRPART}/$${PLUGIN_SUBDIR}
       
    83 
       
    84     manifest.path = $${DESTDIR}
       
    85     manifest.files = ./resource/*.manifest ./resource/*.xml ./resource/*.css #./resource/*.png
       
    86     
       
    87     widgetLocalisation.path = $$PWD/../../../../../bin/$${SUBDIRPART}/resource/qt/translations
       
    88     widgetLocalisation.files += ./locales/*.qm
       
    89     
       
    90     INSTALLS += manifest    
       
    91 }
       
    92