SHA256
1
0
forked from pool/vulkan-tools
vulkan-tools/0001-build-add-missing-wayland-client-search-path-for-moc.patch

47 lines
1.9 KiB
Diff

From 334a87efcefbdee39a4b383a0807102d4e78387d Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Mon, 12 Nov 2018 18:32:06 +0100
Subject: [PATCH] build: add missing wayland-client search path for mock_icd
build
References: https://github.com/KhronosGroup/Vulkan-Tools/pull/94
Fix issues #1444 and #1989 of Vulkan-LoaderAndValidationLayers **again**.
[ 82%] Building CXX object icd/CMakeFiles/VkICD_mock_icd.dir/mock_icd.cpp.o
cd $HOME/Vulkan-Tools/icd && /usr/bin/c++
-DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_WAYLAND_KHX
-DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_XCB_KHX
-DVK_USE_PLATFORM_XLIB_KHR -DVK_USE_PLATFORM_XLIB_KHX
-DVK_USE_PLATFORM_XLIB_XRANDR_EXT -DVkICD_mock_icd_EXPORTS
-I$HOME/Vulkan-Tools/icd -I$HOME/Vulkan-Tools -Wall -Wextra
-Wno-unused-parameter -Wno-missing-field-initializers
-fno-strict-aliasing -fno-builtin-memcmp -Wimplicit-fallthrough=0
-std=c++11 -fno-rtti -fvisibility=hidden -Wpointer-arith
-Wno-unused-function -Wno-sign-compare -fPIC -o
CMakeFiles/VkICD_mock_icd.dir/mock_icd.cpp.o -c
$HOME/Vulkan-Tools/icd/mock_icd.cpp
In file included from /usr/include/vulkan/vk_icd.h:26,
from $HOME/Vulkan-Tools/icd/mock_icd.h:29,
from $HOME/Vulkan-Tools/icd/mock_icd.cpp:22:
/usr/include/vulkan/vulkan.h:48:10: fatal error: wayland-client.h: No such file or directory
#include <wayland-client.h>
---
icd/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/icd/CMakeLists.txt b/icd/CMakeLists.txt
index 21abf1c3..b569ab35 100644
--- a/icd/CMakeLists.txt
+++ b/icd/CMakeLists.txt
@@ -158,6 +158,7 @@ endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
${VulkanHeaders_INCLUDE_DIR}
+ ${WAYLAND_CLIENT_INCLUDE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${PROJECT_BINARY_DIR}
${CMAKE_BINARY_DIR})
--
2.19.1