Index: ui/events/BUILD.gn |
diff --git a/ui/events/BUILD.gn b/ui/events/BUILD.gn |
index c697e548894f62ae1deb14c02a9315a83080f572..39d00e344cdcddbb03c90620e9931d5197391ce2 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") { |
@@ -274,6 +277,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/dom3/generate_dom_values.py" |
+ |
+ dom_values = "keycodes/dom3/dom_values.txt" |
+ native_values = "keycodes/dom3/native_codes.txt" |
+ |
+ domcode_declaration_h_file = "$target_gen_dir/keycodes/dom3/domcode.h" |
+ domcode_string_h_file = "$target_gen_dir/keycodes/dom3/domcode_string.h" |
+ domcode_table_h_file = "$target_gen_dir/keycodes/dom3/domcode_table.h" |
+ domkey_declaration_h_file = "$target_gen_dir/keycodes/dom3/domkey.h" |
+ domkey_string_h_file = "$target_gen_dir/keycodes/dom3/domkey_string.h" |
+ domkey_table_h_file = "$target_gen_dir/keycodes/dom3/domkey_table.h" |
+ native_code_data_h_file = "$target_gen_dir/keycodes/dom3/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 = [ |
"android/scroller_unittest.cc", |