dawn-cmake/build_overrides
Corentin Wallez 30ec4fc626 Fixes to be able to build Dawn inside Skia
Add a dawn_has_build override similarly to angle_has_build that makes
Dawn not depend on Chromium //build if it can avoid it. (this was
previously used for mac_sdk.gni).

Only load the Vulkan Validation Layers' gni if it is enable via
dawn_enable_vulkan_validation_layers.

Fix a GN build warning where the source of dawn_components would be
built twice: for example libdawn_native.MetalBackend.o would be built
once for libdawn_native static and once for libdawn_native shared. Fix
this by making libdawn_native as a static library libdawn_native_static.

Change-Id: Ib8fb72282435eb475d7a11dae0d5a9977572fd57
Bug: chromium:1064305
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/18963
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
2020-04-07 19:35:47 +00:00
..
build.gni GN: Use the hermetic XCode if available. 2020-03-06 12:25:20 +00:00
dawn.gni Fixes to be able to build Dawn inside Skia 2020-04-07 19:35:47 +00:00
glslang.gni Roll shaderc and glslang and use their BUILD.gn 2018-10-04 17:17:57 +00:00
shaderc.gni Removing for_fuzzers target 2019-11-27 15:07:53 +00:00
spirv_tools.gni Add GN build for tests and their third party deps. 2018-08-09 20:54:43 +02:00
swiftshader.gni Allow using swiftshader with the Vulkan backend 2019-11-26 18:21:51 +00:00
vulkan_validation_layers.gni Add Vulkan validation layers on Windows 2019-11-07 12:13:27 +00:00