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