Needed by mpv. SUMMARY="Collection of tools, libraries, and tests for Vulkan shader compilation"
-- Takashi Yano <takashi.y...@nifty.ne.jp>
Patch for using external third party libraries. --- origsrc/shaderc/CMakeLists.txt 2025-02-12 23:32:00.000000000 +0900 +++ src/shaderc/CMakeLists.txt 2025-02-13 11:43:59.548810800 +0900 @@ -120,7 +120,9 @@ endif(MSVC) # Configure subdirectories. # We depend on these for later projects, so they should come first. -add_subdirectory(third_party) +#add_subdirectory(third_party) +set(spirv-tools_SOURCE_DIR "none") +set(glslang_SOURCE_DIR "none") add_subdirectory(libshaderc_util) add_subdirectory(libshaderc) --- origsrc/shaderc/libshaderc_util/CMakeLists.txt 2025-02-12 23:32:00.000000000 +0900 +++ src/shaderc/libshaderc_util/CMakeLists.txt 2025-02-13 11:41:09.033657000 +0900 @@ -47,7 +47,7 @@ add_definitions(-DENABLE_HLSL) find_package(Threads) target_link_libraries(shaderc_util PRIVATE glslang SPIRV - SPIRV-Tools-opt ${CMAKE_THREAD_LIBS_INIT}) + SPIRV-Tools-opt SPIRV-Tools ${CMAKE_THREAD_LIBS_INIT}) shaderc_add_tests( TEST_PREFIX shaderc_util --- origsrc/shaderc/libshaderc_util/src/compiler.cc 2025-02-12 23:32:00.000000000 +0900 +++ src/shaderc/libshaderc_util/src/compiler.cc 2025-02-13 11:41:09.036669800 +0900 @@ -20,7 +20,7 @@ #include <thread> #include <tuple> -#include "SPIRV/GlslangToSpv.h" +#include <glslang/SPIRV/GlslangToSpv.h> #include "libshaderc_util/format.h" #include "libshaderc_util/io_shaderc.h" #include "libshaderc_util/message.h" --- origsrc/shaderc/utils/update_build_version.py 2025-02-12 23:32:01.000000000 +0900 +++ src/shaderc/utils/update_build_version.py 2025-02-13 11:41:09.039657000 +0900 @@ -133,7 +133,7 @@ def main(): sys.argv[0]))) sys.exit(1) - projects = ['shaderc', 'spirv-tools', 'glslang'] + projects = ['shaderc'] new_content = ''.join([ '"{}\\n"\n'.format(get_version_string(p, d)) for (p, d) in zip(projects, sys.argv[1:])
NAME=shaderc VERSION=2025.1 RELEASE=1 LICENSE="Apache-2.0" CATEGORY="Graphics" SUMMARY="Collection of tools, libraries, and tests for Vulkan shader compilation" HOMEPAGE="https://github.com/google/shaderc" GIT_URI="https://github.com/google/shaderc.git" GIT_TAG="v${VERSION}" inherit git cmake PATCH_URI="external-3rd-party-libs.patch" CYGCMAKE_ARGS="-DSHADERC_SKIP_TESTS=1" PKG_NAMES="shaderc libshaderc1 shaderc-devel" shaderc_CONTENTS="usr/bin/glslc.exe usr/share" libshaderc1_CONTENTS="usr/bin/cygshaderc_shared-1.dll" shaderc_devel_CONTENTS="usr/lib usr/include" BUILD_REQUIRES="glslang-devel SPIRV-Tools-devel"