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") | |
7 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
8 import("//ui/events/xkb.gni") | |
9 | |
10 if (use_xkbcommon) { | |
11 pkg_config("xkbcommon") { | |
12 packages = [ "xkbcommon" ] | |
13 } | |
14 } | |
15 | 7 |
16 component("events_ozone") { | 8 component("events_ozone") { |
17 sources = [ | 9 sources = [ |
18 "device/device_event.cc", | 10 "device/device_event.cc", |
19 "device/device_event.h", | 11 "device/device_event.h", |
20 "device/device_event_observer.h", | 12 "device/device_event_observer.h", |
21 "device/device_manager.cc", | 13 "device/device_manager.cc", |
22 "device/device_manager.h", | 14 "device/device_manager.h", |
23 "device/device_manager_manual.cc", | 15 "device/device_manager_manual.cc", |
24 "device/device_manager_manual.h", | 16 "device/device_manager_manual.h", |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 "//ui/events:events_base", | 109 "//ui/events:events_base", |
118 "//ui/events/devices", | 110 "//ui/events/devices", |
119 "//ui/events/platform", | 111 "//ui/events/platform", |
120 "//ui/gfx", | 112 "//ui/gfx", |
121 "//ui/ozone:ozone_base", | 113 "//ui/ozone:ozone_base", |
122 ] | 114 ] |
123 | 115 |
124 public_configs = [ ":evdev" ] | 116 public_configs = [ ":evdev" ] |
125 } | 117 } |
126 | 118 |
127 config("events_ozone_layout_config") { | |
128 if (use_xkbcommon) { | |
129 defines = [ "USE_XKBCOMMON" ] | |
130 } | |
131 } | |
132 | |
133 component("events_ozone_layout") { | 119 component("events_ozone_layout") { |
134 sources = [ | 120 sources = [ |
135 "layout/events_ozone_layout_export.h", | 121 "layout/events_ozone_layout_export.h", |
136 "layout/keyboard_layout_engine.h", | 122 "layout/keyboard_layout_engine.h", |
137 "layout/keyboard_layout_engine_manager.cc", | 123 "layout/keyboard_layout_engine_manager.cc", |
138 "layout/keyboard_layout_engine_manager.h", | 124 "layout/keyboard_layout_engine_manager.h", |
139 "layout/layout_util.cc", | 125 "layout/layout_util.cc", |
140 "layout/layout_util.h", | 126 "layout/layout_util.h", |
141 "layout/no/no_keyboard_layout_engine.cc", | 127 "layout/no/no_keyboard_layout_engine.cc", |
142 "layout/no/no_keyboard_layout_engine.h", | 128 "layout/no/no_keyboard_layout_engine.h", |
143 "layout/stub/stub_keyboard_layout_engine.cc", | 129 "layout/stub/stub_keyboard_layout_engine.cc", |
144 "layout/stub/stub_keyboard_layout_engine.h", | 130 "layout/stub/stub_keyboard_layout_engine.h", |
145 ] | 131 ] |
146 | 132 |
147 defines = [ "EVENTS_OZONE_LAYOUT_IMPLEMENTATION" ] | 133 defines = [ "EVENTS_OZONE_LAYOUT_IMPLEMENTATION" ] |
148 | 134 |
149 deps = [ | 135 deps = [ |
150 "//base", | 136 "//base", |
151 "//ui/events:dom_keycode_converter", | 137 "//ui/events:dom_keycode_converter", |
152 "//ui/events:events_base", | 138 "//ui/events:events_base", |
153 "//ui/ozone:ozone_base", | 139 "//ui/ozone:ozone_base", |
154 ] | 140 ] |
155 | |
156 public_configs = [ ":events_ozone_layout_config" ] | |
157 } | 141 } |
OLD | NEW |