qtmobility/src/messaging/messaging.pro
changeset 1 2b40d63a9c3d
child 4 90517678cc4f
equal deleted inserted replaced
0:cfcbf08528c4 1:2b40d63a9c3d
       
     1 TEMPLATE = lib
       
     2 TARGET = QtMessaging
       
     3 
       
     4 include(../../common.pri)
       
     5 
       
     6 INCLUDEPATH += .
       
     7 
       
     8 #Input
       
     9 
       
    10 DEFINES += QT_BUILD_MESSAGING_LIB QT_MAKEDLL
       
    11 
       
    12 PUBLIC_HEADERS += \
       
    13            qmessageid.h \
       
    14            qmessagecontentcontainerid.h \
       
    15            qmessagefolderid.h \
       
    16            qmessageaccountid.h \
       
    17            qmessagecontentcontainer.h \ 
       
    18 	   qmessageaddress.h \
       
    19            qmessage.h \
       
    20            qmessagefolder.h \
       
    21            qmessageaccount.h \
       
    22            qmessageaccountfilter.h \
       
    23            qmessageaccountsortorder.h \
       
    24            qmessagefolderfilter.h \
       
    25            qmessagefoldersortorder.h \
       
    26            qmessagefilter.h \
       
    27            qmessagemanager.h \
       
    28            qmessagesortorder.h \
       
    29            qmessageservice.h \
       
    30            qmessagedatacomparator.h \
       
    31            qmessageglobal.h
       
    32 
       
    33 PRIVATE_HEADERS += \
       
    34            addresshelper_p.h \
       
    35            qmessageid_p.h \
       
    36            qmessagecontentcontainerid_p.h \
       
    37            qmessagefolderid_p.h \
       
    38            qmessageaccountid_p.h \
       
    39            qmessagecontentcontainer_p.h \
       
    40            qmessageaddress_p.h \
       
    41            qmessage_p.h \ 
       
    42            qmessagefolder_p.h \ 
       
    43            qmessageaccount_p.h \
       
    44            qmessageaccountfilter_p.h \
       
    45            qmessageaccountsortorder_p.h \
       
    46            qmessagefolderfilter_p.h \
       
    47            qmessagefoldersortorder_p.h \
       
    48            qmessagefilter_p.h \
       
    49            qmessagesortorder_p.h \
       
    50            qmessagestore.h \
       
    51            qmessagestore_p.h
       
    52 
       
    53 SOURCES += qmessageid.cpp \
       
    54            qmessagecontentcontainerid.cpp \
       
    55            qmessagefolderid.cpp \
       
    56            qmessageaccountid.cpp \
       
    57            qmessagecontentcontainer.cpp \
       
    58            addresshelper.cpp \
       
    59 	   qmessageaddress.cpp \
       
    60            qmessage.cpp \
       
    61            qmessagefolder.cpp \
       
    62            qmessageaccount.cpp \
       
    63            qmessageaccountfilter.cpp \
       
    64            qmessageaccountsortorder.cpp \
       
    65            qmessagefolderfilter.cpp \
       
    66            qmessagefoldersortorder.cpp \
       
    67            qmessagefilter.cpp \
       
    68            qmessagemanager.cpp \
       
    69            qmessagesortorder.cpp \
       
    70            qmessagestore.cpp \
       
    71            qmessageservice.cpp
       
    72 
       
    73 
       
    74 symbian|win32|maemo6|maemo5|mac {
       
    75 mac {
       
    76 SOURCES += qmessageid_stub.cpp \
       
    77            qmessagecontentcontainerid_stub.cpp \
       
    78            qmessagefolderid_stub.cpp \
       
    79            qmessageaccountid_stub.cpp \
       
    80            qmessagecontentcontainer_stub.cpp \
       
    81            qmessage_stub.cpp \
       
    82            qmessagefolder_stub.cpp \
       
    83            qmessageaccount_stub.cpp \
       
    84            qmessageaccountfilter_stub.cpp \
       
    85            qmessageaccountsortorder_stub.cpp \
       
    86            qmessagefolderfilter_stub.cpp \
       
    87            qmessagefoldersortorder_stub.cpp \
       
    88            qmessagefilter_stub.cpp \
       
    89            qmessagesortorder_stub.cpp \
       
    90            qmessagestore_stub.cpp \
       
    91            qmessageservice_stub.cpp 
       
    92 }
       
    93 maemo6|maemo5 {
       
    94     QT += dbus
       
    95     CONFIG += link_pkgconfig
       
    96 
       
    97     PUBLIC_HEADERS -= qmessagecontentcontainer_p.h
       
    98     PRIVATE_HEADERS -= qmessagecontentcontainer_p.h
       
    99 
       
   100     HEADERS += qmessagecontentcontainer_maemo_p.h \
       
   101                modestengine_maemo_p.h \
       
   102                telepathyengine_maemo_p.h \
       
   103                maemohelpers_p.h
       
   104 
       
   105     SOURCES += qmessageid_maemo.cpp \
       
   106                qmessagecontentcontainerid_maemo.cpp \
       
   107                qmessagefolderid_maemo.cpp \
       
   108                qmessageaccountid_maemo.cpp \
       
   109                qmessagecontentcontainer_maemo.cpp \
       
   110                qmessage_maemo.cpp \
       
   111                qmessagefolder_maemo.cpp \
       
   112                qmessageaccount_maemo.cpp \
       
   113                qmessageaccountfilter_maemo.cpp \
       
   114                qmessageaccountsortorder_maemo.cpp \
       
   115                qmessagefolderfilter_maemo.cpp \
       
   116                qmessagefoldersortorder_maemo.cpp \
       
   117                qmessagefilter_maemo.cpp \
       
   118                qmessagesortorder_maemo.cpp \
       
   119                qmessagestore_maemo.cpp \
       
   120                qmessageservice_maemo.cpp \
       
   121                modestengine_maemo.cpp \
       
   122                telepathyengine_maemo.cpp \
       
   123                maemohelpers.cpp
       
   124 
       
   125     documentation.path = $$QT_MOBILITY_PREFIX/doc
       
   126     documentation.files = doc/html
       
   127 
       
   128     PKGCONFIG += glib-2.0 dbus-glib-1 gconf-2.0 libosso libmodest-dbus-client-1.0 TpSession TelepathyQt4
       
   129 
       
   130     CONFIG += create_pc create_prl
       
   131     QMAKE_PKGCONFIG_REQUIRES = glib-2.0 dbus-glib-1 gconf-2.0 osso modest-dbus-client-1.0 TpSession TelepathyQt4
       
   132     pkgconfig.path = $$QT_MOBILITY_LIB/pkgconfig
       
   133     pkgconfig.files = QtMessaging.pc
       
   134 
       
   135     INSTALLS += pkgconfig documentation
       
   136 }
       
   137 symbian {
       
   138     INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
       
   139 
       
   140     HEADERS -= qmessagestore_p.h \
       
   141                qmessagecontentcontainer_p.h \
       
   142                qmessage_p.h
       
   143 
       
   144     HEADERS += qmtmengine_symbian_p.h \
       
   145                qmessagestore_symbian_p.h \
       
   146                qmessageservice_symbian_p.h \
       
   147                qmessagecontentcontainer_symbian_p.h \
       
   148                qmessage_symbian_p.h
       
   149 
       
   150     SOURCES += qmtmengine_symbian.cpp \
       
   151                qmessageid_symbian.cpp \
       
   152                qmessagecontentcontainerid_symbian.cpp \
       
   153                qmessagefolderid_symbian.cpp \
       
   154                qmessageaccountid_symbian.cpp \
       
   155                qmessagecontentcontainer_symbian.cpp \
       
   156                qmessage_symbian.cpp \
       
   157                qmessagefolder_symbian.cpp \
       
   158                qmessageaccount_symbian.cpp \
       
   159                qmessageaccountfilter_symbian.cpp \
       
   160                qmessageaccountsortorder_symbian.cpp \
       
   161                qmessagefolderfilter_symbian.cpp \
       
   162                qmessagefoldersortorder_symbian.cpp \
       
   163                qmessagefilter_symbian.cpp \
       
   164                qmessagesortorder_symbian.cpp \
       
   165                qmessagestore_symbian.cpp \
       
   166                qmessageservice_symbian.cpp
       
   167            
       
   168     LIBS += -lsendas2 \
       
   169             -lmsgs \
       
   170             -letext \
       
   171             -lefsrv \
       
   172             -lcharconv \
       
   173             -lgsmu \
       
   174             -limcm \
       
   175             -lbafl \
       
   176             -lmtur \
       
   177             -lsendui \
       
   178     	    -lsmcm \
       
   179             -limcm \
       
   180             -leikcore \
       
   181             -lcone \
       
   182             -lapgrfx \
       
   183             -lapmime
       
   184 
       
   185     TARGET.CAPABILITY = ALL -TCB
       
   186     TARGET.UID3 = 0x2002AC82
       
   187 
       
   188     QtMessaging.sources = QtMessaging.dll
       
   189     QtMessaging.path = /sys/bin
       
   190     DEPLOYMENT += QtMessaging
       
   191 }
       
   192 
       
   193 win32 {
       
   194 PRIVATE_HEADERS += \
       
   195            winhelpers_p.h
       
   196 
       
   197 SOURCES += winhelpers.cpp \
       
   198            qmessageid_win.cpp \
       
   199            qmessagecontentcontainerid_win.cpp \
       
   200            qmessagefolderid_win.cpp \
       
   201            qmessageaccountid_win.cpp \
       
   202            qmessagecontentcontainer_win.cpp \
       
   203            qmessage_win.cpp \
       
   204            qmessagefolder_win.cpp \
       
   205            qmessageaccount_win.cpp \
       
   206            qmessageaccountfilter_win.cpp \
       
   207            qmessageaccountsortorder_win.cpp \
       
   208            qmessagefolderfilter_win.cpp \
       
   209            qmessagefoldersortorder_win.cpp \
       
   210            qmessagefilter_win.cpp \
       
   211            qmessagesortorder_win.cpp \
       
   212            qmessagestore_win.cpp \
       
   213            qmessageservice_win.cpp 
       
   214 
       
   215 wince* {
       
   216     # Include the source files from QMF needed for MIME parsing
       
   217     # These files are copied directly from the QMF repo with no changes:
       
   218 
       
   219     PRIVATE_HEADERS += win32wce/qmailaddress.h \
       
   220                        win32wce/qmailcodec.h \
       
   221                        win32wce/qmailfolderfwd.h \
       
   222                        win32wce/qmailglobal.h \
       
   223                        win32wce/qmailid.h \
       
   224                        win32wce/qmailipc.h \
       
   225                        win32wce/qmaillog.h \
       
   226                        win32wce/qmailmessage.h \
       
   227                        win32wce/qmailmessagefwd.h \
       
   228                        win32wce/qmailmessage_p.h \
       
   229                        win32wce/qmailnamespace.h \
       
   230                        win32wce/qmailtimestamp.h \
       
   231                        win32wce/longstring_p.h \
       
   232                        win32wce/qprivateimplementation.h \
       
   233                        win32wce/qprivateimplementationdef.h
       
   234 
       
   235     SOURCES += win32wce/qmailaddress.cpp \
       
   236                win32wce/qmailcodec.cpp \
       
   237                win32wce/qmailid.cpp \
       
   238                win32wce/qmailinstantiations.cpp \
       
   239                win32wce/qmaillog.cpp \
       
   240                win32wce/qmailmessage.cpp \
       
   241                win32wce/qmailmessagefwd.cpp \
       
   242                win32wce/qmailnamespace.cpp \
       
   243                win32wce/qmailtimestamp.cpp \
       
   244                win32wce/longstring.cpp \
       
   245                win32wce/qprivateimplementation.cpp
       
   246 
       
   247     DEFINES += QTOPIAMAIL_PARSING_ONLY QTOPIAMAIL_OMIT_QCOP SINGLE_MODULE_QTOPIAMAIL
       
   248     
       
   249     LIBS += cemapi.lib strmiids.lib uuid.lib
       
   250 }
       
   251 else {
       
   252     LIBS += mapi32.lib shlwapi.lib user32.lib
       
   253 }
       
   254 
       
   255 }
       
   256 } else {
       
   257     contains(qmf_enabled, yes) {
       
   258 
       
   259 DEFINES += USE_QMF_IMPLEMENTATION
       
   260 
       
   261 # QMF headers must be located at $QMF_INCLUDEDIR
       
   262 INCLUDEPATH += $$(QMF_INCLUDEDIR) $$(QMF_INCLUDEDIR)/support
       
   263 
       
   264 # QMF libraries must be located at $QMF_LIBDIR
       
   265 LIBS += -L $$(QMF_LIBDIR) -lqtopiamail
       
   266 
       
   267 PRIVATE_HEADERS += \
       
   268            qmfhelpers_p.h \
       
   269            qmessagestore_qmf_p.h
       
   270 
       
   271 SOURCES += qmessageid_qmf.cpp \
       
   272            qmessagecontentcontainerid_qmf.cpp \
       
   273            qmessagefolderid_qmf.cpp \
       
   274            qmessageaccountid_qmf.cpp \
       
   275            qmessagecontentcontainer_qmf.cpp \
       
   276            qmessage_qmf.cpp \
       
   277            qmessagefolder_qmf.cpp \
       
   278            qmessageaccount_qmf.cpp \
       
   279            qmessageaccountfilter_qmf.cpp \
       
   280            qmessageaccountsortorder_qmf.cpp \
       
   281            qmessagefolderfilter_qmf.cpp \
       
   282            qmessagefoldersortorder_qmf.cpp \
       
   283            qmessagefilter_qmf.cpp \
       
   284            qmessagesortorder_qmf.cpp \
       
   285            qmessagestore_qmf.cpp \
       
   286            qmessageservice_qmf.cpp \
       
   287            qmfhelpers.cpp
       
   288 }
       
   289 }
       
   290 HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS
       
   291 
       
   292 CONFIG += middleware
       
   293 include(../../features/deploy.pri)