summaryrefslogtreecommitdiffstats
path: root/src/messaging/messaging.pro
blob: db13ca16535dd16b7c5ce031a81bdb26d18e71c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
include(../../features/utils.pri)

TEMPLATE = lib
TARGET = QtMessaging
include(../../common.pri)
INCLUDEPATH += .

# Input
DEFINES += QT_BUILD_MESSAGING_LIB \
    QT_MAKEDLL
PUBLIC_HEADERS += qmessageid.h \
    qmessagecontentcontainerid.h \
    qmessagefolderid.h \
    qmessageaccountid.h \
    qmessagecontentcontainer.h \
    qmessageaddress.h \
    qmessage.h \
    qmessagefolder.h \
    qmessageaccount.h \
    qmessageaccountfilter.h \
    qmessageaccountsortorder.h \
    qmessagefolderfilter.h \
    qmessagefoldersortorder.h \
    qmessagefilter.h \
    qmessagemanager.h \
    qmessagesortorder.h \
    qmessageservice.h \
    qmessagedatacomparator.h \
    qmessageglobal.h
PRIVATE_HEADERS += addresshelper_p.h \
    qmessageid_p.h \
    qmessagecontentcontainerid_p.h \
    qmessagefolderid_p.h \
    qmessageaccountid_p.h \
    qmessagecontentcontainer_p.h \
    qmessageaddress_p.h \
    qmessage_p.h \
    qmessagefolder_p.h \
    qmessageaccount_p.h \
    qmessageaccountfilter_p.h \
    qmessageaccountsortorder_p.h \
    qmessagefolderfilter_p.h \
    qmessagefoldersortorder_p.h \
    qmessagefilter_p.h \
    qmessagesortorder_p.h \
    qmessagestore_p.h \
    messagingutil_p.h \
    qmessagestore_p_p.h
SOURCES += qmessageid.cpp \
    qmessagecontentcontainerid.cpp \
    qmessagefolderid.cpp \
    qmessageaccountid.cpp \
    qmessagecontentcontainer.cpp \
    addresshelper.cpp \
    qmessageaddress.cpp \
    qmessage.cpp \
    qmessagefolder.cpp \
    qmessageaccount.cpp \
    qmessageaccountfilter.cpp \
    qmessageaccountsortorder.cpp \
    qmessagefolderfilter.cpp \
    qmessagefoldersortorder.cpp \
    qmessagefilter.cpp \
    qmessagemanager.cpp \
    qmessagesortorder.cpp \
    qmessagestore.cpp \
    qmessageservice.cpp \
    messagingutil.cpp
symbian|win32|maemo6|maemo5|mac:!simulator {
    mac: SOURCES += qmessageid_stub.cpp \
        qmessagecontentcontainerid_stub.cpp \
        qmessagefolderid_stub.cpp \
        qmessageaccountid_stub.cpp \
        qmessagecontentcontainer_stub.cpp \
        qmessage_stub.cpp \
        qmessagefolder_stub.cpp \
        qmessageaccount_stub.cpp \
        qmessageaccountfilter_stub.cpp \
        qmessageaccountsortorder_stub.cpp \
        qmessagefolderfilter_stub.cpp \
        qmessagefoldersortorder_stub.cpp \
        qmessagefilter_stub.cpp \
        qmessagesortorder_stub.cpp \
        qmessagestore_stub.cpp \
        qmessageservice_stub.cpp
    maemo5 {
        QT += dbus
        CONFIG += link_pkgconfig
        PUBLIC_HEADERS -= qmessagecontentcontainer_p.h
        PRIVATE_HEADERS -= qmessagecontentcontainer_p.h
        HEADERS += qmessagecontentcontainer_maemo_p.h \
            qmessageservice_maemo_p.h \
            modestengine_maemo_p.h \
            telepathyengine_maemo_p.h \
            maemohelpers_p.h \
            eventloggerengine_maemo_p.h
        SOURCES += qmessageid_maemo.cpp \
            qmessagecontentcontainerid_maemo.cpp \
            qmessagefolderid_maemo.cpp \
            qmessageaccountid_maemo.cpp \
            qmessagecontentcontainer_maemo.cpp \
            qmessage_maemo.cpp \
            qmessagefolder_maemo.cpp \
            qmessageaccount_maemo.cpp \
            qmessageaccountfilter_maemo.cpp \
            qmessageaccountsortorder_maemo.cpp \
            qmessagefolderfilter_maemo.cpp \
            qmessagefoldersortorder_maemo.cpp \
            qmessagefilter_maemo.cpp \
            qmessagesortorder_maemo.cpp \
            qmessagestore_maemo.cpp \
            qmessageservice_maemo.cpp \
            modestengine_maemo.cpp \
            telepathyengine_maemo.cpp \
            maemohelpers.cpp \
            eventloggerengine_maemo.cpp
        documentation.path = $$QT_MOBILITY_PREFIX/doc
        documentation.files = doc/html
        PKGCONFIG += glib-2.0 \
            dbus-glib-1 \
            gconf-2.0 \
            libosso \
            libmodest-dbus-client-1.0 \
            TpSession \
            TelepathyQt4
        CONFIG += create_pc \
            create_prl
        QMAKE_PKGCONFIG_REQUIRES = glib-2.0 \
            dbus-glib-1 \
            gconf-2.0 \
            osso \
            modest-dbus-client-1.0 \
            TpSession \
            TelepathyQt4
        INSTALLS += documentation
        LIBS += -lgconf-2 \
            -lrtcom-eventlogger \
            -lmodest-dbus-client-1.0 \
            -losso \
            -ldbus-glib-1 \
            -ldbus-1 \
            -lgobject-2.0 \
            -lglib-2.0 \
            -ltpsession \
            -ltelepathy-qt4 \
            -lhildonmime
    }
    maemo6 { 
	# qt-messaging depends on CommHistory, and CommHistory depends on qtm-contacts
	# so the include path needs to contain the QtContacts files CommHistory includes
	INCLUDEPATH += ../../include/QtContacts \
	../contacts \
	../contacts/details \
	../contacts/filters \
	../contacts/requests
        QT += dbus
        QT += sql
        CONFIG += link_pkgconfig
        PUBLIC_HEADERS -= qmessagecontentcontainer_p.h
        PRIVATE_HEADERS -= qmessagecontentcontainer_p.h
        HEADERS += qmessagecontentcontainer_maemo6_p.h
        PRIVATE_HEADERS += qmfhelpers_maemo6_p.h \
            telepathyhelpers_maemo6_p.h \
            telepathyengine_maemo6_p.h \
            qmfservice_maemo6_p.h \
            qmfstore_maemo6_p.h \
            qmessageservice_maemo6_p.h \
            maemo6helpers_p.h \
            smsmodel_maemo6_p.h \
            storageengine_maemo6_p.h
        SOURCES += qmessageid_maemo6.cpp \
            qmessagecontentcontainerid_maemo6.cpp \
            qmessagefolderid_maemo6.cpp \
            qmessageaccountid_maemo6.cpp \
            qmessagecontentcontainer_maemo6.cpp \
            qmessage_maemo6.cpp \
            qmessagefolder_maemo6.cpp \
            qmessageaccount_maemo6.cpp \
            qmessageaccountfilter_maemo6.cpp \
            qmessageaccountsortorder_maemo6.cpp \
            qmessagefolderfilter_maemo6.cpp \
            qmessagefoldersortorder_maemo6.cpp \
            qmessagefilter_maemo6.cpp \
            qmessagesortorder_maemo6.cpp \
            qmessagestore_maemo6.cpp \
            qmessageservice_maemo6.cpp \
            qmfhelpers_maemo6.cpp \
            telepathyengine_maemo6.cpp \
            maemo6helpers.cpp \
            storageengine_maemo6.cpp \
            smsmodel_maemo6.cpp \
            qmfstore_maemo6.cpp \
            qmfservice_maemo6.cpp
        documentation.path = $$QT_MOBILITY_PREFIX/doc
        documentation.files = doc/html
        PKGCONFIG += glib-2.0 \
            dbus-glib-1 \
            gconf-2.0 \
            TelepathyQt4 \
            qmfclient \
            commhistory \
            meegotouch \
            qttracker \
            messagingif0
        CONFIG += create_pc \
            create_prl
        QMAKE_PKGCONFIG_REQUIRES = glib-2.0 \
            dbus-glib-1 \
            gconf-2.0 \
            TelepathyQt4 \
            qmfclient \
            commhistory \
            meegotouch \
            qttracker \
            messagingif0
        INSTALLS += documentation
    }
    symbian { 
        INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
	contains(messaging_freestyle_enabled, yes) {
   	CONFIG += FREESTYLEMAIL
	DEFINES += FREESTYLEMAILUSED
	}
	contains(messaging_freestyle_mapi12_enabled, yes) {
	CONFIG += FREESTYLEMAILMAPI12
	DEFINES += FREESTYLEMAILMAPI12USED
	}
	contains(messaging_ncnlist_enabled, no) {
	DEFINES += NCNLISTREMOVED
	}
	contains(messaging_qthighway_enabled, yes) {
            CONFIG += QTHIGHWAY
            DEFINES += QTHIGHWAYUSED
        }
        HEADERS -= qmessagestore_p_p.h \
            qmessagecontentcontainer_p.h \
            qmessage_p.h
        HEADERS += qmtmengine_symbian_p.h \
            qmessagestore_symbian_p.h \
            qmessageservice_symbian_p.h \
            qmessagecontentcontainer_symbian_p.h \
            qmessage_symbian_p.h \
            maemohelpers_p.h
            contains(CONFIG, FREESTYLEMAIL) {
               HEADERS += qfsengine_symbian_p.h
            }

        SOURCES += qmtmengine_symbian.cpp \
            qmessageid_symbian.cpp \
            qmessagecontentcontainerid_symbian.cpp \
            qmessagefolderid_symbian.cpp \
            qmessageaccountid_symbian.cpp \
            qmessagecontentcontainer_symbian.cpp \
            qmessage_symbian.cpp \
            qmessagefolder_symbian.cpp \
            qmessageaccount_symbian.cpp \
            qmessageaccountfilter_symbian.cpp \
            qmessageaccountsortorder_symbian.cpp \
            qmessagefolderfilter_symbian.cpp \
            qmessagefoldersortorder_symbian.cpp \
            qmessagefilter_symbian.cpp \
            qmessagesortorder_symbian.cpp \
            qmessagestore_symbian.cpp \
            qmessageservice_symbian.cpp \
            maemohelpers.cpp
            
        contains(CONFIG, FREESTYLEMAIL) {
	    SOURCES += qfsengine_symbian.cpp
	}
        contains(CONFIG, QTHIGHWAY) {
            LIBS += -lxqservice \
                    -lxqserviceutil \
        } else {
            LIBS += -lsendui
        }
        LIBS += -lsendas2 \
            -lmsgs \
            -letext \
            -lefsrv \
            -lcharconv \
            -lgsmu \
            -limcm \
            -lbafl \
            -lmtur \
            -lsmcm \
            -limcm \
            -leikcore \
            -lcone \
            -lapgrfx \
            -lapmime \
            -lecom 
        TARGET.CAPABILITY = ALL \
            -TCB
        TARGET.UID3 = $$mobilityUID(0x2002AC82)
        QtMessaging.sources = QtMessaging$${QT_LIBINFIX}.dll
        QtMessaging.path = /sys/bin
        DEPLOYMENT += QtMessaging
    }
    win32 { 
        PRIVATE_HEADERS += winhelpers_p.h
        SOURCES += winhelpers.cpp \
            qmessageid_win.cpp \
            qmessagecontentcontainerid_win.cpp \
            qmessagefolderid_win.cpp \
            qmessageaccountid_win.cpp \
            qmessagecontentcontainer_win.cpp \
            qmessage_win.cpp \
            qmessagefolder_win.cpp \
            qmessageaccount_win.cpp \
            qmessageaccountfilter_win.cpp \
            qmessageaccountsortorder_win.cpp \
            qmessagefolderfilter_win.cpp \
            qmessagefoldersortorder_win.cpp \
            qmessagefilter_win.cpp \
            qmessagesortorder_win.cpp \
            qmessagestore_win.cpp \
            qmessageservice_win.cpp
        wince* { 
            # Include the source files from QMF needed for MIME parsing
            # These files are copied directly from the QMF repo with no changes:
            PRIVATE_HEADERS += win32wce/qmailaddress.h \
                win32wce/qmailcodec.h \
                win32wce/qmailfolderfwd.h \
                win32wce/qmailglobal.h \
                win32wce/qmailid.h \
                win32wce/qmailipc.h \
                win32wce/qmaillog.h \
                win32wce/qmailmessage.h \
                win32wce/qmailmessagefwd.h \
                win32wce/qmailmessage_p.h \
                win32wce/qmailnamespace.h \
                win32wce/qmailtimestamp.h \
                win32wce/longstring_p.h \
                win32wce/qprivateimplementation.h \
                win32wce/qprivateimplementationdef.h

           SOURCES += win32wce/qmailaddress.cpp \
                win32wce/qmailcodec.cpp \
                win32wce/qmailid.cpp \
                win32wce/qmailinstantiations.cpp \
                win32wce/qmaillog.cpp \
                win32wce/qmailmessage.cpp \
                win32wce/qmailmessagefwd.cpp \
                win32wce/qmailnamespace.cpp \
                win32wce/qmailtimestamp.cpp \
                win32wce/longstring.cpp \
                win32wce/qprivateimplementation.cpp
            DEFINES += QTOPIAMAIL_PARSING_ONLY \
                QTOPIAMAIL_OMIT_QCOP \
                SINGLE_MODULE_QTOPIAMAIL
            LIBS += cemapi.lib \
                strmiids.lib \
                uuid.lib
        }
        else:LIBS += mapi32.lib \
            shlwapi.lib \
            user32.lib
    }
}
    
simulator {
    INCLUDEPATH += ../mobilitysimulator
    qtAddLibrary(QtMobilitySimulator)
    DEFINES += QTOPIAMAIL_OMIT_QCOP 
}

simulator|contains(qmf_enabled, yes):!maemo6 { 
    DEFINES += USE_QMF_IMPLEMENTATION
    
    QMF_INCLUDEDIR = $$(QMF_INCLUDEDIR)
    QMF_LIBDIR = $$(QMF_LIBDIR)

    # QMF headers must be located at $QMF_INCLUDEDIR
    !isEmpty(QMF_INCLUDEDIR): INCLUDEPATH += $$(QMF_INCLUDEDIR) $$(QMF_INCLUDEDIR)/support

    # QMF libraries must be located at $QMF_LIBDIR
    macx {
        !isEmpty(QMF_LIBDIR): QMAKE_LFLAGS += -F$$(QMF_LIBDIR)
        LIBS += -framework qmfclient
    } else {
        !isEmpty(QMF_LIBDIR): LIBS += -L$$(QMF_LIBDIR)
	LIBS += -l$$qtLibraryTarget(qmfclient)
    }
		
    # QMF libraries must be located at $QMF_LIBDIR
    mac {
        QMAKE_LFLAGS += -F$$(QMF_LIBDIR)
            LIBS += -framework qmfclient
    } else {
        LIBS += -L$$(QMF_LIBDIR) -l$$qtLibraryTarget(qmfclient)
    }

    PRIVATE_HEADERS += qmfhelpers_p.h \
        qmessagestore_qmf_p.h
    SOURCES += qmessageid_qmf.cpp \
        qmessagecontentcontainerid_qmf.cpp \
        qmessagefolderid_qmf.cpp \
        qmessageaccountid_qmf.cpp \
        qmessagecontentcontainer_qmf.cpp \
        qmessage_qmf.cpp \
        qmessagefolder_qmf.cpp \
        qmessageaccount_qmf.cpp \
        qmessageaccountfilter_qmf.cpp \
        qmessageaccountsortorder_qmf.cpp \
        qmessagefolderfilter_qmf.cpp \
        qmessagefoldersortorder_qmf.cpp \
        qmessagefilter_qmf.cpp \
        qmessagesortorder_qmf.cpp \
        qmessagestore_qmf.cpp \
        qmessageservice_qmf.cpp \
        qmfhelpers.cpp
}

HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS

CONFIG += middleware
include(../../features/deploy.pri)