2020-02-02 22:26:12 +00:00
|
|
|
diff -up shaderc-f76bb2f09f858c3014b329961d836964e515095d/CMakeLists.txt.orig shaderc-f76bb2f09f858c3014b329961d836964e515095d/CMakeLists.txt
|
|
|
|
--- shaderc-f76bb2f09f858c3014b329961d836964e515095d/CMakeLists.txt.orig 2020-01-22 21:15:53.000000000 +0100
|
|
|
|
+++ shaderc-f76bb2f09f858c3014b329961d836964e515095d/CMakeLists.txt 2020-02-02 21:06:15.193583552 +0100
|
2020-12-26 14:38:17 +00:00
|
|
|
@@ -102,18 +102,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)
|
2020-12-26 14:38:17 +00:00
|
|
|
|
2020-08-08 21:59:51 +00:00
|
|
|
add_subdirectory(libshaderc_util)
|
|
|
|
add_subdirectory(libshaderc)
|
2018-10-02 16:08:23 +00:00
|
|
|
add_subdirectory(glslc)
|
2020-08-08 21:59:51 +00:00
|
|
|
-add_subdirectory(examples)
|
|
|
|
-
|
2018-10-02 16:08:23 +00:00
|
|
|
-add_custom_target(build-version
|
2019-06-10 15:51:37 +00:00
|
|
|
- ${PYTHON_EXECUTABLE}
|
2018-10-02 16:08:23 +00:00
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/utils/update_build_version.py
|
2020-02-02 22:26:12 +00:00
|
|
|
- ${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).")
|
2020-12-26 14:38:17 +00:00
|
|
|
|
2019-06-10 15:51:37 +00:00
|
|
|
function(define_pkg_config_file NAME LIBS)
|
|
|
|
add_custom_target(${NAME}-pkg-config ALL
|