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