summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Masoud Abdol <amir.abdol@qt.io>2023-03-30 12:56:19 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-04-03 08:59:39 +0000
commitc3b2ec59784e9e0534fd4340fe2d52bc57874b75 (patch)
tree224b473282bcdd03d0150583dd32d146d4599edc
parent42990830c3d845458483f31ba36c2fa59d0e3f9f (diff)
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. Task-number: QTBUG-109394 Change-Id: I3d59f09caca3e56b6961fb6ffcdf8233369313d2 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> (cherry picked from commit 5894037fd5897d60103f3a6a9d27784f3747f437) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/bluetooth/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bluetooth/CMakeLists.txt b/src/bluetooth/CMakeLists.txt
index 992fc21a..4c7e0f63 100644
--- a/src/bluetooth/CMakeLists.txt
+++ b/src/bluetooth/CMakeLists.txt
@@ -234,6 +234,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