CMake: Disable Tint's GLSL writer

Currently enabling this build target requires a dependency on glslang, which Dawn does not provide.
Just disable this target while we figure how we want to tackle this.

Bug: tint:1217
Change-Id: I79f2ef6e1b007e69ad4aa0d40500b0d1c6a52d6f
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/66605
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Stephen White <senorblanco@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton 2021-10-15 19:10:23 +00:00 committed by Dawn LUCI CQ
parent 79d2099125
commit 1affadcab7
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ endif()
if (NOT TARGET libtint) if (NOT TARGET libtint)
message(STATUS "Dawn: using Tint at ${DAWN_TINT_DIR}") message(STATUS "Dawn: using Tint at ${DAWN_TINT_DIR}")
# TODO(crbug.com/tint/1217): Tint expects glslang for validation when
# building the GLSL writer, but currently Dawn does not provide this
# third_party dependency. Disable the GLSL writer for now.
set(TINT_BUILD_GLSL_WRITER OFF)
add_subdirectory(${DAWN_TINT_DIR} "${CMAKE_CURRENT_BINARY_DIR}/tint") add_subdirectory(${DAWN_TINT_DIR} "${CMAKE_CURRENT_BINARY_DIR}/tint")
endif() endif()