diff options
author | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-03-30 12:56:19 +0200 |
---|---|---|
committer | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-04-03 10:25:29 +0200 |
commit | 5894037fd5897d60103f3a6a9d27784f3747f437 (patch) | |
tree | 0eaed4b396e7f9adacc49f44c65159b3029b9864 | |
parent | 0d1db5eabc9df56c92b1ef836060bf5232524e9e (diff) | |
download | qtconnectivity-5894037fd5897d60103f3a6a9d27784f3747f437.tar.gz |
Exclude source files from unity build
When building with Unity, Windows Bluetooth symbols from WIN32/COM and
more modern WinRT APIs, e.g., AsyncStatus, start to confuse the compiler
as related source files start to be pooled together.
Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: I3d59f09caca3e56b6961fb6ffcdf8233369313d2
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
-rw-r--r-- | src/bluetooth/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bluetooth/CMakeLists.txt b/src/bluetooth/CMakeLists.txt index 5bff5363..45cddda3 100644 --- a/src/bluetooth/CMakeLists.txt +++ b/src/bluetooth/CMakeLists.txt @@ -235,6 +235,10 @@ elseif(QT_FEATURE_winrt_bt) qbluetoothutils_winrt.cpp qbluetoothutils_winrt_p.h qlowenergycontroller_winrt.cpp qlowenergycontroller_winrt_p.h qbluetoothdevicewatcher_winrt.cpp qbluetoothdevicewatcher_winrt_p.h + NO_UNITY_BUILD_SOURCES + qbluetoothdevicediscoveryagent_winrt.cpp + qbluetoothdevicewatcher_winrt.cpp + qbluetoothlocaldevice_winrt.cpp DEFINES QT_WINRT_BLUETOOTH LIBRARIES |