Index: ui/events/BUILD.gn |
diff --git a/ui/events/BUILD.gn b/ui/events/BUILD.gn |
index 59fe8358c2559c1b25cd5da0814c5b56a5233a2c..103ee50502d647e04f8352bf7a9b163ea0883280 100644 |
--- a/ui/events/BUILD.gn |
+++ b/ui/events/BUILD.gn |
@@ -2,6 +2,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//build/config/features.gni") |
import("//build/config/ui.gni") |
import("//testing/test.gni") |
import("//ui/ozone/ozone.gni") |
@@ -145,10 +146,7 @@ component("events") { |
if (use_x11) { |
sources += [ "x/events_x.cc" ] |
- configs += [ |
- "//build/config/linux:glib", |
- "//build/config/linux:x11", |
- ] |
+ configs += [ "//build/config/linux:x11" ] |
deps += [ |
"//ui/events/devices", |
"//ui/events/devices/x11", |
@@ -157,6 +155,10 @@ component("events") { |
] |
} |
+ if (use_glib) { |
+ configs += [ "//build/config/linux:glib" ] |
+ } |
+ |
if (use_ozone || (is_android && use_aura)) { |
sources += [ "events_default.cc" ] |
} |