shaderc/0001-Use-system-third-party-libs.patch

47 lines
1.6 KiB
Diff
Raw Normal View History

---
CMakeLists.txt | 3 +--
libshaderc/CMakeLists.txt | 2 ++
utils/update_build_version.sh | 1 +
3 files changed, 4 insertions(+), 2 deletions(-)
Index: shaderc-2023.8/CMakeLists.txt
===================================================================
--- shaderc-2023.8.orig/CMakeLists.txt
+++ shaderc-2023.8/CMakeLists.txt
@@ -124,7 +124,6 @@ endif(MSVC)
# Configure subdirectories.
# We depend on these for later projects, so they should come first.
-add_subdirectory(third_party)
add_subdirectory(libshaderc_util)
add_subdirectory(libshaderc)
@@ -135,7 +134,7 @@ endif()
add_custom_target(build-version
${PYTHON_EXECUTABLE}
- ${CMAKE_CURRENT_SOURCE_DIR}/utils/update_build_version.py
+ ${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.8/libshaderc/CMakeLists.txt
===================================================================
--- shaderc-2023.8.orig/libshaderc/CMakeLists.txt
+++ shaderc-2023.8/libshaderc/CMakeLists.txt
@@ -67,6 +67,8 @@ set(SHADERC_LIBS
shaderc_util
SPIRV # from glslang
SPIRV-Tools
+ SPVRemapper
+ HLSL
)
target_link_libraries(shaderc PRIVATE ${SHADERC_LIBS})
Index: shaderc-2023.8/utils/update_build_version.sh
===================================================================
--- /dev/null
+++ shaderc-2023.8/utils/update_build_version.sh
@@ -0,0 +1 @@
+#!/bin/true