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

Side by Side Diff: third_party/WebKit/Source/core/BUILD.gn

Issue 1938343002: Generate a series of nested switch statements to parse CSSPrimitiveValue units. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//third_party/WebKit/Source/bindings/bindings.gni") 7 import("//third_party/WebKit/Source/bindings/bindings.gni")
8 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni") 8 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni")
9 import("//third_party/WebKit/Source/bindings/modules/modules.gni") 9 import("//third_party/WebKit/Source/bindings/modules/modules.gni")
10 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") 10 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni")
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 345
346 # IDL dictionary impl files generated by IDL compiler 346 # IDL dictionary impl files generated by IDL compiler
347 sources += generated_core_dictionary_files 347 sources += generated_core_dictionary_files
348 348
349 sources += [ 349 sources += [
350 # Additional .cpp files for HashTools.h 350 # Additional .cpp files for HashTools.h
351 "$blink_core_output_dir/CSSPropertyNames.cpp", 351 "$blink_core_output_dir/CSSPropertyNames.cpp",
352 "$blink_core_output_dir/CSSValueKeywords.cpp", 352 "$blink_core_output_dir/CSSValueKeywords.cpp",
353 353
354 # Additional .cpp files from make_core_generated actions. 354 # Additional .cpp files from make_core_generated actions.
355 "$blink_core_output_dir/CSSPrimitiveValueUnitTrie.cpp",
355 "$blink_core_output_dir/Event.cpp", 356 "$blink_core_output_dir/Event.cpp",
356 "$blink_core_output_dir/EventHeaders.h", 357 "$blink_core_output_dir/EventHeaders.h",
357 "$blink_core_output_dir/EventNames.cpp", 358 "$blink_core_output_dir/EventNames.cpp",
358 "$blink_core_output_dir/EventNames.h", 359 "$blink_core_output_dir/EventNames.h",
359 "$blink_core_output_dir/EventTargetNames.cpp", 360 "$blink_core_output_dir/EventTargetNames.cpp",
360 "$blink_core_output_dir/EventTargetNames.h", 361 "$blink_core_output_dir/EventTargetNames.h",
361 "$blink_core_output_dir/EventTypeNames.cpp", 362 "$blink_core_output_dir/EventTypeNames.cpp",
362 "$blink_core_output_dir/EventTypeNames.h", 363 "$blink_core_output_dir/EventTypeNames.h",
363 "$blink_core_output_dir/HTMLElementFactory.cpp", 364 "$blink_core_output_dir/HTMLElementFactory.cpp",
364 "$blink_core_output_dir/HTMLElementFactory.h", 365 "$blink_core_output_dir/HTMLElementFactory.h",
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 "$rel_blink_core_gen_dir/testing", 559 "$rel_blink_core_gen_dir/testing",
559 ] 560 ]
560 } 561 }
561 562
562 # make_core_generated ---------------------------------------------------------- 563 # make_core_generated ----------------------------------------------------------
563 564
564 # GYP version: WebKit/Source/core/core_generated.gyp:make_core_generated 565 # GYP version: WebKit/Source/core/core_generated.gyp:make_core_generated
565 group("make_core_generated") { 566 group("make_core_generated") {
566 public_deps = [ 567 public_deps = [
567 ":make_core_generated_bison", 568 ":make_core_generated_bison",
569 ":make_core_generated_css_primitive_value_unit_trie",
568 ":make_core_generated_css_property_metadata", 570 ":make_core_generated_css_property_metadata",
569 ":make_core_generated_css_property_names", 571 ":make_core_generated_css_property_names",
570 ":make_core_generated_css_tokenizer_codepoints", 572 ":make_core_generated_css_tokenizer_codepoints",
571 ":make_core_generated_css_value_keywords", 573 ":make_core_generated_css_value_keywords",
572 ":make_core_generated_cssom_types", 574 ":make_core_generated_cssom_types",
573 ":make_core_generated_event_factory", 575 ":make_core_generated_event_factory",
574 ":make_core_generated_event_names", 576 ":make_core_generated_event_names",
575 ":make_core_generated_event_target_names", 577 ":make_core_generated_event_target_names",
576 ":make_core_generated_event_type_names", 578 ":make_core_generated_event_type_names",
577 ":make_core_generated_fetch_initiator_type_names", 579 ":make_core_generated_fetch_initiator_type_names",
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 ] 965 ]
964 966
965 args = [ 967 args = [
966 "--output_dir", 968 "--output_dir",
967 rel_blink_core_gen_dir, 969 rel_blink_core_gen_dir,
968 ] 970 ]
969 971
970 deps = make_core_generated_deps 972 deps = make_core_generated_deps
971 } 973 }
972 974
975 # "CSSPrimitiveValueUnitTrie" in make_core_generated from GYP.
976 action("make_core_generated_css_primitive_value_unit_trie") {
977 visibility = [] # Allow re-assignment of list.
978 visibility = [ ":make_core_generated" ]
979 script = "../build/scripts/make_css_primitive_value_unit_trie.py"
980
981 input_file = "css/CSSPrimitiveValueUnits.in"
982 inputs = scripts_for_in_files + [
983 input_file,
984 "../build/scripts/templates/CSSPrimitiveValueUnitTrie.cpp.tmpl",
985 ]
986 outputs = [
987 "$blink_core_output_dir/CSSPrimitiveValueUnitTrie.cpp",
988 ]
989
990 args = [
991 rebase_path(input_file, root_build_dir),
992 "--output_dir",
993 rel_blink_core_gen_dir,
994 ]
995
996 deps = make_core_generated_deps
997 }
998
973 # "HTMLElementLookupTrie" in make_core_generated from GYP. 999 # "HTMLElementLookupTrie" in make_core_generated from GYP.
974 action("make_core_generated_html_element_lookup_trie") { 1000 action("make_core_generated_html_element_lookup_trie") {
975 visibility = [] # Allow re-assignment of list. 1001 visibility = [] # Allow re-assignment of list.
976 visibility = [ ":make_core_generated" ] 1002 visibility = [ ":make_core_generated" ]
977 script = "../build/scripts/make_element_lookup_trie.py" 1003 script = "../build/scripts/make_element_lookup_trie.py"
978 1004
979 input_file = "html/HTMLTagNames.in" 1005 input_file = "html/HTMLTagNames.in"
980 inputs = scripts_for_in_files + [ 1006 inputs = scripts_for_in_files + [
981 input_file, 1007 input_file,
982 "../build/scripts/templates/ElementLookupTrie.cpp.tmpl", 1008 "../build/scripts/templates/ElementLookupTrie.cpp.tmpl",
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 "$blink_core_output_dir/{{source_name_part}}.h", 1055 "$blink_core_output_dir/{{source_name_part}}.h",
1030 ] 1056 ]
1031 args = [ 1057 args = [
1032 "{{source}}", 1058 "{{source}}",
1033 rel_blink_core_gen_dir, 1059 rel_blink_core_gen_dir,
1034 bison_exe, 1060 bison_exe,
1035 ] 1061 ]
1036 1062
1037 deps = make_core_generated_deps 1063 deps = make_core_generated_deps
1038 } 1064 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698