|
1 # ##################################################################### |
|
2 # Contacts Mobility API |
|
3 # ##################################################################### |
|
4 TEMPLATE = lib |
|
5 |
|
6 # Target gets fixed up in common.pri |
|
7 TARGET = QtContacts |
|
8 DEFINES += QT_BUILD_CONTACTS_LIB QT_MAKEDLL\ |
|
9 QT_ASCII_CAST_WARNINGS |
|
10 |
|
11 include(../../common.pri) |
|
12 |
|
13 include(details/details.pri) |
|
14 include(engines/engines.pri) |
|
15 include(filters/filters.pri) |
|
16 include(requests/requests.pri) |
|
17 |
|
18 # Input |
|
19 PUBLIC_HEADERS += \ |
|
20 qcontact.h \ |
|
21 qcontactabstractrequest.h \ |
|
22 qcontactaction.h \ |
|
23 qcontactactiondescriptor.h \ |
|
24 qcontactactionfactory.h \ |
|
25 qcontactchangeset.h \ |
|
26 qcontactdetail.h \ |
|
27 qcontactdetaildefinition.h \ |
|
28 qcontactdetailfielddefinition.h \ |
|
29 qcontactfetchhint.h \ |
|
30 qcontactfilter.h \ |
|
31 qcontactid.h \ |
|
32 qcontactmanager.h \ |
|
33 qcontactmanagerengine.h \ |
|
34 qcontactmanagerenginefactory.h \ |
|
35 qcontactrelationship.h \ |
|
36 qcontactsortorder.h \ |
|
37 qtcontactsglobal.h \ |
|
38 qtcontacts.h |
|
39 |
|
40 # Private Headers |
|
41 PRIVATE_HEADERS += \ |
|
42 qcontact_p.h \ |
|
43 qcontactabstractrequest_p.h \ |
|
44 qcontactactiondescriptor_p.h \ |
|
45 qcontactchangeset_p.h \ |
|
46 qcontactdetail_p.h \ |
|
47 qcontactdetaildefinition_p.h \ |
|
48 qcontactdetailfielddefinition_p.h \ |
|
49 qcontactfetchhint_p.h \ |
|
50 qcontactfilter_p.h \ |
|
51 qcontactid_p.h \ |
|
52 qcontactmanager_p.h \ |
|
53 qcontactrelationship_p.h \ |
|
54 qcontactsortorder_p.h |
|
55 |
|
56 SOURCES += \ |
|
57 qcontact.cpp \ |
|
58 qcontactabstractrequest.cpp \ |
|
59 qcontactaction.cpp \ |
|
60 qcontactactiondescriptor.cpp \ |
|
61 qcontactactionfactory.cpp \ |
|
62 qcontactchangeset.cpp \ |
|
63 qcontactdetail.cpp \ |
|
64 qcontactdetaildefinition.cpp \ |
|
65 qcontactdetailfielddefinition.cpp \ |
|
66 qcontactfetchhint.cpp \ |
|
67 qcontactfilter.cpp \ |
|
68 qcontactid.cpp \ |
|
69 qcontactmanager_p.cpp \ |
|
70 qcontactmanager.cpp \ |
|
71 qcontactmanagerengine.cpp \ |
|
72 qcontactmanagerenginefactory.cpp \ |
|
73 qcontactrelationship.cpp \ |
|
74 qcontactsortorder.cpp |
|
75 |
|
76 HEADERS += \ |
|
77 $$PUBLIC_HEADERS \ |
|
78 $$PRIVATE_HEADERS |
|
79 |
|
80 maemo5 { |
|
81 isEmpty(CONTACTS_DEFAULT_ENGINE): CONTACTS_DEFAULT_ENGINE=maemo5 |
|
82 } |
|
83 |
|
84 maemo6 { |
|
85 isEmpty(CONTACTS_DEFAULT_ENGINE): CONTACTS_DEFAULT_ENGINE=tracker |
|
86 } |
|
87 |
|
88 maemo5|maemo6 { |
|
89 CONFIG += create_pc create_prl |
|
90 QMAKE_PKGCONFIG_DESCRIPTION = Qt Mobility - Contacts API |
|
91 pkgconfig.path = $$QT_MOBILITY_LIB/pkgconfig |
|
92 pkgconfig.files = QtContacts.pc |
|
93 |
|
94 INSTALLS += pkgconfig |
|
95 } |
|
96 |
|
97 wince* { |
|
98 isEmpty(CONTACTS_DEFAULT_ENGINE): CONTACTS_DEFAULT_ENGINE=wince |
|
99 } |
|
100 |
|
101 symbian { |
|
102 isEmpty(CONTACTS_DEFAULT_ENGINE): CONTACTS_DEFAULT_ENGINE=symbian |
|
103 |
|
104 TARGET.EPOCALLOWDLLDATA = 1 |
|
105 # Keep CAP_GENERAL_DLL macro in symbian packaging branch (used in symbian^4) |
|
106 TARGET.CAPABILITY = CAP_GENERAL_DLL |
|
107 TARGET.UID3 = 0x2002AC7A |
|
108 |
|
109 LIBS += -lefsrv |
|
110 |
|
111 defFiles = \ |
|
112 "$${LITERAL_HASH}ifdef WINSCW" \ |
|
113 "DEFFILE ../s60installs/bwins/$${TARGET}.def" \ |
|
114 "$${LITERAL_HASH}elif defined EABI" \ |
|
115 "DEFFILE ../s60installs/eabi/$${TARGET}.def" \ |
|
116 "$${LITERAL_HASH}endif " |
|
117 MMP_RULES += defFiles |
|
118 |
|
119 ### Contacts |
|
120 # Main library |
|
121 CONTACTS_DEPLOYMENT.sources = QtContacts.dll |
|
122 CONTACTS_DEPLOYMENT.path = \sys\bin |
|
123 DEPLOYMENT += CONTACTS_DEPLOYMENT |
|
124 } |
|
125 |
|
126 !isEmpty(CONTACTS_DEFAULT_ENGINE): DEFINES += Q_CONTACTS_DEFAULT_ENGINE=$$CONTACTS_DEFAULT_ENGINE |
|
127 |
|
128 CONFIG += app |
|
129 include(../../features/deploy.pri) |