| Index: ui/gfx/BUILD.gn
|
| diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn
|
| index ea1a2defdd088917bc114822f6655e96b78ba3e3..4270699773caccf6d5c81be4de234615c4253d5d 100644
|
| --- a/ui/gfx/BUILD.gn
|
| +++ b/ui/gfx/BUILD.gn
|
| @@ -8,6 +8,9 @@ if (is_android) {
|
| import("//build/config/android/config.gni")
|
| import("//build/config/android/rules.gni")
|
| }
|
| +if (use_ozone) {
|
| + import("//ui/ozone/ozone.gni")
|
| +}
|
|
|
| # Several targets want to include this header file, and some of them are
|
| # child dependencies of "gfx". Therefore, we separate it out here so multiple
|
| @@ -336,7 +339,7 @@ component("gfx") {
|
| "ozone/overlay_candidates_ozone.h",
|
| ]
|
| }
|
| - if (ozone_platform_dri) {
|
| + if (use_ozone && ozone_platform_dri) {
|
| configs += [ "//build/config/linux:dridrm" ]
|
| } else {
|
| sources -= [
|
|
|