calendarwidgetplugin/calendarwidgetplugin.pro
changeset 0 db1bf15cefff
child 1 f8e7eccf5f96
equal deleted inserted replaced
-1:000000000000 0:db1bf15cefff
       
     1 #
       
     2 # Copyright (c) 2009 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 the License "Symbian Foundation License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description: Project file for calendar widget
       
    15 #
       
    16 
       
    17 TEMPLATE = lib
       
    18 CONFIG += plugin hb mobility
       
    19 MOBILITY = serviceframework
       
    20 
       
    21 CONFIG(debug, debug|release) {
       
    22   DESTDIR = debug
       
    23   LIBS += -L../../../../bin/debug
       
    24 }
       
    25 else {
       
    26   DESTDIR = release
       
    27   LIBS += -L../../../../bin/release
       
    28 }
       
    29 
       
    30 HEADERS += ./inc/*.h
       
    31 
       
    32 SOURCES += ./src/*.cpp \
       
    33 
       
    34 RESOURCES += resources.qrc
       
    35 
       
    36 DEPENDPATH += ./inc \
       
    37               ./src
       
    38 
       
    39 INCLUDEPATH += ./inc \
       
    40 
       
    41 TRANSLATIONS = calwidget.ts
       
    42 
       
    43 QT += xml              
       
    44 
       
    45 symbian: {
       
    46     //TRANSLATIONS = loc/calendarwidget_en.ts 
       
    47     INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
       
    48 
       
    49     LIBS += -lagendainterface
       
    50     LIBS += -lxqservice
       
    51     LIBS += -lxqsettingsmanager
       
    52     LIBS += -lbafl
       
    53 
       
    54     # get your own symbian uid    
       
    55     TARGET.UID3 = 0x2002C35A
       
    56     TARGET.EPOCALLOWDLLDATA=1
       
    57     TARGET.CAPABILITY = ALL -TCB
       
    58     
       
    59     # add your symbian uid here
       
    60     PLUGIN_SUBDIR = /private/20022F35/import/widgetregistry/2002C35A
       
    61     
       
    62     pluginstub.sources = $${TARGET}.dll
       
    63     pluginstub.path = $$PLUGIN_SUBDIR
       
    64 
       
    65     DEPLOYMENT += pluginstub
       
    66 
       
    67     qtplugins.path = $$PLUGIN_SUBDIR
       
    68     qtplugins.sources += qmakepluginstubs/$${TARGET}.qtplugin
       
    69     qtplugins.sources += resource/$${TARGET}.manifest
       
    70     qtplugins.sources += resource/qtg_large_calendar.png
       
    71      
       
    72     for(qtplugin, qtplugins.sources):BLD_INF_RULES.prj_exports += "./$$qtplugin z:$$qtplugins.path/$$basename(qtplugin)"
       
    73     BLD_INF_RULES.prj_exports += "./resource/$${TARGET}.s60xml z:$$PLUGIN_SUBDIR/$${TARGET}.xml"
       
    74 
       
    75     XML_LOCATION = z:/resource/
       
    76     BLD_INF_RULES.prj_exports += "./gestures.xml $$XML_LOCATION"
       
    77 }
       
    78 
       
    79 win32 {
       
    80     # add platfrom API for windows
       
    81     TRANSLATIONS = loc/calendarwidget_en.ts 
       
    82     INCLUDEPATH += ../../../../homescreensrv/homescreensrv_plat/hswidgetmodel_api
       
    83     PLUGIN_SUBDIR = /hsresources/import/widgetregistry/2002C35A
       
    84 }