summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2020-08-19 14:05:29 +0200
committerKai Koehne <kai.koehne@qt.io>2020-08-25 21:13:08 +0200
commitdb21bad936a761f475145886f1e06dfcfa11eb80 (patch)
treedf6c3fe9993e7550fd5a4ef8ccee39438d85166d /src/gui
parent24af3ebef3dc4046bc6ea38b88bb5a65ea5cbb46 (diff)
Port headersclean check to CMake
Configure Qt with -DQT_FEATURE_headersclean=ON to enable the check. There will be separate target for each module include (e.g. QtCore_header_check), but the check will also be done when the module is built for the first time. There are notable differences to the qmake version: - the build does not pick up anymore default defines or flags from the module, or Qt. Instead options like -fPIC they have to be listed explicitly. Also for this reason, we have to skip the vulkan-related headers from the check, since vulkan/vulkan.h is not necessarily in the compiler's default search path. - some checks for nowadays unsupported compiler versions are removed. - -Wdouble-promotion -Wshorten-64-to-32 is not added for clang builds; the qmake code path did never enforce that on CI machines (it was non-Apple clang only), and the check currently fails on these configurations. Fixes: QTBUG-82615 Change-Id: I1cd303677b1472116910b6c27748f96436feb35e Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/vulkan/qvulkaninstance.h1
-rw-r--r--src/gui/vulkan/qvulkanwindow.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/vulkan/qvulkaninstance.h b/src/gui/vulkan/qvulkaninstance.h
index ed3a4a002e..698285d12e 100644
--- a/src/gui/vulkan/qvulkaninstance.h
+++ b/src/gui/vulkan/qvulkaninstance.h
@@ -44,6 +44,7 @@
#if 0
#pragma qt_no_master_include
+#pragma qt_sync_skip_header_check
#endif
#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
diff --git a/src/gui/vulkan/qvulkanwindow.h b/src/gui/vulkan/qvulkanwindow.h
index 8ce968d8af..4325b6317d 100644
--- a/src/gui/vulkan/qvulkanwindow.h
+++ b/src/gui/vulkan/qvulkanwindow.h
@@ -44,6 +44,7 @@
#if 0
#pragma qt_no_master_include
+#pragma qt_sync_skip_header_check
#endif
#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)