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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « build/config/ui.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/linux/pkg_config.gni") 6 import("//build/config/linux/pkg_config.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 8
9 declare_args() { 9 declare_args() {
10 # Optional system libraries. 10 # Optional system libraries.
11 use_xkbcommon = false 11 use_xkbcommon = false
12
13 # Support ChromeOS touchpad gestures with ozone.
14 use_evdev_gestures = false
12 } 15 }
13 16
14 if (use_xkbcommon) { 17 if (use_xkbcommon) {
15 pkg_config("xkbcommon") { 18 pkg_config("xkbcommon") {
16 packages = [ "xkbcommon" ] 19 packages = [ "xkbcommon" ]
17 } 20 }
18 } 21 }
19 22
20 component("events_ozone") { 23 component("events_ozone") {
21 sources = [ 24 sources = [
(...skipping 20 matching lines...) Expand all
42 45
43 defines = [ "EVENTS_OZONE_IMPLEMENTATION" ] 46 defines = [ "EVENTS_OZONE_IMPLEMENTATION" ]
44 47
45 if (!use_udev) { 48 if (!use_udev) {
46 sources -= [ 49 sources -= [
47 "device/udev/device_manager_udev.cc", 50 "device/udev/device_manager_udev.cc",
48 "device/udev/device_manager_udev.h", 51 "device/udev/device_manager_udev.h",
49 ] 52 ]
50 } 53 }
51 54
52 if (use_ozone_evdev && use_udev) { 55 if (use_ozone && use_udev) {
53 deps += [ "//device/udev_linux" ] 56 deps += [ "//device/udev_linux" ]
54 } 57 }
55 } 58 }
56 59
57 config("evdev") { 60 config("evdev") {
58 defines = [ "USE_EVDEV" ] 61 defines = [ "USE_EVDEV" ]
59 } 62 }
60 63
61 config("evdev_gestures") { 64 config("evdev_gestures") {
62 defines = [ "USE_EVDEV_GESTURES" ] 65 defines = [ "USE_EVDEV_GESTURES" ]
63 } 66 }
64 67
68 if (use_evdev_gestures) {
69 pkg_config("libevdev-cros") {
70 packages = [ "libevdev-cros" ]
71 }
72
73 pkg_config("libgestures") {
74 packages = [ "libgestures" ]
75 }
76 }
77
65 component("events_ozone_evdev") { 78 component("events_ozone_evdev") {
66 sources = [ 79 sources = [
67 "evdev/device_event_dispatcher_evdev.cc", 80 "evdev/device_event_dispatcher_evdev.cc",
68 "evdev/device_event_dispatcher_evdev.h", 81 "evdev/device_event_dispatcher_evdev.h",
69 "evdev/event_converter_evdev.cc", 82 "evdev/event_converter_evdev.cc",
70 "evdev/event_converter_evdev.h", 83 "evdev/event_converter_evdev.h",
71 "evdev/event_converter_evdev_impl.cc", 84 "evdev/event_converter_evdev_impl.cc",
72 "evdev/event_converter_evdev_impl.h", 85 "evdev/event_converter_evdev_impl.h",
73 "evdev/event_device_info.cc", 86 "evdev/event_device_info.cc",
74 "evdev/event_device_info.h", 87 "evdev/event_device_info.h",
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 "//ui/events", 136 "//ui/events",
124 "//ui/events:dom_keycode_converter", 137 "//ui/events:dom_keycode_converter",
125 "//ui/events:events_base", 138 "//ui/events:events_base",
126 "//ui/events/devices", 139 "//ui/events/devices",
127 "//ui/events/platform", 140 "//ui/events/platform",
128 "//ui/gfx", 141 "//ui/gfx",
129 ] 142 ]
130 143
131 public_configs = [ ":evdev" ] 144 public_configs = [ ":evdev" ]
132 145
133 if (use_ozone_evdev && use_evdev_gestures) { 146 if (use_ozone && use_evdev_gestures) {
134 sources += [ 147 sources += [
135 "evdev/libgestures_glue/event_reader_libevdev_cros.cc", 148 "evdev/libgestures_glue/event_reader_libevdev_cros.cc",
136 "evdev/libgestures_glue/event_reader_libevdev_cros.h", 149 "evdev/libgestures_glue/event_reader_libevdev_cros.h",
137 "evdev/libgestures_glue/gesture_feedback.cc", 150 "evdev/libgestures_glue/gesture_feedback.cc",
138 "evdev/libgestures_glue/gesture_feedback.h", 151 "evdev/libgestures_glue/gesture_feedback.h",
139 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc", 152 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc",
140 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h", 153 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h",
141 "evdev/libgestures_glue/gesture_logging.cc", 154 "evdev/libgestures_glue/gesture_logging.cc",
142 "evdev/libgestures_glue/gesture_logging.h", 155 "evdev/libgestures_glue/gesture_logging.h",
143 "evdev/libgestures_glue/gesture_property_provider.cc", 156 "evdev/libgestures_glue/gesture_property_provider.cc",
144 "evdev/libgestures_glue/gesture_property_provider.h", 157 "evdev/libgestures_glue/gesture_property_provider.h",
145 "evdev/libgestures_glue/gesture_timer_provider.cc", 158 "evdev/libgestures_glue/gesture_timer_provider.cc",
146 "evdev/libgestures_glue/gesture_timer_provider.h", 159 "evdev/libgestures_glue/gesture_timer_provider.h",
147 ] 160 ]
148 161
149 public_configs += [ ":evdev_gestures" ] 162 public_configs += [ ":evdev_gestures" ]
150 163
151 configs += [ 164 configs += [
152 "//build/config/linux:libevdev-cros", 165 ":libevdev-cros",
153 "//build/config/linux:libgestures", 166 ":libgestures",
154 ] 167 ]
155 } 168 }
156 } 169 }
157 170
158 config("events_ozone_layout_config") { 171 config("events_ozone_layout_config") {
159 if (use_xkbcommon) { 172 if (use_xkbcommon) {
160 defines = [ "USE_XKBCOMMON" ] 173 defines = [ "USE_XKBCOMMON" ]
161 } 174 }
162 } 175 }
163 176
(...skipping 29 matching lines...) Expand all
193 "layout/xkb/xkb.h", 206 "layout/xkb/xkb.h",
194 "layout/xkb/xkb_evdev_codes.cc", 207 "layout/xkb/xkb_evdev_codes.cc",
195 "layout/xkb/xkb_evdev_codes.h", 208 "layout/xkb/xkb_evdev_codes.h",
196 "layout/xkb/xkb_key_code_converter.h", 209 "layout/xkb/xkb_key_code_converter.h",
197 "layout/xkb/xkb_keyboard_layout_engine.cc", 210 "layout/xkb/xkb_keyboard_layout_engine.cc",
198 "layout/xkb/xkb_keyboard_layout_engine.h", 211 "layout/xkb/xkb_keyboard_layout_engine.h",
199 "layout/xkb/xkb_keysym.h", 212 "layout/xkb/xkb_keysym.h",
200 ] 213 ]
201 } 214 }
202 } 215 }
OLDNEW
« 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