diff options
Diffstat (limited to 'src/bluetooth/bluetooth.pro')
-rw-r--r-- | src/bluetooth/bluetooth.pro | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/src/bluetooth/bluetooth.pro b/src/bluetooth/bluetooth.pro index 1857e983..63e9ec11 100644 --- a/src/bluetooth/bluetooth.pro +++ b/src/bluetooth/bluetooth.pro @@ -153,14 +153,10 @@ config_bluez:qtHaveModule(dbus) { qlowenergycontroller_osx.mm \ qlowenergyservice_osx.mm - SOURCES += \ - qlowenergycontroller_p.cpp - PRIVATE_HEADERS += qbluetoothsocket_osx_p.h \ qbluetoothserver_osx_p.h \ qbluetoothtransferreply_osx_p.h \ qbluetoothtransferreply_osx_p.h \ - qbluetoothdevicediscoverytimer_osx_p.h \ qlowenergycontroller_osx_p.h SOURCES -= qbluetoothdevicediscoveryagent.cpp @@ -182,8 +178,7 @@ config_bluez:qtHaveModule(dbus) { qlowenergyservice_osx.mm PRIVATE_HEADERS += \ - qlowenergycontroller_osx_p.h \ - qbluetoothdevicediscoverytimer_osx_p.h + qlowenergycontroller_osx_p.h include(osx/osxbt.pri) SOURCES += \ @@ -198,6 +193,21 @@ config_bluez:qtHaveModule(dbus) { SOURCES -= qlowenergycontroller_p.cpp SOURCES -= qlowenergyservice.cpp SOURCES -= qlowenergycontroller.cpp +} else:if(winphone|winrt-*-msvc2015) { + DEFINES += QT_WINRT_BLUETOOTH + QT += core-private + + # remove dummy warning once platform port is complete + include(dummy/dummy.pri) + + SOURCES += \ + qbluetoothdevicediscoveryagent_winrt.cpp \ + qbluetoothlocaldevice_p.cpp \ + qbluetoothserver_p.cpp \ + qbluetoothservicediscoveryagent_p.cpp \ + qbluetoothserviceinfo_p.cpp \ + qbluetoothsocket_p.cpp \ + qlowenergycontroller_winrt.cpp } else { message("Unsupported Bluetooth platform, will not build a working QtBluetooth library.") message("Either no Qt D-Bus found or no BlueZ headers available.") @@ -212,6 +222,12 @@ config_bluez:qtHaveModule(dbus) { qlowenergycontroller_p.cpp } +winrt-*-msvc2015 { + MODULE_WINRT_CAPABILITIES_DEVICE += \ + bluetooth.genericAttributeProfile \ + bluetooth.rfcomm +} + OTHER_FILES += HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS |