| 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/ui.gni") | |
| 6 import("//ui/ozone/ozone.gni") | |
| 7 | |
| 8 component("devices") { | 5 component("devices") { |
| 9 sources = [ | 6 sources = [ |
| 10 "device_data_manager.cc", | 7 "device_data_manager.cc", |
| 11 "device_data_manager.h", | 8 "device_data_manager.h", |
| 12 "device_hotplug_event_observer.h", | 9 "device_hotplug_event_observer.h", |
| 13 "device_util_linux.cc", | 10 "device_util_linux.cc", |
| 14 "device_util_linux.h", | 11 "device_util_linux.h", |
| 15 "events_devices_export.h", | 12 "events_devices_export.h", |
| 16 "input_device.cc", | 13 "input_device.cc", |
| 17 "input_device.h", | 14 "input_device.h", |
| 18 "input_device_event_observer.h", | 15 "input_device_event_observer.h", |
| 19 "keyboard_device.cc", | 16 "keyboard_device.cc", |
| 20 "keyboard_device.h", | 17 "keyboard_device.h", |
| 21 "touchscreen_device.cc", | 18 "touchscreen_device.cc", |
| 22 "touchscreen_device.h", | 19 "touchscreen_device.h", |
| 23 ] | 20 ] |
| 24 | 21 |
| 25 defines = [ "EVENTS_DEVICES_IMPLEMENTATION" ] | 22 defines = [ "EVENTS_DEVICES_IMPLEMENTATION" ] |
| 26 | 23 |
| 27 deps = [ | 24 deps = [ |
| 28 "//base", | 25 "//base", |
| 29 "//base/third_party/dynamic_annotations", | 26 "//base/third_party/dynamic_annotations", |
| 30 "//skia", | 27 "//skia", |
| 31 "//ui/gfx", | 28 "//ui/gfx", |
| 32 "//ui/gfx/geometry", | 29 "//ui/gfx/geometry", |
| 33 ] | 30 ] |
| 34 | |
| 35 if (use_x11 || ozone_platform_x11) { | |
| 36 configs += [ "//build/config/linux:x11" ] | |
| 37 | |
| 38 sources += [ | |
| 39 "x11/device_data_manager_x11.cc", | |
| 40 "x11/device_data_manager_x11.h", | |
| 41 "x11/device_list_cache_x11.cc", | |
| 42 "x11/device_list_cache_x11.h", | |
| 43 "x11/touch_factory_x11.cc", | |
| 44 "x11/touch_factory_x11.h", | |
| 45 ] | |
| 46 | |
| 47 deps += [ | |
| 48 "//ui/events:events_base", | |
| 49 "//ui/gfx/x", | |
| 50 ] | |
| 51 } | |
| 52 } | 31 } |
| OLD | NEW |