Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(832)

Side by Side Diff: sky/engine/core/BUILD.gn

Issue 657303006: Use process_in_files helper for make_core_generated_html_element_lookup_trie (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//sky/engine/bindings/scripts/scripts.gni") 5 import("//sky/engine/bindings/scripts/scripts.gni")
6 import("//sky/engine/build/scripts/scripts.gni") 6 import("//sky/engine/build/scripts/scripts.gni")
7 import("//sky/engine/core/core.gni") 7 import("//sky/engine/core/core.gni")
8 8
9 visibility = ["//sky/engine/*"] 9 visibility = ["//sky/engine/*"]
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 ] 86 ]
87 } 87 }
88 88
89 source_set("core_generated") { 89 source_set("core_generated") {
90 sources = bindings_core_v8_files 90 sources = bindings_core_v8_files
91 # These files include all the .cpp files generated from the .idl files 91 # These files include all the .cpp files generated from the .idl files
92 # in webcore_files. 92 # in webcore_files.
93 sources += bindings_core_generated_aggregate_files 93 sources += bindings_core_generated_aggregate_files
94 94
95 sources += [ 95 sources += [
96 "$sky_core_output_dir/HTMLElementLookupTrie.cpp",
97 "$sky_core_output_dir/HTMLElementLookupTrie.h",
98
99 # Generated from HTMLEntityNames.in 96 # Generated from HTMLEntityNames.in
100 "$sky_core_output_dir/HTMLEntityTable.cpp", 97 "$sky_core_output_dir/HTMLEntityTable.cpp",
101 98
102 # Generated from CSSTokenizer-in.cpp 99 # Generated from CSSTokenizer-in.cpp
103 "$sky_core_output_dir/CSSTokenizer.cpp", 100 "$sky_core_output_dir/CSSTokenizer.cpp",
104 101
105 # Generated from BisonCSSParser-in.cpp 102 # Generated from BisonCSSParser-in.cpp
106 "$sky_core_output_dir/BisonCSSParser.cpp", 103 "$sky_core_output_dir/BisonCSSParser.cpp",
107 104
108 # Generated from HTMLMetaElement-in.cpp 105 # Generated from HTMLMetaElement-in.cpp
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 "$sky_core_output_dir/MediaQueryTokenizerCodepoints.cpp", 473 "$sky_core_output_dir/MediaQueryTokenizerCodepoints.cpp",
477 ] 474 ]
478 475
479 args = [ 476 args = [
480 "--output_dir", rel_sky_core_gen_dir, 477 "--output_dir", rel_sky_core_gen_dir,
481 ] 478 ]
482 479
483 deps = make_core_generated_deps 480 deps = make_core_generated_deps
484 } 481 }
485 482
486 action("make_core_generated_html_element_lookup_trie") { 483 process_in_files("make_core_generated_html_element_lookup_trie") {
487 script = "../build/scripts/make_element_lookup_trie.py" 484 script = "../build/scripts/make_element_lookup_trie.py"
488 485 in_files = [
489 input_file = "html/HTMLTagNames.in" 486 "html/HTMLTagNames.in",
490 inputs = scripts_for_in_files + [ 487 ]
491 input_file, 488 other_inputs = [
492 "../build/scripts/templates/ElementLookupTrie.cpp.tmpl", 489 "../build/scripts/templates/ElementLookupTrie.cpp.tmpl",
493 "../build/scripts/templates/ElementLookupTrie.h.tmpl", 490 "../build/scripts/templates/ElementLookupTrie.h.tmpl",
494 ] 491 ]
495 outputs = [ 492 outputs = [
496 "$sky_core_output_dir/HTMLElementLookupTrie.cpp", 493 "$sky_core_output_dir/HTMLElementLookupTrie.cpp",
497 "$sky_core_output_dir/HTMLElementLookupTrie.h", 494 "$sky_core_output_dir/HTMLElementLookupTrie.h",
498 ] 495 ]
499 496 deps = [
500 args = [ 497 ":core_names",
501 rebase_path(input_file, root_build_dir), 498 ":libraries",
502 "--output_dir", rel_sky_core_gen_dir,
503 ] 499 ]
504
505 deps = make_core_generated_deps
506 } 500 }
507 501
508 action_foreach("make_core_generated_bison") { 502 action_foreach("make_core_generated_bison") {
509 script = "../build/scripts/rule_bison.py" 503 script = "../build/scripts/rule_bison.py"
510 sources = [ 504 sources = [
511 "css/parser/CSSGrammar.y", 505 "css/parser/CSSGrammar.y",
512 ] 506 ]
513 outputs = [ 507 outputs = [
514 "$sky_core_output_dir/{{source_name_part}}.cpp", 508 "$sky_core_output_dir/{{source_name_part}}.cpp",
515 "$sky_core_output_dir/{{source_name_part}}.h", 509 "$sky_core_output_dir/{{source_name_part}}.h",
516 ] 510 ]
517 args = [ 511 args = [
518 "{{source}}", 512 "{{source}}",
519 rel_sky_core_gen_dir, 513 rel_sky_core_gen_dir,
520 bison_exe, 514 bison_exe,
521 ] 515 ]
522 516
523 deps = make_core_generated_deps 517 deps = make_core_generated_deps
524 } 518 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698