Jan Engelhardt
27da714a90
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/shaderc?expand=0&rev=60
47 lines
1.6 KiB
Diff
47 lines
1.6 KiB
Diff
---
|
|
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
|