mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-03 19:55:56 +00:00
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")
|
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
|
# dawn_platform
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user