OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") |
| 7 |
| 8 component("events_ozone") { |
| 9 sources = [ |
| 10 "device/device_event.cc", |
| 11 "device/device_event.h", |
| 12 "device/device_event_observer.h", |
| 13 "device/device_manager.cc", |
| 14 "device/device_manager.h", |
| 15 "device/device_manager_manual.cc", |
| 16 "device/device_manager_manual.h", |
| 17 "device/udev/device_manager_udev.cc", |
| 18 "device/udev/device_manager_udev.h", |
| 19 "event_factory_ozone.cc", |
| 20 "event_factory_ozone.h", |
| 21 "events_ozone_export.h", |
| 22 ] |
| 23 |
| 24 deps = [ |
| 25 "//base", |
| 26 ] |
| 27 |
| 28 defines = [ |
| 29 "EVENTS_OZONE_IMPLEMENTATION", |
| 30 ] |
| 31 |
| 32 if (!use_udev) { |
| 33 sources -= [ |
| 34 "device/udev/device_manager_udev.cc", |
| 35 "device/udev/device_manager_udev.h", |
| 36 ] |
| 37 } |
| 38 |
| 39 if (use_ozone_evdev && use_udev) { |
| 40 deps += [ |
| 41 "//device/udev_linux", |
| 42 ] |
| 43 } |
| 44 } |
| 45 |
| 46 component("events_ozone_evdev") { |
| 47 sources = [ |
| 48 "evdev/event_converter_evdev.cc", |
| 49 "evdev/event_converter_evdev.h", |
| 50 "evdev/event_device_info.cc", |
| 51 "evdev/event_device_info.h", |
| 52 "evdev/event_factory_evdev.cc", |
| 53 "evdev/event_factory_evdev.h", |
| 54 "evdev/event_modifiers_evdev.cc", |
| 55 "evdev/event_modifiers_evdev.h", |
| 56 "evdev/events_ozone_evdev_export.h", |
| 57 "evdev/key_event_converter_evdev.cc", |
| 58 "evdev/key_event_converter_evdev.h", |
| 59 "evdev/touch_event_converter_evdev.cc", |
| 60 "evdev/touch_event_converter_evdev.h", |
| 61 ] |
| 62 |
| 63 defines = [ |
| 64 "EVENTS_OZONE_EVDEV_IMPLEMENTATION", |
| 65 ] |
| 66 |
| 67 deps = [ |
| 68 ":events_ozone", |
| 69 "//base", |
| 70 "//ui/events/platform", |
| 71 "//ui/gfx", |
| 72 ] |
| 73 |
| 74 if (use_ozone_evdev) { |
| 75 defines += [ |
| 76 "USE_OZONE_EVDEV=1" |
| 77 ] |
| 78 } |
| 79 |
| 80 if (use_ozone_evdev && use_evdev_gestures) { |
| 81 sources += [ |
| 82 "evdev/libgestures_glue/event_reader_libevdev_cros.cc", |
| 83 "evdev/libgestures_glue/event_reader_libevdev_cros.h", |
| 84 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc", |
| 85 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h", |
| 86 "evdev/libgestures_glue/gesture_logging.cc", |
| 87 "evdev/libgestures_glue/gesture_logging.h", |
| 88 "evdev/libgestures_glue/gesture_timer_provider.cc", |
| 89 "evdev/libgestures_glue/gesture_timer_provider.h", |
| 90 ] |
| 91 |
| 92 defines += [ |
| 93 "USE_EVDEV_GESTURES", |
| 94 ] |
| 95 |
| 96 configs += [ |
| 97 "//build/config/linux:libevdev-cros", |
| 98 "//build/config/linux:libgestures", |
| 99 ] |
| 100 } |
| 101 } |
OLD | NEW |