summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/win32/windows_vulkan_sdk.prf
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2019-04-29 12:39:52 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2019-05-05 13:15:37 +0000
commit6288c12bb4316c8970ab8437ef5beefce89f5836 (patch)
tree893b99b096681f744f5a63fb50c204d44ad74b0e /mkspecs/features/win32/windows_vulkan_sdk.prf
parent5d76529580b72ead582b6e09112b5b94c0b11113 (diff)
Resolve QMAKE_INCDIR_VULKAN on every qmake call
Do not store this variable locally, because a) it might change if the SDK location changes b) does not play well with Qt installer packages which would provide the include path of the build machine. To achieve this we introduce the (usual) magic value - for QMAKE_EXPORT_INCDIR_VULKAN to denote "do not export this value". Fixes: QTBUG-73796 Change-Id: Ied26ee12cbcdf7f5f6e1caef5d29dadf6309c5d6 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'mkspecs/features/win32/windows_vulkan_sdk.prf')
-rw-r--r--mkspecs/features/win32/windows_vulkan_sdk.prf8
1 files changed, 8 insertions, 0 deletions
diff --git a/mkspecs/features/win32/windows_vulkan_sdk.prf b/mkspecs/features/win32/windows_vulkan_sdk.prf
new file mode 100644
index 0000000000..6c08e28fe9
--- /dev/null
+++ b/mkspecs/features/win32/windows_vulkan_sdk.prf
@@ -0,0 +1,8 @@
+isEmpty(QMAKE_INCDIR_VULKAN) {
+ # Pick up the VULKAN_SDK env var set by the LunarG SDK so that the Vulkan
+ # headers are found out-of-the-box on typical Windows setups.
+ QMAKE_INCDIR_VULKAN = $$(VULKAN_SDK)\\include
+
+ # Do not export the include dir but resolve it on every qmake call.
+ QMAKE_EXPORT_INCDIR_VULKAN = -
+}