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
|
|
|
|
2024-01-19 14:14:18 +01:00
|
|
|
Index: shaderc-2023.8/CMakeLists.txt
|
2021-01-11 02:07:24 +01:00
|
|
|
===================================================================
|
2024-01-19 14:14:18 +01:00
|
|
|
--- shaderc-2023.8.orig/CMakeLists.txt
|
|
|
|
+++ shaderc-2023.8/CMakeLists.txt
|
|
|
|
@@ -124,7 +124,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)
|
2024-01-19 14:14:18 +01:00
|
|
|
@@ -135,7 +134,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).")
|
|
|
|
|
2024-01-19 14:14:18 +01:00
|
|
|
Index: shaderc-2023.8/libshaderc/CMakeLists.txt
|
2021-01-11 02:07:24 +01:00
|
|
|
===================================================================
|
2024-01-19 14:14:18 +01:00
|
|
|
--- shaderc-2023.8.orig/libshaderc/CMakeLists.txt
|
|
|
|
+++ shaderc-2023.8/libshaderc/CMakeLists.txt
|
2023-03-29 12:07:30 +02:00
|
|
|
@@ -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})
|
2024-01-19 14:14:18 +01:00
|
|
|
Index: shaderc-2023.8/utils/update_build_version.sh
|
2023-03-29 12:07:30 +02:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2024-01-19 14:14:18 +01:00
|
|
|
+++ shaderc-2023.8/utils/update_build_version.sh
|
2023-03-29 12:07:30 +02:00
|
|
|
@@ -0,0 +1 @@
|
|
|
|
+#!/bin/true
|