Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3757)

Unified Diff: ui/events/ozone/BUILD.gn

Issue 1322343002: Don't use evdev except for target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gtk
Patch Set: sync&rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/ui.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
]
}
}
« no previous file with comments | « build/config/ui.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698