summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/shaderc/files/0001-cmake-disable-building-external-dependencies.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/shaderc/files/0001-cmake-disable-building-external-dependencies.patch')
-rw-r--r--meta/recipes-graphics/shaderc/files/0001-cmake-disable-building-external-dependencies.patch18
1 files changed, 8 insertions, 10 deletions
diff --git a/meta/recipes-graphics/shaderc/files/0001-cmake-disable-building-external-dependencies.patch b/meta/recipes-graphics/shaderc/files/0001-cmake-disable-building-external-dependencies.patch
index cc9a400028..35855bd832 100644
--- a/meta/recipes-graphics/shaderc/files/0001-cmake-disable-building-external-dependencies.patch
+++ b/meta/recipes-graphics/shaderc/files/0001-cmake-disable-building-external-dependencies.patch
@@ -1,7 +1,7 @@
1From 071a9d71bea91bbefcf15e061fc87e53568f3188 Mon Sep 17 00:00:00 2001 1From d3fbd6b9427f29606540528d17fe02930cd78d0c Mon Sep 17 00:00:00 2001
2From: Jose Quaresma <quaresma.jose@gmail.com> 2From: Jose Quaresma <quaresma.jose@gmail.com>
3Date: Sat, 13 Feb 2021 00:45:56 +0000 3Date: Sat, 13 Feb 2021 00:45:56 +0000
4Subject: [PATCH 1/3] cmake: disable building external dependencies 4Subject: [PATCH] cmake: disable building external dependencies
5 5
6- add cmake option to disable the build of the third_party dependencies 6- add cmake option to disable the build of the third_party dependencies
7- change the update_build_version.py to use pkg-config when third_party dependencies not found 7- change the update_build_version.py to use pkg-config when third_party dependencies not found
@@ -9,24 +9,25 @@ Subject: [PATCH 1/3] cmake: disable building external dependencies
9Upstream-Status: Inappropriate [OE-core specific] 9Upstream-Status: Inappropriate [OE-core specific]
10 10
11Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> 11Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
12
12--- 13---
13 CMakeLists.txt | 13 ++++++++++--- 14 CMakeLists.txt | 13 ++++++++++---
14 utils/update_build_version.py | 22 +++++++++++++++------- 15 utils/update_build_version.py | 22 +++++++++++++++-------
15 2 files changed, 25 insertions(+), 10 deletions(-) 16 2 files changed, 25 insertions(+), 10 deletions(-)
16 17
17diff --git a/CMakeLists.txt b/CMakeLists.txt 18diff --git a/CMakeLists.txt b/CMakeLists.txt
18index 5c74cd8..b358f6b 100644 19index 633c244..75b01da 100644
19--- a/CMakeLists.txt 20--- a/CMakeLists.txt
20+++ b/CMakeLists.txt 21+++ b/CMakeLists.txt
21@@ -41,6 +41,7 @@ else() 22@@ -67,6 +67,7 @@ else()
22 endif() 23 endif()
23 24
24 option(SHADERC_ENABLE_WERROR_COMPILE "Enable passing -Werror to compiler, if available" ON) 25 option(SHADERC_ENABLE_WERROR_COMPILE "Enable passing -Werror to compiler, if available" ON)
25+option(BUILD_EXTERNAL "Build external dependencies in /third_party" ON) 26+option(BUILD_EXTERNAL "Build external dependencies in /third_party" ON)
26 27
27 set (CMAKE_CXX_STANDARD 11) 28 set (CMAKE_CXX_STANDARD 17)
28 29
29@@ -101,8 +102,14 @@ endif(MSVC) 30@@ -129,8 +130,14 @@ endif(MSVC)
30 31
31 32
32 # Configure subdirectories. 33 # Configure subdirectories.
@@ -43,7 +44,7 @@ index 5c74cd8..b358f6b 100644
43 44
44 add_subdirectory(libshaderc_util) 45 add_subdirectory(libshaderc_util)
45 add_subdirectory(libshaderc) 46 add_subdirectory(libshaderc)
46@@ -112,7 +119,7 @@ add_subdirectory(examples) 47@@ -142,7 +149,7 @@ endif()
47 add_custom_target(build-version 48 add_custom_target(build-version
48 ${PYTHON_EXECUTABLE} 49 ${PYTHON_EXECUTABLE}
49 ${CMAKE_CURRENT_SOURCE_DIR}/utils/update_build_version.py 50 ${CMAKE_CURRENT_SOURCE_DIR}/utils/update_build_version.py
@@ -104,6 +105,3 @@ index 5785390..f72b762 100755
104 mkdir_p(os.path.dirname(output_file)) 105 mkdir_p(os.path.dirname(output_file))
105 106
106 if os.path.isfile(output_file): 107 if os.path.isfile(output_file):
107--
1082.30.1
109