Index: ui/events/ozone/BUILD.gn |
diff --git a/ui/events/ozone/BUILD.gn b/ui/events/ozone/BUILD.gn |
index 4bb3ad2b339d0f7ee1e2bbcbd27c0183d3a5d67e..568663b18d252c3db737f535ff0b102c70b4b404 100644 |
--- a/ui/events/ozone/BUILD.gn |
+++ b/ui/events/ozone/BUILD.gn |
@@ -9,6 +9,9 @@ import("//build/config/ui.gni") |
declare_args() { |
# Optional system libraries. |
use_xkbcommon = false |
+ |
+ # Support ChromeOS touchpad gestures with ozone. |
+ use_evdev_gestures = false |
} |
if (use_xkbcommon) { |
@@ -49,7 +52,7 @@ component("events_ozone") { |
] |
} |
- if (use_ozone_evdev && use_udev) { |
+ if (use_ozone && use_udev) { |
deps += [ "//device/udev_linux" ] |
} |
} |
@@ -62,6 +65,16 @@ config("evdev_gestures") { |
defines = [ "USE_EVDEV_GESTURES" ] |
} |
+if (use_evdev_gestures) { |
+ pkg_config("libevdev-cros") { |
+ packages = [ "libevdev-cros" ] |
+ } |
+ |
+ pkg_config("libgestures") { |
+ packages = [ "libgestures" ] |
+ } |
+} |
+ |
component("events_ozone_evdev") { |
sources = [ |
"evdev/device_event_dispatcher_evdev.cc", |
@@ -130,7 +143,7 @@ component("events_ozone_evdev") { |
public_configs = [ ":evdev" ] |
- if (use_ozone_evdev && use_evdev_gestures) { |
+ if (use_ozone && use_evdev_gestures) { |
sources += [ |
"evdev/libgestures_glue/event_reader_libevdev_cros.cc", |
"evdev/libgestures_glue/event_reader_libevdev_cros.h", |
@@ -149,8 +162,8 @@ component("events_ozone_evdev") { |
public_configs += [ ":evdev_gestures" ] |
configs += [ |
- "//build/config/linux:libevdev-cros", |
- "//build/config/linux:libgestures", |
+ ":libevdev-cros", |
+ ":libgestures", |
] |
} |
} |