blob: 49da2a65ddc51530a7e57c4607be02f7b29db804 (
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
|
CONFIG += mobility
PUBLIC_HEADERS += \
nfc/qnearfieldmanager.h \
nfc/qnearfieldtarget.h \
nfc/qndefrecord.h \
nfc/qndefnfctextrecord.h \
nfc/qndefmessage.h \
nfc/qndeffilter.h \
nfc/qndefnfcurirecord.h \
nfc/qnearfieldtagtype1.h \
nfc/qnearfieldtagtype2.h \
nfc/qllcpsocket.h \
nfc/qnearfieldtagtype3.h \
nfc/qnearfieldtagtype4.h \
nfc/qllcpserver.h \
nfc/qdeclarativendefrecord.h
PRIVATE_HEADERS += \
nfc/qndefrecord_p.h \
nfc/qnearfieldtarget_p.h \
nfc/qnearfieldmanager_p.h \
nfc/qtlv_p.h \
nfc/checksum_p.h
SOURCES += \
nfc/qnearfieldmanager.cpp \
nfc/qnearfieldtarget.cpp \
nfc/qndefrecord.cpp \
nfc/qndefnfctextrecord.cpp \
nfc/qndefmessage.cpp \
nfc/qndeffilter.cpp \
nfc/qndefnfcurirecord.cpp \
nfc/qnearfieldtagtype1.cpp \
nfc/qnearfieldtagtype2.cpp \
nfc/qnearfieldtagtype3.cpp \
nfc/qllcpsocket.cpp \
nfc/qnearfieldtagtype4.cpp \
nfc/qtlv.cpp \
nfc/qllcpserver.cpp \
nfc/qdeclarativendefrecord.cpp
maemo6|meego {
NFC_BACKEND_AVAILABLE = yes
QT *= dbus
DBUS_INTERFACES += \
nfc/maemo6/com.nokia.nfc.Manager.xml \
nfc/maemo6/com.nokia.nfc.Device.xml
DBUS_ADAPTORS += \
nfc/maemo6/com.nokia.nfc.AccessRequestor.xml \
nfc/maemo6/com.nokia.nfc.NDEFHandler.xml
# work around bug in Qt
dbus_interface_source.depends = ${QMAKE_FILE_OUT_BASE}.h
dbus_adaptor_source.depends = ${QMAKE_FILE_OUT_BASE}.h
# Link against libdbus until Qt has support for passing file descriptors over DBus.
CONFIG += link_pkgconfig
DEFINES += DBUS_API_SUBJECT_TO_CHANGE
PKGCONFIG += dbus-1
PRIVATE_HEADERS += \
nfc/qnearfieldmanager_maemo6_p.h \
nfc/qnearfieldtarget_maemo6_p.h \
nfc/qllcpsocket_maemo6_p.h \
nfc/qllcpserver_maemo6_p.h \
nfc/maemo6/adapter_interface_p.h \
nfc/maemo6/target_interface_p.h \
nfc/maemo6/tag_interface_p.h \
nfc/maemo6/socketrequestor_p.h
SOURCES += \
nfc/qnearfieldmanager_maemo6.cpp \
nfc/qnearfieldtarget_maemo6.cpp \
nfc/qllcpsocket_maemo6_p.cpp \
nfc/qllcpserver_maemo6_p.cpp \
nfc/maemo6/adapter_interface.cpp \
nfc/maemo6/target_interface.cpp \
nfc/maemo6/tag_interface.cpp \
nfc/maemo6/socketrequestor.cpp
OTHER_FILES += \
$$DBUS_INTERFACES \
$$DBUS_ADAPTORS \
nfc/maemo6/com.nokia.nfc.Adapter.xml \
nfc/maemo6/com.nokia.nfc.Target.xml \
nfc/maemo6/com.nokia.nfc.Tag.xml \
nfc/maemo6/com.nokia.nfc.LLCPRequestor.xml
# Add OUT_PWD to INCLUDEPATH so that creator picks up headers for generated files
# This is not needed for the build otherwise.
INCLUDEPATH += $$OUT_PWD
}
simulator {
NFC_BACKEND_AVAILABLE = yes
QT *= gui
PRIVATE_HEADERS += \
nfc/qnearfieldmanagervirtualbase_p.h \
nfc/qnearfieldmanager_simulator_p.h \
nfc/qllcpsocket_simulator_p.h \
nfc/qllcpserver_simulator_p.h
SOURCES += \
nfc/qnearfieldmanagervirtualbase.cpp \
nfc/qnearfieldmanager_simulator.cpp \
nfc/qllcpsocket_simulator_p.cpp \
nfc/qllcpserver_simulator_p.cpp
}
contains(nfc_symbian_enabled, yes):symbian {
NFC_BACKEND_AVAILABLE = yes
MOBILITY = serviceframework
INCLUDEPATH += $$SOURCE_DIR/src/serviceframework
qtAddLibrary(QtServiceFramework)
PRIVATE_HEADERS += \
nfc/qnearfieldmanager_symbian_p.h \
nfc/qnearfieldtagtype1_symbian_p.h \
nfc/qnearfieldtagtype2_symbian_p.h \
nfc/qllcpsocket_symbian_p.h \
nfc/qllcpserver_symbian_p.h \
nfc/qllcpstate_symbian_p.h \
nfc/qnearfieldtagtype3_symbian_p.h \
nfc/qnearfieldtagtype4_symbian_p.h \
nfc/qnearfieldtagmifare_symbian_p.h \
nfc/qnearfieldllcpdevice_symbian_p.h \
nfc/symbian/nearfieldmanager_symbian.h \
nfc/symbian/nearfieldtag_symbian.h \
nfc/symbian/nearfieldndeftarget_symbian.h \
nfc/symbian/nearfieldtargetfactory_symbian.h \
nfc/symbian/nearfieldutility_symbian.h \
nfc/symbian/llcpserver_symbian.h \
nfc/symbian/llcpsockettype1_symbian.h \
nfc/symbian/llcpsockettype2_symbian.h \
nfc/symbian/nearfieldtagimpl_symbian.h \
nfc/symbian/nearfieldtagasyncrequest_symbian.h \
nfc/symbian/nearfieldtagndefoperationcallback_symbian.h \
nfc/symbian/nearfieldtagoperationcallback_symbian.h \
nfc/symbian/nearfieldtagndefrequest_symbian.h \
nfc/symbian/nearfieldtagcommandrequest_symbian.h \
nfc/symbian/nearfieldtagcommandsrequest_symbian.h \
nfc/symbian/debug.h \
nfc/symbian/nearfieldtagimplcommon_symbian.h
SOURCES += \
nfc/qnearfieldmanager_symbian.cpp \
nfc/qnearfieldtagtype1_symbian.cpp \
nfc/qnearfieldtagtype2_symbian.cpp \
nfc/qllcpsocket_symbian_p.cpp \
nfc/qllcpserver_symbian_p.cpp \
nfc/qllcpstate_symbian_p.cpp \
nfc/qnearfieldtagtype3_symbian.cpp \
nfc/qnearfieldtagtype4_symbian.cpp \
nfc/qnearfieldtagmifare_symbian.cpp \
nfc/qnearfieldllcpdevice_symbian.cpp \
nfc/symbian/nearfieldmanager_symbian.cpp \
nfc/symbian/nearfieldtag_symbian.cpp \
nfc/symbian/nearfieldndeftarget_symbian.cpp \
nfc/symbian/nearfieldtargetfactory_symbian.cpp \
nfc/symbian/nearfieldutility_symbian.cpp \
nfc/symbian/llcpserver_symbian.cpp \
nfc/symbian/llcpsockettype1_symbian.cpp \
nfc/symbian/llcpsockettype2_symbian.cpp \
nfc/symbian/nearfieldtagasyncrequest_symbian.cpp \
nfc/symbian/nearfieldtagndefrequest_symbian.cpp \
nfc/symbian/nearfieldtagcommandrequest_symbian.cpp \
nfc/symbian/nearfieldtagcommandsrequest_symbian.cpp \
nfc/symbian/nearfieldtagimplcommon_symbian.cpp
INCLUDEPATH += $${EPOCROOT}epoc32/include/mw
LIBS += -lnfc -lndef -lndefaccess -lnfcdiscoveryservice -lllcp -lnfctagextension
}
isEmpty(NFC_BACKEND_AVAILABLE) {
# unsupported platform stub
PRIVATE_HEADERS += \
nfc/qllcpsocket_p.h \
nfc/qllcpserver_p.h \
nfc/qnearfieldmanagerimpl_p.h
SOURCES += \
nfc/qllcpsocket_p.cpp \
nfc/qllcpserver_p.cpp \
nfc/qnearfieldmanagerimpl_p.cpp
}
INCLUDEPATH += $$PWD
|