qtcontactsmobility/plugins/contacts/symbian/symbian.pro
changeset 25 76a2435edfd4
parent 24 0ba2181d7c28
child 27 de1630741fbe
equal deleted inserted replaced
24:0ba2181d7c28 25:76a2435edfd4
     2 CONFIG += plugin
     2 CONFIG += plugin
     3 TARGET = $$qtLibraryTarget(mobapicontactspluginsymbian)
     3 TARGET = $$qtLibraryTarget(mobapicontactspluginsymbian)
     4 PLUGIN_TYPE=contacts
     4 PLUGIN_TYPE=contacts
     5 
     5 
     6 include(../../../common.pri)
     6 include(../../../common.pri)
       
     7 include(symbian_defines.pri)
     7 symbian: { 
     8 symbian: { 
     8     load(data_caging_paths)
     9     load(data_caging_paths)
     9     
       
    10     defFiles = \
       
    11         "$${LITERAL_HASH}ifdef WINSCW" \
       
    12         "DEFFILE bwins/$${TARGET}.def" \
       
    13         "$${LITERAL_HASH}elif defined EABI" \
       
    14         "DEFFILE eabi/$${TARGET}.def" \
       
    15         "$${LITERAL_HASH}endif "
       
    16     MMP_RULES += defFiles
       
    17 
    10 
    18     TARGET.CAPABILITY = ALL -TCB
    11     TARGET.CAPABILITY = ALL -TCB
    19     TARGET.EPOCALLOWDLLDATA = 1
    12     TARGET.EPOCALLOWDLLDATA = 1
    20     TARGET.UID3 = 0x2002AC7B
    13     TARGET.UID3 = 0x2002AC7B
    21     
    14   
    22     INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
    15     INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
    23   
    16   
    24     INCLUDEPATH += inc
    17     INCLUDEPATH += inc
    25     INCLUDEPATH += rss
    18     INCLUDEPATH += rss
    26     INCLUDEPATH += $$SOURCE_DIR/contacts
    19     INCLUDEPATH += $$SOURCE_DIR/contacts
    27     INCLUDEPATH += $$SOURCE_DIR/contacts/details
    20     INCLUDEPATH += $$SOURCE_DIR/contacts/details
    28     INCLUDEPATH += $$SOURCE_DIR/contacts/filters
    21     INCLUDEPATH += $$SOURCE_DIR/contacts/filters
    29     INCLUDEPATH += $$SOURCE_DIR/contacts/requests
    22     INCLUDEPATH += $$SOURCE_DIR/contacts/requests
    30 
    23 
    31   HEADERS += \
    24     HEADERS += \
    32         $$PUBLIC_HEADERS \
    25         $$PUBLIC_HEADERS \
    33         inc/cntsymbianengine.h \
    26         inc/cntsymbianengine.h \
    34         inc/cnttransformcontact.h \
       
    35         inc/cnttransformcontactdata.h \
       
    36         inc/cnttransformname.h \
       
    37         inc/cnttransformnickname.h \
       
    38         inc/cnttransformphonenumber.h \
       
    39         inc/cnttransformemail.h \
       
    40         inc/cnttransformaddress.h \
       
    41         inc/cnttransformurl.h \
       
    42         inc/cnttransformbirthday.h \
       
    43         inc/cnttransformonlineaccount.h \
       
    44         inc/cnttransformorganisation.h \
       
    45         inc/cnttransformavatar.h \
       
    46         inc/cnttransformavatarsimple.h \
       
    47         inc/cntthumbnailcreator.h \
       
    48         inc/cnttransformsynctarget.h \
       
    49         inc/cnttransformgender.h \
       
    50         inc/cnttransformanniversary.h \
       
    51         inc/cnttransformanniversarysimple.h \
       
    52         inc/cnttransformgeolocation.h \
       
    53         inc/cnttransformnote.h \
       
    54         inc/cnttransformfamily.h \  
       
    55         inc/cnttransformempty.h \  
       
    56         inc/cntabstractcontactfilter.h \
       
    57         inc/cntsymbianfilterdbms.h \
       
    58         inc/cntsymbianfiltersql.h \
       
    59         inc/cntabstractcontactsorter.h \
       
    60         inc/cntsymbiansorterdbms.h \
       
    61         inc/cntrelationship.h \
       
    62         inc/cntabstractrelationship.h \
    27         inc/cntabstractrelationship.h \
    63         inc/cntrelationshipgroup.h \
    28         inc/cntrelationshipgroup.h \
    64         inc/cntsymbianfiltersqlhelper.h \
       
    65         inc/cntsymbiansrvconnection.h \
       
    66         inc/cntsymbiantransformerror.h \
    29         inc/cntsymbiantransformerror.h \
    67         inc/cntsymbiandatabase.h \
    30         inc/cntsymbiandatabase.h \
    68         inc/cntdisplaylabel.h \
    31         inc/cntdisplaylabel.h \
    69         inc/cntdisplaylabelsqlfilter.h \
    32         inc/cntrelationship.h \
    70 	inc/cntsqlsearch.h
    33         inc/transform/cnttransformcontact.h \
    71       
    34         inc/transform/cnttransformcontactdata.h \
    72     SOURCES += \
    35         inc/transform/cnttransformname.h \
    73         src/cntsymbianengine.cpp \
    36         inc/transform/cnttransformnickname.h \
    74         src/cnttransformcontact.cpp \
    37         inc/transform/cnttransformphonenumber.h \
    75         src/cnttransformcontactdata.cpp \
    38         inc/transform/cnttransformemail.h \
    76         src/cnttransformname.cpp \
    39         inc/transform/cnttransformaddress.h \
    77         src/cnttransformnickname.cpp \
    40         inc/transform/cnttransformurl.h \
    78         src/cnttransformphonenumber.cpp \
    41         inc/transform/cnttransformbirthday.h \
    79         src/cnttransformemail.cpp \
    42         inc/transform/cnttransformonlineaccount.h \
    80         src/cnttransformaddress.cpp \
    43         inc/transform/cnttransformorganisation.h \
    81         src/cnttransformurl.cpp \
    44         inc/transform/cnttransformavatar.h \
    82         src/cnttransformbirthday.cpp \
    45         inc/transform/cnttransformavatarsimple.h \
    83         src/cnttransformonlineaccount.cpp \
    46         inc/transform/cntthumbnailcreator.h \
    84         src/cnttransformorganisation.cpp \
    47         inc/transform/cnttransformsynctarget.h \
    85         src/cnttransformavatar.cpp \
    48         inc/transform/cnttransformgender.h \
    86         src/cnttransformavatarsimple.cpp \
    49         inc/transform/cnttransformanniversary.h \
    87         src/cntthumbnailcreator.cpp\
    50         inc/transform/cnttransformanniversarysimple.h \
    88         src/cnttransformsynctarget.cpp \
    51         inc/transform/cnttransformgeolocation.h \
    89         src/cnttransformgender.cpp \
    52         inc/transform/cnttransformnote.h \
    90         src/cnttransformanniversary.cpp \
    53         inc/transform/cnttransformfamily.h \
    91         src/cnttransformanniversarysimple.cpp \
    54         inc/transform/cnttransformempty.h \
    92         src/cnttransformgeolocation.cpp \
    55         inc/filtering/cntfilterrelationship.h \
    93         src/cnttransformnote.cpp \
    56         inc/filtering/cntfilterdetaildisplaylabel.h \
    94         src/cnttransformfamily.cpp \  
    57         inc/filtering/cntfilterdetail.h \
    95         src/cnttransformempty.cpp \
    58         inc/filtering/cntdbinfo.h \
    96         src/cntsymbianfilterdbms.cpp \
    59         inc/filtering/cntfilterdefault.h \
    97         src/cntsymbianfiltersql.cpp \
    60         inc/filtering/cntfilterintersection.h \
    98         src/cntsymbiansorterdbms.cpp \
    61         inc/filtering/cntfilterunion.h \
    99         src/cntrelationship.cpp \
    62         inc/filtering/cntfilterinvalid.h \
       
    63         inc/filtering/cntfilteraction.h \
       
    64         inc/filtering/cntfilterlocalid.h \
       
    65 				inc/filtering/cntfilterchangelog.h \
       
    66 				inc/filtering/cntfilterdetailrange.h \
       
    67         inc/filtering/cntabstractcontactsorter.h \
       
    68         inc/filtering/cntabstractcontactfilter.h \
       
    69         inc/filtering/cntsymbianfilterdbms.h \
       
    70         inc/filtering/cntsymbianfiltersql.h \
       
    71         inc/filtering/cntsymbiansorterdbms.h \
       
    72         inc/filtering/cntsymbiansrvconnection.h \
       
    73         inc/filtering/cntdisplaylabelsqlfilter.h \
       
    74         inc/filtering/cntsqlsearch.h
       
    75         
       
    76     SOURCES += \       
       
    77         src/transform/cnttransformcontact.cpp \
       
    78         src/transform/cnttransformcontactdata.cpp \
       
    79         src/transform/cnttransformname.cpp \
       
    80         src/transform/cnttransformnickname.cpp \
       
    81         src/transform/cnttransformphonenumber.cpp \
       
    82         src/transform/cnttransformemail.cpp \
       
    83         src/transform/cnttransformaddress.cpp \
       
    84         src/transform/cnttransformurl.cpp \
       
    85         src/transform/cnttransformbirthday.cpp \
       
    86         src/transform/cnttransformonlineaccount.cpp \
       
    87         src/transform/cnttransformorganisation.cpp \
       
    88         src/transform/cnttransformavatar.cpp \
       
    89         src/transform/cnttransformavatarsimple.cpp \
       
    90         src/transform/cntthumbnailcreator.cpp\
       
    91         src/transform/cnttransformsynctarget.cpp \
       
    92         src/transform/cnttransformgender.cpp \
       
    93         src/transform/cnttransformanniversary.cpp \
       
    94         src/transform/cnttransformanniversarysimple.cpp \
       
    95         src/transform/cnttransformgeolocation.cpp \
       
    96         src/transform/cnttransformnote.cpp \
       
    97         src/transform/cnttransformfamily.cpp \  
       
    98         src/transform/cnttransformempty.cpp \
       
    99         src/filtering/cntfilterrelationship.cpp \
       
   100         src/filtering/cntfilterdetaildisplaylabel.cpp \
       
   101         src/filtering/cntfilterdetail.cpp \
       
   102         src/filtering/cntdbinfo.cpp \
       
   103         src/filtering/cntfilterdefault.cpp \
       
   104         src/filtering/cntfilterintersection.cpp \
       
   105         src/filtering/cntfilterunion.cpp \
       
   106         src/filtering/cntfilterinvalid.cpp \
       
   107         src/filtering/cntfilteraction.cpp \
       
   108         src/filtering/cntfilterlocalid.cpp \
       
   109 				src/filtering/cntfilterchangelog.cpp \
       
   110 				src/filtering/cntfilterdetailrange.cpp \
       
   111         src/filtering/cntsymbianfilterdbms.cpp \
       
   112         src/filtering/cntsymbianfiltersql.cpp \
       
   113         src/filtering/cntsymbiansorterdbms.cpp \
       
   114         src/filtering/cntsymbiansrvconnection.cpp \
       
   115         src/filtering/cntdisplaylabelsqlfilter.cpp \
       
   116         src/filtering/cntsqlsearch.cpp \
       
   117     	src/cntsymbianengine.cpp \
   100         src/cntabstractrelationship.cpp \
   118         src/cntabstractrelationship.cpp \
   101         src/cntrelationshipgroup.cpp \
   119         src/cntrelationshipgroup.cpp \
   102         src/cntsymbianfiltersqlhelper.cpp \
       
   103         src/cntsymbiansrvconnection.cpp \
       
   104         src/cntsymbiantransformerror.cpp \
   120         src/cntsymbiantransformerror.cpp \
   105         src/cntsymbiandatabase.cpp \
   121         src/cntsymbiandatabase.cpp \
   106         src/cntdisplaylabel.cpp \
   122         src/cntdisplaylabel.cpp \
   107         src/cntdisplaylabelsqlfilter.cpp \
   123         src/cntrelationship.cpp 
   108 	src/cntsqlsearch.cpp 
       
   109 
   124 
   110 
       
   111       
       
   112     CONFIG += mobility
   125     CONFIG += mobility
   113     MOBILITY = contacts
   126     MOBILITY = contacts
   114 
   127 
   115     qtAddLibrary(QtContacts)
       
   116     
       
   117     LIBS += \
   128     LIBS += \
   118         -lcntmodel \
   129         -lcntmodel \
   119         -lcentralrepository \
   130         -lcentralrepository \
   120         -lestor \
   131         -lestor \
   121         -lflogger \
   132         -lflogger \
   126         -lbafl
   137         -lbafl
   127 
   138 
   128     target.path = /sys/bin
   139     target.path = /sys/bin
   129     INSTALLS += target
   140     INSTALLS += target
   130 
   141 
   131     exists($${EPOCROOT}epoc32/data/z/system/install/Series60v5.2.sis) {
   142     contains(DEFINES, SYMBIAN_BACKEND_USE_SQLITE) {
   132         exists($${EPOCROOT}epoc32/release/winscw/udeb/VPbkEng.dll) \
   143         cntmodelResourceFile = \
   133         | exists($${EPOCROOT}epoc32/release/armv5/urel/VPbkEng.dll) {
   144             "START RESOURCE ../../rss/cntmodel.rss" \
   134             message("TB 9.2 platform")
   145             "TARGETPATH $${CONTACTS_RESOURCE_DIR}" \
   135         } else {
   146             "END"
   136             message("TB 10.1 or later platform")
   147         MMP_RULES += cntmodelResourceFile
   137             DEFINES += SYMBIAN_BACKEND_USE_SQLITE
       
   138             cntmodelResourceFile = \
       
   139                 "START RESOURCE ../rss/cntmodel.rss" \
       
   140                 "TARGETPATH $${CONTACTS_RESOURCE_DIR}" \
       
   141                 "END"
       
   142             MMP_RULES += cntmodelResourceFile
       
   143         }
       
   144     }
   148     }
   145     
   149     
   146     contains(S60_VERSION, 3.2) {
       
   147     	DEFINES += SYMBIAN_BACKEND_S60_VERSION_32
       
   148     }
       
   149     
       
   150 
       
   151 
       
   152     symbianplugin.sources = $${TARGET}.dll
   150     symbianplugin.sources = $${TARGET}.dll
   153     symbianplugin.path = /resource/qt/plugins/contacts
   151     symbianplugin.path = /resource/qt/plugins/contacts
   154     DEPLOYMENT += symbianplugin
   152     DEPLOYMENT += symbianplugin
   155 }
   153 }
   156 
   154