diff --git a/BUILD.gn b/BUILD.gn index 99742ed462..2da23a10c4 100644 --- a/BUILD.gn +++ b/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 ###############################################################################