OLD | NEW |
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 import("//ui/base/ui_features.gni") | 8 import("//ui/base/ui_features.gni") |
9 | 9 |
10 declare_args() { | 10 declare_args() { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 | 60 |
61 config("evdev") { | 61 config("evdev") { |
62 defines = [ "USE_EVDEV" ] | 62 defines = [ "USE_EVDEV" ] |
63 } | 63 } |
64 | 64 |
65 config("evdev_gestures") { | 65 config("evdev_gestures") { |
66 defines = [ "USE_EVDEV_GESTURES" ] | 66 defines = [ "USE_EVDEV_GESTURES" ] |
67 } | 67 } |
68 | 68 |
69 if (use_evdev_gestures) { | |
70 pkg_config("libevdev-cros") { | |
71 packages = [ "libevdev-cros" ] | |
72 } | |
73 | |
74 pkg_config("libgestures") { | |
75 packages = [ "libgestures" ] | |
76 } | |
77 } | |
78 | |
79 component("events_ozone_evdev") { | 69 component("events_ozone_evdev") { |
80 sources = [ | 70 sources = [ |
81 "evdev/device_event_dispatcher_evdev.cc", | 71 "evdev/device_event_dispatcher_evdev.cc", |
82 "evdev/device_event_dispatcher_evdev.h", | 72 "evdev/device_event_dispatcher_evdev.h", |
83 "evdev/event_converter_evdev.cc", | 73 "evdev/event_converter_evdev.cc", |
84 "evdev/event_converter_evdev.h", | 74 "evdev/event_converter_evdev.h", |
85 "evdev/event_converter_evdev_impl.cc", | 75 "evdev/event_converter_evdev_impl.cc", |
86 "evdev/event_converter_evdev_impl.h", | 76 "evdev/event_converter_evdev_impl.h", |
87 "evdev/event_device_info.cc", | 77 "evdev/event_device_info.cc", |
88 "evdev/event_device_info.h", | 78 "evdev/event_device_info.h", |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc", | 145 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc", |
156 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h", | 146 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h", |
157 "evdev/libgestures_glue/gesture_logging.cc", | 147 "evdev/libgestures_glue/gesture_logging.cc", |
158 "evdev/libgestures_glue/gesture_logging.h", | 148 "evdev/libgestures_glue/gesture_logging.h", |
159 "evdev/libgestures_glue/gesture_property_provider.cc", | 149 "evdev/libgestures_glue/gesture_property_provider.cc", |
160 "evdev/libgestures_glue/gesture_property_provider.h", | 150 "evdev/libgestures_glue/gesture_property_provider.h", |
161 "evdev/libgestures_glue/gesture_timer_provider.cc", | 151 "evdev/libgestures_glue/gesture_timer_provider.cc", |
162 "evdev/libgestures_glue/gesture_timer_provider.h", | 152 "evdev/libgestures_glue/gesture_timer_provider.h", |
163 ] | 153 ] |
164 | 154 |
| 155 deps += [ |
| 156 "//third_party/gestures", |
| 157 "//third_party/libevdev", |
| 158 ] |
| 159 |
165 public_configs += [ ":evdev_gestures" ] | 160 public_configs += [ ":evdev_gestures" ] |
166 | |
167 configs += [ | |
168 ":libevdev-cros", | |
169 ":libgestures", | |
170 ] | |
171 } | 161 } |
172 } | 162 } |
173 } | 163 } |
174 | 164 |
175 component("events_ozone_layout") { | 165 component("events_ozone_layout") { |
176 sources = [ | 166 sources = [ |
177 "layout/events_ozone_layout_export.h", | 167 "layout/events_ozone_layout_export.h", |
178 "layout/keyboard_layout_engine.h", | 168 "layout/keyboard_layout_engine.h", |
179 "layout/keyboard_layout_engine_manager.cc", | 169 "layout/keyboard_layout_engine_manager.cc", |
180 "layout/keyboard_layout_engine_manager.h", | 170 "layout/keyboard_layout_engine_manager.h", |
(...skipping 20 matching lines...) Expand all Loading... |
201 "layout/xkb/xkb_evdev_codes.cc", | 191 "layout/xkb/xkb_evdev_codes.cc", |
202 "layout/xkb/xkb_evdev_codes.h", | 192 "layout/xkb/xkb_evdev_codes.h", |
203 "layout/xkb/xkb_key_code_converter.h", | 193 "layout/xkb/xkb_key_code_converter.h", |
204 "layout/xkb/xkb_keyboard_layout_engine.cc", | 194 "layout/xkb/xkb_keyboard_layout_engine.cc", |
205 "layout/xkb/xkb_keyboard_layout_engine.h", | 195 "layout/xkb/xkb_keyboard_layout_engine.h", |
206 ] | 196 ] |
207 | 197 |
208 deps += [ "//ui/events/keycodes:xkb" ] | 198 deps += [ "//ui/events/keycodes:xkb" ] |
209 } | 199 } |
210 } | 200 } |
OLD | NEW |