summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/shaderc/files/0001-cmake-de-vendor-libs-and-disable-git-versioning.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/shaderc/files/0001-cmake-de-vendor-libs-and-disable-git-versioning.patch')
-rw-r--r--meta/recipes-graphics/shaderc/files/0001-cmake-de-vendor-libs-and-disable-git-versioning.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-graphics/shaderc/files/0001-cmake-de-vendor-libs-and-disable-git-versioning.patch b/meta/recipes-graphics/shaderc/files/0001-cmake-de-vendor-libs-and-disable-git-versioning.patch
new file mode 100644
index 0000000000..40cc84df26
--- /dev/null
+++ b/meta/recipes-graphics/shaderc/files/0001-cmake-de-vendor-libs-and-disable-git-versioning.patch
@@ -0,0 +1,48 @@
1From a07ac322a5a5fd4f0339913eb4456321ad1a69fd Mon Sep 17 00:00:00 2001
2From: Jose Quaresma <quaresma.jose@gmail.com>
3Date: Sat, 17 Oct 2020 12:51:50 +0100
4Subject: [PATCH] cmake: de-vendor libs and disable git versioning
5
6Upstream-Status: Inappropriate [configuration]
7
8Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
9
10---
11 CMakeLists.txt | 2 --
12 glslc/CMakeLists.txt | 1 -
13 glslc/src/build-version.inc | 0
14 3 files changed, 3 deletions(-)
15 create mode 100644 glslc/src/build-version.inc
16
17diff --git a/CMakeLists.txt b/CMakeLists.txt
18index 5c74cd8..9451fbc 100644
19--- a/CMakeLists.txt
20+++ b/CMakeLists.txt
21@@ -102,12 +102,10 @@ endif(MSVC)
22
23 # Configure subdirectories.
24 # We depend on these for later projects, so they should come first.
25-add_subdirectory(third_party)
26
27 add_subdirectory(libshaderc_util)
28 add_subdirectory(libshaderc)
29 add_subdirectory(glslc)
30-add_subdirectory(examples)
31
32 add_custom_target(build-version
33 ${PYTHON_EXECUTABLE}
34diff --git a/glslc/CMakeLists.txt b/glslc/CMakeLists.txt
35index 31664d1..358d91b 100644
36--- a/glslc/CMakeLists.txt
37+++ b/glslc/CMakeLists.txt
38@@ -53,7 +53,6 @@ shaderc_default_compile_options(glslc_exe)
39 target_include_directories(glslc_exe PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/.. ${spirv-tools_SOURCE_DIR}/include)
40 set_target_properties(glslc_exe PROPERTIES OUTPUT_NAME glslc)
41 target_link_libraries(glslc_exe PRIVATE glslc shaderc_util shaderc)
42-add_dependencies(glslc_exe build-version)
43
44 shaderc_add_tests(
45 TEST_PREFIX glslc
46diff --git a/glslc/src/build-version.inc b/glslc/src/build-version.inc
47new file mode 100644
48index 0000000..e69de29