提交 988d5e7c 编写于 作者: E Eric Seidel

Use process_in_files helper for make_core_generated_html_element_lookup_trie

This lets us get rid of the manual source listing in core_generated

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/657303006
上级 e8c9ecc5
...@@ -93,9 +93,6 @@ source_set("core_generated") { ...@@ -93,9 +93,6 @@ source_set("core_generated") {
sources += bindings_core_generated_aggregate_files sources += bindings_core_generated_aggregate_files
sources += [ sources += [
"$sky_core_output_dir/HTMLElementLookupTrie.cpp",
"$sky_core_output_dir/HTMLElementLookupTrie.h",
# Generated from HTMLEntityNames.in # Generated from HTMLEntityNames.in
"$sky_core_output_dir/HTMLEntityTable.cpp", "$sky_core_output_dir/HTMLEntityTable.cpp",
...@@ -483,12 +480,12 @@ action("make_core_generated_media_query_tokenizer_codepoints") { ...@@ -483,12 +480,12 @@ action("make_core_generated_media_query_tokenizer_codepoints") {
deps = make_core_generated_deps deps = make_core_generated_deps
} }
action("make_core_generated_html_element_lookup_trie") { process_in_files("make_core_generated_html_element_lookup_trie") {
script = "../build/scripts/make_element_lookup_trie.py" script = "../build/scripts/make_element_lookup_trie.py"
in_files = [
input_file = "html/HTMLTagNames.in" "html/HTMLTagNames.in",
inputs = scripts_for_in_files + [ ]
input_file, other_inputs = [
"../build/scripts/templates/ElementLookupTrie.cpp.tmpl", "../build/scripts/templates/ElementLookupTrie.cpp.tmpl",
"../build/scripts/templates/ElementLookupTrie.h.tmpl", "../build/scripts/templates/ElementLookupTrie.h.tmpl",
] ]
...@@ -496,13 +493,10 @@ action("make_core_generated_html_element_lookup_trie") { ...@@ -496,13 +493,10 @@ action("make_core_generated_html_element_lookup_trie") {
"$sky_core_output_dir/HTMLElementLookupTrie.cpp", "$sky_core_output_dir/HTMLElementLookupTrie.cpp",
"$sky_core_output_dir/HTMLElementLookupTrie.h", "$sky_core_output_dir/HTMLElementLookupTrie.h",
] ]
deps = [
args = [ ":core_names",
rebase_path(input_file, root_build_dir), ":libraries",
"--output_dir", rel_sky_core_gen_dir,
] ]
deps = make_core_generated_deps
} }
action_foreach("make_core_generated_bison") { action_foreach("make_core_generated_bison") {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册