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 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 import("//ui/events/xkb.gni") |
7 | 8 |
8 static_library("dom_keycode_converter") { | 9 static_library("dom_keycode_converter") { |
9 sources = [ | 10 sources = [ |
10 "keycodes/dom/dom_code.h", | 11 "keycodes/dom/dom_code.h", |
11 "keycodes/dom/dom_key.h", | 12 "keycodes/dom/dom_key.h", |
12 "keycodes/dom/dom_key_data.inc", | 13 "keycodes/dom/dom_key_data.inc", |
13 "keycodes/dom/keycode_converter.cc", | 14 "keycodes/dom/keycode_converter.cc", |
14 "keycodes/dom/keycode_converter.h", | 15 "keycodes/dom/keycode_converter.h", |
15 "keycodes/dom/keycode_converter_data.inc", | 16 "keycodes/dom/keycode_converter_data.inc", |
16 ] | 17 ] |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 sources += [ | 65 sources += [ |
65 "keycodes/keyboard_code_conversion_x.cc", | 66 "keycodes/keyboard_code_conversion_x.cc", |
66 "keycodes/keyboard_code_conversion_x.h", | 67 "keycodes/keyboard_code_conversion_x.h", |
67 "x/keysym_to_unicode.cc", | 68 "x/keysym_to_unicode.cc", |
68 "x/keysym_to_unicode.h", | 69 "x/keysym_to_unicode.h", |
69 ] | 70 ] |
70 | 71 |
71 deps += [ "//ui/gfx/x" ] | 72 deps += [ "//ui/gfx/x" ] |
72 } | 73 } |
73 | 74 |
74 if (use_x11 || use_ozone) { | 75 if (use_x11 || use_xkbcommon) { |
75 sources += [ | 76 sources += [ |
76 "keycodes/keyboard_code_conversion_xkb.cc", | 77 "keycodes/keyboard_code_conversion_xkb.cc", |
77 "keycodes/keyboard_code_conversion_xkb.h", | 78 "keycodes/keyboard_code_conversion_xkb.h", |
78 "keycodes/xkb_keysym.h", | 79 "keycodes/xkb_keysym.h", |
79 ] | 80 ] |
80 } | 81 } |
81 } | 82 } |
82 | 83 |
83 component("events") { | 84 component("events") { |
84 sources = [ | 85 sources = [ |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 ":events_base", | 287 ":events_base", |
287 ":gesture_detection", | 288 ":gesture_detection", |
288 ":test_support", | 289 ":test_support", |
289 "//base", | 290 "//base", |
290 "//base/test:run_all_unittests", | 291 "//base/test:run_all_unittests", |
291 "//skia", | 292 "//skia", |
292 "//testing/gtest", | 293 "//testing/gtest", |
293 "//ui/events/devices", | 294 "//ui/events/devices", |
294 "//ui/events/platform", | 295 "//ui/events/platform", |
295 "//ui/gfx:test_support", | 296 "//ui/gfx:test_support", |
| 297 "//testing/gmock:gmock", |
296 ] | 298 ] |
297 | 299 |
298 include_dirs = [ "//testing/gmock/include" ] | 300 include_dirs = [ "//testing/gmock/include" ] |
299 | 301 |
300 if (use_x11) { | 302 if (use_x11) { |
301 configs += [ "//build/config/linux:x11" ] | 303 configs += [ "//build/config/linux:x11" ] |
302 deps += [ "//ui/gfx/x" ] | 304 deps += [ "//ui/gfx/x" ] |
303 } else { | 305 } else { |
304 sources -= [ | 306 sources -= [ |
305 "devices/x11/device_data_manager_x11_unittest.cc", | 307 "devices/x11/device_data_manager_x11_unittest.cc", |
306 "x/events_x_unittest.cc", | 308 "x/events_x_unittest.cc", |
307 ] | 309 ] |
308 } | 310 } |
309 | 311 |
310 if (use_ozone) { | 312 if (use_ozone) { |
311 sources += [ | 313 sources += [ |
312 "ozone/chromeos/cursor_controller_unittest.cc", | 314 "ozone/chromeos/cursor_controller_unittest.cc", |
313 "ozone/evdev/event_converter_evdev_impl_unittest.cc", | 315 "ozone/evdev/event_converter_evdev_impl_unittest.cc", |
314 "ozone/evdev/event_converter_test_util.cc", | 316 "ozone/evdev/event_converter_test_util.cc", |
315 "ozone/evdev/event_device_info_unittest.cc", | 317 "ozone/evdev/event_device_info_unittest.cc", |
316 "ozone/evdev/event_device_test_util.cc", | 318 "ozone/evdev/event_device_test_util.cc", |
317 "ozone/evdev/input_injector_evdev_unittest.cc", | 319 "ozone/evdev/input_injector_evdev_unittest.cc", |
318 "ozone/evdev/tablet_event_converter_evdev_unittest.cc", | 320 "ozone/evdev/tablet_event_converter_evdev_unittest.cc", |
319 "ozone/evdev/touch_event_converter_evdev_unittest.cc", | 321 "ozone/evdev/touch_event_converter_evdev_unittest.cc", |
320 "ozone/evdev/touch_noise/touch_noise_finder_unittest.cc", | 322 "ozone/evdev/touch_noise/touch_noise_finder_unittest.cc", |
321 "ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.cc", | |
322 ] | 323 ] |
| 324 if (use_x11 || use_xkbcommon) { |
| 325 sources += [ "ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.cc" ] |
| 326 } |
323 deps += [ | 327 deps += [ |
324 "//ui/events/ozone:events_ozone", | 328 "//ui/events/ozone:events_ozone", |
325 "//ui/events/ozone:events_ozone_evdev", | 329 "//ui/events/ozone:events_ozone_evdev", |
326 "//ui/events/ozone:events_ozone_layout", | 330 "//ui/events/ozone:events_ozone_layout", |
327 ] | 331 ] |
328 } | 332 } |
329 } | 333 } |
330 | 334 |
331 if (is_nacl) { | 335 if (is_nacl) { |
332 source_set("latency_info") { | 336 source_set("latency_info") { |
333 sources = [ | 337 sources = [ |
334 "ipc/latency_info_param_traits.cc", | 338 "ipc/latency_info_param_traits.cc", |
335 "ipc/latency_info_param_traits.h", | 339 "ipc/latency_info_param_traits.h", |
336 "latency_info.cc", | 340 "latency_info.cc", |
337 "latency_info.h", | 341 "latency_info.h", |
338 ] | 342 ] |
339 } | 343 } |
340 } | 344 } |
OLD | NEW |