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>
diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
index ab6ffab..e8e1d26 100644
--- a/third_party/CMakeLists.txt
+++ b/third_party/CMakeLists.txt
@@ -52,10 +52,10 @@
if (NOT TARGET libtint)
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)
+ set(TINT_BUILD_GLSL_WRITER ON)
+ # Don't build the samples because they require glslang and Dawn does not
+ # provide this third_party dependency.
+ set(TINT_BUILD_SAMPLES OFF)
# 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.
set(BUILD_SHARED_LIBS_SAVED ${BUILD_SHARED_LIBS})