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