Build Bluetooth and NFC only for Blackberry
[qt:qtconnectivity.git] / src / bluetooth / bluetooth.pro
1 TARGET = QtBluetooth
2 QT = core
3 QT_PRIVATE = concurrent
4
5 QMAKE_DOCS = $$PWD/doc/qtbluetooth.qdocconf
6 OTHER_FILES += doc/src/*.qdoc   # show .qdoc files in Qt Creator
7
8 load(qt_module)
9
10 PUBLIC_HEADERS += \
11     qbluetoothglobal.h \
12     qbluetoothaddress.h\
13     qbluetoothhostinfo.h \
14     qbluetoothuuid.h\
15     qbluetoothdeviceinfo.h\
16     qbluetoothserviceinfo.h\
17     qbluetoothdevicediscoveryagent.h\
18     qbluetoothservicediscoveryagent.h\
19     qbluetoothsocket.h\
20     qbluetoothserver.h \
21     qbluetooth.h \
22     qbluetoothlocaldevice.h \
23     qbluetoothtransfermanager.h \
24     qbluetoothtransferrequest.h \
25     qbluetoothtransferreply.h
26
27 PRIVATE_HEADERS += \
28     qbluetoothaddress_p.h\
29     qbluetoothhostinfo_p.h \
30     qbluetoothdeviceinfo_p.h\
31     qbluetoothserviceinfo_p.h\
32     qbluetoothdevicediscoveryagent_p.h\
33     qbluetoothservicediscoveryagent_p.h\
34     qbluetoothsocket_p.h\
35     qbluetoothserver_p.h\
36     qbluetoothtransferreply_p.h \
37     qbluetoothtransferrequest_p.h \
38     qprivatelinearbuffer_p.h \
39     qbluetoothlocaldevice_p.h
40
41 SOURCES += \
42     qbluetoothaddress.cpp\
43     qbluetoothhostinfo.cpp \
44     qbluetoothuuid.cpp\
45     qbluetoothdeviceinfo.cpp\
46     qbluetoothserviceinfo.cpp\
47     qbluetoothdevicediscoveryagent.cpp\
48     qbluetoothservicediscoveryagent.cpp\
49     qbluetoothsocket.cpp\
50     qbluetoothserver.cpp \
51     qbluetoothlocaldevice.cpp \
52     qbluetooth.cpp \
53     qbluetoothtransfermanager.cpp \
54     qbluetoothtransferrequest.cpp \
55     qbluetoothtransferreply.cpp
56
57 config_bluez:qtHaveModule(dbus) {
58     QT *= dbus
59     DEFINES += QT_BLUEZ_BLUETOOTH
60
61     include(bluez/bluez.pri)
62
63     PRIVATE_HEADERS += \
64         qbluetoothtransferreply_bluez_p.h
65
66     SOURCES += \
67         qbluetoothserviceinfo_bluez.cpp \
68         qbluetoothdevicediscoveryagent_bluez.cpp\
69         qbluetoothservicediscoveryagent_bluez.cpp \
70         qbluetoothsocket_bluez.cpp \
71         qbluetoothserver_bluez.cpp \
72         qbluetoothlocaldevice_bluez.cpp \
73         qbluetoothtransferreply_bluez.cpp
74
75 } else:CONFIG(blackberry) {
76     DEFINES += QT_QNX_BLUETOOTH #BT_BBPPSDEBUG
77
78     include(qnx/qnx.pri)
79
80     PRIVATE_HEADERS += \
81         qbluetoothtransferreply_qnx_p.h
82
83     SOURCES += \
84         qbluetoothdevicediscoveryagent_qnx.cpp \
85         qbluetoothlocaldevice_qnx.cpp \
86         qbluetoothserviceinfo_qnx.cpp \
87         qbluetoothservicediscoveryagent_qnx.cpp \
88         qbluetoothsocket_qnx.cpp \
89         qbluetoothserver_qnx.cpp \
90         qbluetoothtransferreply_qnx.cpp
91
92 } else {
93     message("Unsupported bluetooth platform, will not build a working QBluetooth library")
94     message("Either no Qt dBus found or no Bluez headers")
95     SOURCES += \
96         qbluetoothdevicediscoveryagent_p.cpp \
97         qbluetoothlocaldevice_p.cpp \
98         qbluetoothserviceinfo_p.cpp \
99         qbluetoothservicediscoveryagent_p.cpp \
100         qbluetoothsocket_p.cpp \
101         qbluetoothserver_p.cpp
102
103 }
104
105 OTHER_FILES +=
106
107 HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS
108
109