shaderc-2020.4-system-glslang.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Index: shaderc-2020.4/libshaderc_util/CMakeLists.txt
  2. ===================================================================
  3. --- shaderc-2020.4/libshaderc_util/CMakeLists.txt
  4. +++ shaderc-2020.4/libshaderc_util/CMakeLists.txt 2020-12-17 16:37:40.662060059 +0100
  5. @@ -46,7 +46,7 @@
  6. find_package(Threads)
  7. target_link_libraries(shaderc_util PRIVATE
  8. - glslang OSDependent OGLCompiler HLSL glslang SPIRV
  9. + glslang HLSL SPIRV
  10. SPIRV-Tools-opt ${CMAKE_THREAD_LIBS_INIT})
  11. shaderc_add_tests(
  12. Index: shaderc-2020.4/libshaderc/CMakeLists.txt
  13. ===================================================================
  14. --- shaderc-2020.4/libshaderc/CMakeLists.txt
  15. +++ shaderc-2020.4/libshaderc/CMakeLists.txt 2020-12-17 16:37:27.847177220 +0100
  16. @@ -62,7 +62,7 @@
  17. find_package(Threads)
  18. set(SHADERC_LIBS
  19. - glslang OSDependent OGLCompiler glslang ${CMAKE_THREAD_LIBS_INIT}
  20. + glslang ${CMAKE_THREAD_LIBS_INIT}
  21. shaderc_util
  22. SPIRV # from glslang
  23. SPIRV-Tools
  24. Index: shaderc-2020.4/glslc/CMakeLists.txt
  25. ===================================================================
  26. --- shaderc-2020.4/glslc/CMakeLists.txt
  27. +++ shaderc-2020.4/glslc/CMakeLists.txt 2020-12-17 16:37:17.558271289 +0100
  28. @@ -43,7 +43,7 @@
  29. endif(SHADERC_ENABLE_WGSL_OUTPUT)
  30. target_link_libraries(glslc PRIVATE
  31. - glslang OSDependent OGLCompiler HLSL glslang SPIRV # Glslang libraries
  32. + glslang HLSL SPIRV # Glslang libraries
  33. $<$<BOOL:${SHADERC_ENABLE_WGSL_OUTPUT}>:libtint> # Tint libraries, optional
  34. shaderc_util shaderc # internal Shaderc libraries
  35. ${CMAKE_THREAD_LIBS_INIT})