Index: ui/events/platform/x11/BUILD.gn |
diff --git a/ui/events/platform/x11/BUILD.gn b/ui/events/platform/x11/BUILD.gn |
index 85eaa5dab57f884237197960401cb54717844c04..c05c81a2d35f2cc026220943729691d41ff06e41 100644 |
--- a/ui/events/platform/x11/BUILD.gn |
+++ b/ui/events/platform/x11/BUILD.gn |
@@ -2,6 +2,8 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//build/config/ui.gni") |
+ |
component("x11") { |
output_name = "x11_events_platform" |
@@ -26,7 +28,7 @@ component("x11") { |
"//ui/gfx/x", |
] |
- if (is_linux) { |
+ if (is_linux && !use_ozone_x11) { |
sources -= [ "x11_event_source_libevent.cc" ] |
configs += [ "//build/config/linux:glib" ] |