summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/shaderc/files/0003-cmake-add-option-to-skip-build-the-examples.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/shaderc/files/0003-cmake-add-option-to-skip-build-the-examples.patch')
-rw-r--r--meta/recipes-graphics/shaderc/files/0003-cmake-add-option-to-skip-build-the-examples.patch47
1 files changed, 0 insertions, 47 deletions
diff --git a/meta/recipes-graphics/shaderc/files/0003-cmake-add-option-to-skip-build-the-examples.patch b/meta/recipes-graphics/shaderc/files/0003-cmake-add-option-to-skip-build-the-examples.patch
deleted file mode 100644
index 43f9edc031..0000000000
--- a/meta/recipes-graphics/shaderc/files/0003-cmake-add-option-to-skip-build-the-examples.patch
+++ /dev/null
@@ -1,47 +0,0 @@
1From f1064e4b6cfc5955bc7e2b036f2d05540da9f09b Mon Sep 17 00:00:00 2001
2From: Jose Quaresma <quaresma.jose@gmail.com>
3Date: Sat, 13 Feb 2021 00:45:56 +0000
4Subject: [PATCH 3/3] cmake: add option to skip build the examples
5
6Upstream-Status: Backport [https://github.com/google/shaderc/commit/8d081127ee28ff5df8123c994c00bc66a57e9e9c]
7
8Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
9---
10 CMakeLists.txt | 14 +++++++++++++-
11 1 file changed, 13 insertions(+), 1 deletion(-)
12
13diff --git a/CMakeLists.txt b/CMakeLists.txt
14index b358f6b..d8a5405 100644
15--- a/CMakeLists.txt
16+++ b/CMakeLists.txt
17@@ -40,6 +40,16 @@ else()
18 message(STATUS "Configuring Shaderc to avoid building tests.")
19 endif()
20
21+option(SHADERC_SKIP_EXAMPLES "Skip building examples" ${SHADERC_SKIP_EXAMPLES})
22+if(NOT ${SHADERC_SKIP_EXAMPLES})
23+ set(SHADERC_ENABLE_EXAMPLES ON)
24+endif()
25+if(${SHADERC_ENABLE_EXAMPLES})
26+ message(STATUS "Configuring Shaderc to build examples.")
27+else()
28+ message(STATUS "Configuring Shaderc to avoid building examples.")
29+endif()
30+
31 option(SHADERC_ENABLE_WERROR_COMPILE "Enable passing -Werror to compiler, if available" ON)
32 option(BUILD_EXTERNAL "Build external dependencies in /third_party" ON)
33
34@@ -114,7 +124,9 @@ endif()
35 add_subdirectory(libshaderc_util)
36 add_subdirectory(libshaderc)
37 add_subdirectory(glslc)
38-add_subdirectory(examples)
39+if(${SHADERC_ENABLE_EXAMPLES})
40+ add_subdirectory(examples)
41+endif()
42
43 add_custom_target(build-version
44 ${PYTHON_EXECUTABLE}
45--
462.30.1
47