build: assert use_dawn
This will help flush out future errors where targets depend on this target in configs where it won't build or isn't used. Bug: None Change-Id: Iebfc6b9afbd9b4fd9616d87bcaf8cd83a2163777 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/13620 Commit-Queue: Elly Fong-Jones <ellyjones@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
58dbfcae38
commit
9b67273de9
7
BUILD.gn
7
BUILD.gn
|
@ -21,6 +21,13 @@ import("scripts/dawn_overrides_with_defaults.gni")
|
|||
|
||||
import("//testing/test.gni")
|
||||
|
||||
if (build_with_chromium) {
|
||||
# Chromium build targets may not depend on dawn unless use_dawn is set. This
|
||||
# assertion helps avoid accidental dependencies creeping into chromium.
|
||||
import("//ui/gl/features.gni")
|
||||
assert(use_dawn)
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
# dawn_platform
|
||||
###############################################################################
|
||||
|
|
Loading…
Reference in New Issue