shaderc/0001-Drop-third-party-code-in-CMakeLists.txt.patch

25 lines
1.1 KiB
Diff
Raw Normal View History

2021-03-05 12:53:55 +00:00
diff -up shaderc-24275a11d81a6b33ef345878f8a4ef929c95a116/CMakeLists.txt.orig shaderc-24275a11d81a6b33ef345878f8a4ef929c95a116/CMakeLists.txt
--- shaderc-24275a11d81a6b33ef345878f8a4ef929c95a116/CMakeLists.txt.orig 2021-03-05 13:50:35.469018657 +0100
+++ shaderc-24275a11d81a6b33ef345878f8a4ef929c95a116/CMakeLists.txt 2021-03-05 13:52:02.679524176 +0100
@@ -112,20 +112,10 @@ endif(MSVC)
2018-10-02 16:08:23 +00:00
# Configure subdirectories.
# We depend on these for later projects, so they should come first.
-add_subdirectory(third_party)
2021-03-05 12:53:55 +00:00
add_subdirectory(libshaderc_util)
add_subdirectory(libshaderc)
2018-10-02 16:08:23 +00:00
add_subdirectory(glslc)
2021-03-05 12:53:55 +00:00
-if(${SHADERC_ENABLE_EXAMPLES})
- add_subdirectory(examples)
-endif()
-
2018-10-02 16:08:23 +00:00
-add_custom_target(build-version
- ${Python_EXECUTABLE}
2018-10-02 16:08:23 +00:00
- ${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
2018-10-02 16:08:23 +00:00
- COMMENT "Update build-version.inc in the Shaderc build directory (if necessary).")
2021-03-05 12:53:55 +00:00
function(define_pkg_config_file NAME LIBS)
add_custom_target(${NAME}-pkg-config ALL