| Index: ui/events/BUILD.gn
|
| diff --git a/ui/events/BUILD.gn b/ui/events/BUILD.gn
|
| index 7277cb31a4a3d173520d695a7d1a37d726a0da8f..2628c251ec40d92c4c5963e8e985c2dd15c1e75f 100644
|
| --- a/ui/events/BUILD.gn
|
| +++ b/ui/events/BUILD.gn
|
| @@ -11,7 +11,10 @@ static_library("dom4_keycode_converter") {
|
| "keycodes/dom4/keycode_converter_data.h",
|
| ]
|
|
|
| - deps = [ "//base" ]
|
| + deps = [
|
| + "//base",
|
| + ":generate_dom4_keycodes",
|
| + ]
|
| }
|
|
|
| component("events_base") {
|
| @@ -271,6 +274,57 @@ source_set("test_support") {
|
| }
|
| }
|
|
|
| +# GYP version: ui/events/events.gyp:generate_dom4_keycodes
|
| +action("generate_dom4_keycodes") {
|
| + visibility = [ ":*" ] # Only targets in this file can depend on this.
|
| +
|
| + script = "keycodes/dom4/generate_dom_values.py"
|
| +
|
| + dom_values = "keycodes/dom4/dom_values.txt"
|
| + native_values = "keycodes/dom4/native_codes.txt"
|
| +
|
| + domcode_declaration_h_file = "$target_gen_dir/keycodes/dom4/domcode.h"
|
| + domcode_string_h_file = "$target_gen_dir/keycodes/dom4/domcode_string.h"
|
| + domcode_table_h_file = "$target_gen_dir/keycodes/dom4/domcode_table.h"
|
| + domkey_declaration_h_file = "$target_gen_dir/keycodes/dom4/domkey.h"
|
| + domkey_string_h_file = "$target_gen_dir/keycodes/dom4/domkey_string.h"
|
| + domkey_table_h_file = "$target_gen_dir/keycodes/dom4/domkey_table.h"
|
| + native_code_data_h_file = "$target_gen_dir/keycodes/dom4/native_code_data.h"
|
| +
|
| + sources = [
|
| + dom_values,
|
| + native_values,
|
| + ]
|
| +
|
| + outputs = [
|
| + domcode_declaration_h_file,
|
| + domcode_string_h_file,
|
| + domcode_table_h_file,
|
| + domkey_declaration_h_file,
|
| + domkey_string_h_file,
|
| + domkey_table_h_file,
|
| + native_code_data_h_file,
|
| + ]
|
| +
|
| + args = [
|
| + "--input_dom=" + rebase_path(dom_values, root_build_dir),
|
| + "--input_native=" + rebase_path(native_values, root_build_dir),
|
| + "--output_dom_code_declaration=" +
|
| + rebase_path(domcode_declaration_h_file, root_build_dir),
|
| + "--output_dom_code_string=" +
|
| + rebase_path(domcode_string_h_file, root_build_dir),
|
| + "--output_dom_code_table=" +
|
| + rebase_path(domcode_table_h_file, root_build_dir),
|
| + "--output_dom_key_declaration=" +
|
| + rebase_path(domkey_declaration_h_file, root_build_dir),
|
| + "--output_dom_key_string=" +
|
| + rebase_path(domkey_string_h_file, root_build_dir),
|
| + "--output_dom_key_table=" +
|
| + rebase_path(domkey_table_h_file, root_build_dir),
|
| + "--output_native=" + rebase_path(native_code_data_h_file, root_build_dir),
|
| + ]
|
| +}
|
| +
|
| test("events_unittests") {
|
| sources = [
|
| "cocoa/events_mac_unittest.mm",
|
|
|