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

Side by Side Diff: ui/events/ozone/BUILD.gn

Issue 1287103004: Sync ui/events to chromium @ https://codereview.chromium.org/1210203002 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 4 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 | « ui/events/null_event_targeter.cc ('k') | ui/events/ozone/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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/linux/pkg_config.gni")
7 import("//build/config/ui.gni")
8
9 declare_args() {
10 # Optional system libraries.
11 use_xkbcommon = false
12 }
13
14 if (use_xkbcommon) {
15 pkg_config("xkbcommon") {
16 packages = [ "xkbcommon" ]
17 }
18 }
19
20 component("events_ozone") {
21 sources = [
22 "device/device_event.cc",
23 "device/device_event.h",
24 "device/device_event_observer.h",
25 "device/device_manager.cc",
26 "device/device_manager.h",
27 "device/device_manager_manual.cc",
28 "device/device_manager_manual.h",
29 "device/udev/device_manager_udev.cc",
30 "device/udev/device_manager_udev.h",
31 "events_ozone_export.h",
32 ]
33
34 deps = [
35 "//base",
36 "//base/third_party/dynamic_annotations",
37 "//ui/events",
38 "//ui/events:events_base",
39 ]
40
41 defines = [ "EVENTS_OZONE_IMPLEMENTATION" ]
42
43 if (!use_udev) {
44 sources -= [
45 "device/udev/device_manager_udev.cc",
46 "device/udev/device_manager_udev.h",
47 ]
48 }
49
50 if (use_ozone_evdev && use_udev) {
51 deps += [ "//device/udev_linux" ]
52 }
53 }
54
55 config("evdev") {
56 defines = [ "USE_EVDEV" ]
57 }
58
59 config("evdev_gestures") {
60 defines = [ "USE_EVDEV_GESTURES" ]
61 }
62
63 component("events_ozone_evdev") {
64 sources = [
65 "evdev/device_event_dispatcher_evdev.cc",
66 "evdev/device_event_dispatcher_evdev.h",
67 "evdev/event_converter_evdev.cc",
68 "evdev/event_converter_evdev.h",
69 "evdev/event_converter_evdev_impl.cc",
70 "evdev/event_converter_evdev_impl.h",
71 "evdev/event_device_info.cc",
72 "evdev/event_device_info.h",
73 "evdev/event_factory_evdev.cc",
74 "evdev/event_factory_evdev.h",
75 "evdev/event_modifiers_evdev.cc",
76 "evdev/event_modifiers_evdev.h",
77 "evdev/event_thread_evdev.cc",
78 "evdev/event_thread_evdev.h",
79 "evdev/events_ozone_evdev_export.h",
80 "evdev/input_controller_evdev.cc",
81 "evdev/input_controller_evdev.h",
82 "evdev/input_device_factory_evdev.cc",
83 "evdev/input_device_factory_evdev.h",
84 "evdev/input_device_factory_evdev_proxy.cc",
85 "evdev/input_device_factory_evdev_proxy.h",
86 "evdev/input_device_settings_evdev.cc",
87 "evdev/input_device_settings_evdev.h",
88 "evdev/input_injector_evdev.cc",
89 "evdev/input_injector_evdev.h",
90 "evdev/keyboard_evdev.cc",
91 "evdev/keyboard_evdev.h",
92 "evdev/keyboard_util_evdev.cc",
93 "evdev/keyboard_util_evdev.h",
94 "evdev/mouse_button_map_evdev.cc",
95 "evdev/mouse_button_map_evdev.h",
96 "evdev/tablet_event_converter_evdev.cc",
97 "evdev/tablet_event_converter_evdev.h",
98 "evdev/touch_evdev_types.cc",
99 "evdev/touch_evdev_types.h",
100 "evdev/touch_event_converter_evdev.cc",
101 "evdev/touch_event_converter_evdev.h",
102 "evdev/touch_noise/far_apart_taps_touch_noise_filter.cc",
103 "evdev/touch_noise/far_apart_taps_touch_noise_filter.h",
104 "evdev/touch_noise/horizontally_aligned_touch_noise_filter.cc",
105 "evdev/touch_noise/horizontally_aligned_touch_noise_filter.h",
106 "evdev/touch_noise/single_position_touch_noise_filter.cc",
107 "evdev/touch_noise/single_position_touch_noise_filter.h",
108 "evdev/touch_noise/touch_noise_filter.h",
109 "evdev/touch_noise/touch_noise_finder.cc",
110 "evdev/touch_noise/touch_noise_finder.h",
111 ]
112
113 defines = [ "EVENTS_OZONE_EVDEV_IMPLEMENTATION" ]
114
115 deps = [
116 ":events_ozone",
117 ":events_ozone_layout",
118 "//base",
119 "//ui/events",
120 "//ui/events:dom_keycode_converter",
121 "//ui/events:events_base",
122 "//ui/events/devices",
123 "//ui/events/platform",
124 "//ui/gfx",
125 ]
126
127 public_configs = [ ":evdev" ]
128 }
129
130 config("events_ozone_layout_config") {
131 if (use_xkbcommon) {
132 defines = [ "USE_XKBCOMMON" ]
133 }
134 }
135
136 component("events_ozone_layout") {
137 sources = [
138 "layout/events_ozone_layout_export.h",
139 "layout/keyboard_layout_engine.h",
140 "layout/keyboard_layout_engine_manager.cc",
141 "layout/keyboard_layout_engine_manager.h",
142 "layout/layout_util.cc",
143 "layout/layout_util.h",
144 "layout/no/no_keyboard_layout_engine.cc",
145 "layout/no/no_keyboard_layout_engine.h",
146 "layout/stub/stub_keyboard_layout_engine.cc",
147 "layout/stub/stub_keyboard_layout_engine.h",
148 ]
149
150 defines = [ "EVENTS_OZONE_LAYOUT_IMPLEMENTATION" ]
151
152 deps = [
153 "//base",
154 "//ui/events:dom_keycode_converter",
155 "//ui/events:events_base",
156 ]
157
158 public_configs = [ ":events_ozone_layout_config" ]
159 }
OLDNEW
« no previous file with comments | « ui/events/null_event_targeter.cc ('k') | ui/events/ozone/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698