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 static_library("dom4_keycode_converter") { | 7 static_library("dom4_keycode_converter") { |
8 sources = [ | 8 sources = [ |
9 "keycodes/dom4/keycode_converter.cc", | 9 "keycodes/dom4/keycode_converter.cc", |
10 "keycodes/dom4/keycode_converter.h", | 10 "keycodes/dom4/keycode_converter.h", |
11 "keycodes/dom4/keycode_converter_data.h", | 11 "keycodes/dom4/keycode_converter_data.h", |
12 ] | 12 ] |
13 | 13 |
14 deps = [ "//base" ] | 14 deps = [ |
| 15 "//base", |
| 16 ":generate_dom4_keycodes", |
| 17 ] |
15 } | 18 } |
16 | 19 |
17 component("events_base") { | 20 component("events_base") { |
18 sources = [ | 21 sources = [ |
19 "android/scroller.cc", | 22 "android/scroller.cc", |
20 "android/scroller.h", | 23 "android/scroller.h", |
21 "device_data_manager.cc", | 24 "device_data_manager.cc", |
22 "device_data_manager.h", | 25 "device_data_manager.h", |
23 "device_hotplug_event_observer.h", | 26 "device_hotplug_event_observer.h", |
24 "event_constants.h", | 27 "event_constants.h", |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 270 |
268 if (use_x11) { | 271 if (use_x11) { |
269 sources += [ | 272 sources += [ |
270 "test/events_test_utils_x11.cc", | 273 "test/events_test_utils_x11.cc", |
271 "test/events_test_utils_x11.h", | 274 "test/events_test_utils_x11.h", |
272 ] | 275 ] |
273 deps += [ "//ui/gfx/x" ] | 276 deps += [ "//ui/gfx/x" ] |
274 } | 277 } |
275 } | 278 } |
276 | 279 |
| 280 # GYP version: ui/events/events.gyp:generate_dom4_keycodes |
| 281 action("generate_dom4_keycodes") { |
| 282 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 283 |
| 284 script = "keycodes/dom3/generate_dom_values.py" |
| 285 |
| 286 dom_values = "keycodes/dom3/dom_values.txt" |
| 287 native_values = "keycodes/dom3/native_codes.txt" |
| 288 |
| 289 domcode_declaration_h_file = "$target_gen_dir/keycodes/dom3/domcode.h" |
| 290 domcode_string_h_file = "$target_gen_dir/keycodes/dom3/domcode_string.h" |
| 291 domcode_table_h_file = "$target_gen_dir/keycodes/dom3/domcode_table.h" |
| 292 domkey_declaration_h_file = "$target_gen_dir/keycodes/dom3/domkey.h" |
| 293 domkey_string_h_file = "$target_gen_dir/keycodes/dom3/domkey_string.h" |
| 294 domkey_table_h_file = "$target_gen_dir/keycodes/dom3/domkey_table.h" |
| 295 native_code_data_h_file = "$target_gen_dir/keycodes/dom3/native_code_data.h" |
| 296 |
| 297 sources = [ |
| 298 dom_values, |
| 299 native_values, |
| 300 ] |
| 301 |
| 302 outputs = [ |
| 303 domcode_declaration_h_file, |
| 304 domcode_string_h_file, |
| 305 domcode_table_h_file, |
| 306 domkey_declaration_h_file, |
| 307 domkey_string_h_file, |
| 308 domkey_table_h_file, |
| 309 native_code_data_h_file, |
| 310 ] |
| 311 |
| 312 args = [ |
| 313 "--input_dom=" + rebase_path(dom_values, root_build_dir), |
| 314 "--input_native=" + rebase_path(native_values, root_build_dir), |
| 315 "--output_dom_code_declaration=" + |
| 316 rebase_path(domcode_declaration_h_file, root_build_dir), |
| 317 "--output_dom_code_string=" + |
| 318 rebase_path(domcode_string_h_file, root_build_dir), |
| 319 "--output_dom_code_table=" + |
| 320 rebase_path(domcode_table_h_file, root_build_dir), |
| 321 "--output_dom_key_declaration=" + |
| 322 rebase_path(domkey_declaration_h_file, root_build_dir), |
| 323 "--output_dom_key_string=" + |
| 324 rebase_path(domkey_string_h_file, root_build_dir), |
| 325 "--output_dom_key_table=" + |
| 326 rebase_path(domkey_table_h_file, root_build_dir), |
| 327 "--output_native=" + rebase_path(native_code_data_h_file, root_build_dir), |
| 328 ] |
| 329 } |
| 330 |
277 test("events_unittests") { | 331 test("events_unittests") { |
278 sources = [ | 332 sources = [ |
279 "android/scroller_unittest.cc", | 333 "android/scroller_unittest.cc", |
280 "cocoa/events_mac_unittest.mm", | 334 "cocoa/events_mac_unittest.mm", |
281 "event_dispatcher_unittest.cc", | 335 "event_dispatcher_unittest.cc", |
282 "event_processor_unittest.cc", | 336 "event_processor_unittest.cc", |
283 "event_rewriter_unittest.cc", | 337 "event_rewriter_unittest.cc", |
284 "event_unittest.cc", | 338 "event_unittest.cc", |
285 "gesture_detection/bitset_32_unittest.cc", | 339 "gesture_detection/bitset_32_unittest.cc", |
286 "gesture_detection/gesture_event_data_packet_unittest.cc", | 340 "gesture_detection/gesture_event_data_packet_unittest.cc", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 "ozone/evdev/touch_event_converter_evdev_unittest.cc", | 379 "ozone/evdev/touch_event_converter_evdev_unittest.cc", |
326 ] | 380 ] |
327 } | 381 } |
328 | 382 |
329 if (use_aura) { | 383 if (use_aura) { |
330 sources += [ | 384 sources += [ |
331 "gestures/gesture_provider_aura_unittest.cc", | 385 "gestures/gesture_provider_aura_unittest.cc", |
332 ] | 386 ] |
333 } | 387 } |
334 } | 388 } |
OLD | NEW |