Enable the Tint/GLSL backend in the CMake build.

Don't build the Tint samples, because they require glslang.

Change-Id: I04ac6bb313fa8926bd161b91488d30c2c26ebb67
Bug: dawn:1217
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/79660
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
Stephen White 2022-02-08 15:32:00 +00:00 committed by Dawn LUCI CQ
parent 10e58e8a90
commit 25b3ed12e3
1 changed files with 4 additions and 4 deletions

View File

@ -52,10 +52,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 set(TINT_BUILD_GLSL_WRITER ON)
# building the GLSL writer, but currently Dawn does not provide this # Don't build the samples because they require glslang and Dawn does not
# third_party dependency. Disable the GLSL writer for now. # provide this third_party dependency.
set(TINT_BUILD_GLSL_WRITER OFF) set(TINT_BUILD_SAMPLES OFF)
# TODO(crbug.com/tint/455): Tint does not currently build with CMake when # TODO(crbug.com/tint/455): Tint does not currently build with CMake when
# BUILD_SHARED_LIBS=1, so always build it as static for now. # BUILD_SHARED_LIBS=1, so always build it as static for now.
set(BUILD_SHARED_LIBS_SAVED ${BUILD_SHARED_LIBS}) set(BUILD_SHARED_LIBS_SAVED ${BUILD_SHARED_LIBS})