shaderc/0001-Use-system-third-party-libs.patch
Jan Engelhardt 28fffee4c1 Accepting request 827161 from home:malcolmlewis:branches:X11:Wayland
- Updated to release 2020.2:
  * Remove VS2013 support.
  * Support both posix and non-posix MinGW toolchains.
  * Support optionally building Tint tooling for WGSL.
  * Add -h option to glslc, spvc; same as --help.
  * Add source file license checker.
  * BUILD.gn improvements.
  * Update to Glslang generator 9.
  * Add interface to support 16bit types in HLSL
  * Add glslc hidden experimental option -mfmt=wgsl; requires Tint.
  * Add minimum buffer size for Dawn reflection.
- Changes from release 2020.1:
  * Added warning signs about unsupported downloads,
    (gh#google/shaderc#1041).
  * Added .NET bindings to README.md (gh#google/shaderc#1060).
  * Only add -fPIC if supported by the compiler,
    (gh#google/shaderc#1061).
  * Removed Singleton pattern around access to glslang,
    (gh#google/shaderc#1059).
  * Added concept of comparison sampler to API,
    (gh#google/shaderc#1036).
  * Added support for options.hlsl.nonwritable_uav_texture_as_srv,
    (gh#google/shaderc#1048).
  * Support forcing storage buffers to be always declared as UAV,
    (gh#google/shaderc#1076).
- Rebase 0001-Use-system-third-party-libs.patch.

OBS-URL: https://build.opensuse.org/request/show/827161
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/shaderc?expand=0&rev=13
2020-08-17 11:33:39 +00:00

36 lines
1.2 KiB
Diff

diff -Naur a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt 2020-07-23 16:43:08.000000000 -0500
+++ b/CMakeLists.txt 2020-08-16 20:18:41.235394189 -0500
@@ -113,7 +113,6 @@
# Configure subdirectories.
# We depend on these for later projects, so they should come first.
-add_subdirectory(third_party)
if(SHADERC_ENABLE_SPVC)
add_subdirectory(libshaderc_spvc)
@@ -124,11 +123,6 @@
add_subdirectory(glslc)
add_subdirectory(examples)
-add_custom_target(build-version
- ${PYTHON_EXECUTABLE}
- ${CMAKE_CURRENT_SOURCE_DIR}/utils/update_build_version.py
- ${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).")
function(define_pkg_config_file NAME LIBS)
add_custom_target(${NAME}-pkg-config ALL
diff -Naur a/libshaderc/CMakeLists.txt b/libshaderc/CMakeLists.txt
--- a/libshaderc/CMakeLists.txt 2020-07-23 16:43:08.000000000 -0500
+++ b/libshaderc/CMakeLists.txt 2020-08-16 20:22:18.420735391 -0500
@@ -66,6 +66,8 @@
shaderc_util
SPIRV # from glslang
SPIRV-Tools
+ SPVRemapper
+ HLSL
)
target_link_libraries(shaderc PRIVATE ${SHADERC_LIBS})