2021-03-09 11:59:54 +01:00
|
|
|
---
|
2023-03-29 12:07:30 +02:00
|
|
|
CMakeLists.txt | 3 +--
|
|
|
|
libshaderc/CMakeLists.txt | 2 ++
|
|
|
|
utils/update_build_version.sh | 1 +
|
|
|
|
3 files changed, 4 insertions(+), 2 deletions(-)
|
2021-03-09 11:59:54 +01:00
|
|
|
|
2023-03-29 12:07:30 +02:00
|
|
|
Index: shaderc-2023.2/CMakeLists.txt
|
2021-01-11 02:07:24 +01:00
|
|
|
===================================================================
|
2023-03-29 12:07:30 +02:00
|
|
|
--- shaderc-2023.2.orig/CMakeLists.txt
|
|
|
|
+++ shaderc-2023.2/CMakeLists.txt
|
|
|
|
@@ -130,7 +130,6 @@ endif(MSVC)
|
2018-12-15 00:22:44 +01:00
|
|
|
|
|
|
|
# Configure subdirectories.
|
|
|
|
# We depend on these for later projects, so they should come first.
|
|
|
|
-add_subdirectory(third_party)
|
2019-06-05 14:21:22 +02:00
|
|
|
|
2021-01-11 02:07:24 +01:00
|
|
|
add_subdirectory(libshaderc_util)
|
|
|
|
add_subdirectory(libshaderc)
|
2023-03-29 12:07:30 +02:00
|
|
|
@@ -141,7 +140,7 @@ endif()
|
2019-06-05 14:21:22 +02:00
|
|
|
|
2023-03-29 12:07:30 +02:00
|
|
|
add_custom_target(build-version
|
|
|
|
${PYTHON_EXECUTABLE}
|
2018-12-15 00:22:44 +01:00
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/utils/update_build_version.py
|
2023-03-29 12:07:30 +02:00
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/utils/update_build_version.sh
|
|
|
|
${shaderc_SOURCE_DIR} ${spirv-tools_SOURCE_DIR} ${glslang_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/build-version.inc
|
|
|
|
COMMENT "Update build-version.inc in the Shaderc build directory (if necessary).")
|
|
|
|
|
|
|
|
Index: shaderc-2023.2/libshaderc/CMakeLists.txt
|
2021-01-11 02:07:24 +01:00
|
|
|
===================================================================
|
2023-03-29 12:07:30 +02:00
|
|
|
--- shaderc-2023.2.orig/libshaderc/CMakeLists.txt
|
|
|
|
+++ shaderc-2023.2/libshaderc/CMakeLists.txt
|
|
|
|
@@ -67,6 +67,8 @@ set(SHADERC_LIBS
|
2018-12-15 00:22:44 +01:00
|
|
|
shaderc_util
|
|
|
|
SPIRV # from glslang
|
|
|
|
SPIRV-Tools
|
|
|
|
+ SPVRemapper
|
|
|
|
+ HLSL
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(shaderc PRIVATE ${SHADERC_LIBS})
|
2023-03-29 12:07:30 +02:00
|
|
|
Index: shaderc-2023.2/utils/update_build_version.sh
|
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
|
|
|
+++ shaderc-2023.2/utils/update_build_version.sh
|
|
|
|
@@ -0,0 +1 @@
|
|
|
|
+#!/bin/true
|