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:
parent
10e58e8a90
commit
25b3ed12e3
|
@ -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})
|
||||||
|
|
Loading…
Reference in New Issue