mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
Expand build flags for Tint.
This CL extends the build options to Tint to make the various readers and writers all optional. Change-Id: I913e1830b1bb2243eff5deb4b8079ba592dd52e1 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/16801 Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
committed by
dan sinclair
parent
e4392c9ab5
commit
4b71b9ed2b
10
third_party/CMakeLists.txt
vendored
10
third_party/CMakeLists.txt
vendored
@@ -14,8 +14,8 @@
|
||||
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/googletest EXCLUDE_FROM_ALL)
|
||||
|
||||
# SPIRV-Tools is only linked into tint if we're using the SPIR-V parser. We
|
||||
# always build it regardless so we can use the validator for testing purposes.
|
||||
set(SPIRV-Headers_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/spirv-headers CACHE STRING "")
|
||||
set(SPIRV_SKIP_TESTS ON CACHE BOOL ON)
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/spirv-tools)
|
||||
if(${TINT_BUILD_SPV_READER} OR ${TINT_BUILD_SPV_WRITER})
|
||||
set(SPIRV-Headers_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/spirv-headers CACHE STRING "")
|
||||
set(SPIRV_SKIP_TESTS ON CACHE BOOL ON)
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/spirv-tools)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user