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

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: Remove extra imports 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 # IDL dictionary impl files generated by IDL compiler 337 # IDL dictionary impl files generated by IDL compiler
338 sources += generated_core_dictionary_files 338 sources += generated_core_dictionary_files
339 339
340 sources += [ 340 sources += [
341 # Additional .cpp files for HashTools.h 341 # Additional .cpp files for HashTools.h
342 "$blink_core_output_dir/CSSPropertyNames.cpp", 342 "$blink_core_output_dir/CSSPropertyNames.cpp",
343 "$blink_core_output_dir/CSSValueKeywords.cpp", 343 "$blink_core_output_dir/CSSValueKeywords.cpp",
344 344
345 # Additional .cpp files from make_core_generated actions. 345 # Additional .cpp files from make_core_generated actions.
346 "$blink_core_output_dir/CSSPrimitiveValueUnitTrie.cpp",
346 "$blink_core_output_dir/Event.cpp", 347 "$blink_core_output_dir/Event.cpp",
347 "$blink_core_output_dir/EventHeaders.h", 348 "$blink_core_output_dir/EventHeaders.h",
348 "$blink_core_output_dir/EventNames.cpp", 349 "$blink_core_output_dir/EventNames.cpp",
349 "$blink_core_output_dir/EventNames.h", 350 "$blink_core_output_dir/EventNames.h",
350 "$blink_core_output_dir/EventTargetNames.cpp", 351 "$blink_core_output_dir/EventTargetNames.cpp",
351 "$blink_core_output_dir/EventTargetNames.h", 352 "$blink_core_output_dir/EventTargetNames.h",
352 "$blink_core_output_dir/EventTypeNames.cpp", 353 "$blink_core_output_dir/EventTypeNames.cpp",
353 "$blink_core_output_dir/EventTypeNames.h", 354 "$blink_core_output_dir/EventTypeNames.h",
354 "$blink_core_output_dir/HTMLElementFactory.cpp", 355 "$blink_core_output_dir/HTMLElementFactory.cpp",
355 "$blink_core_output_dir/HTMLElementFactory.h", 356 "$blink_core_output_dir/HTMLElementFactory.h",
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 "$rel_blink_core_gen_dir/testing", 550 "$rel_blink_core_gen_dir/testing",
550 ] 551 ]
551 } 552 }
552 553
553 # make_core_generated ---------------------------------------------------------- 554 # make_core_generated ----------------------------------------------------------
554 555
555 # GYP version: WebKit/Source/core/core_generated.gyp:make_core_generated 556 # GYP version: WebKit/Source/core/core_generated.gyp:make_core_generated
556 group("make_core_generated") { 557 group("make_core_generated") {
557 public_deps = [ 558 public_deps = [
558 ":make_core_generated_bison", 559 ":make_core_generated_bison",
560 ":make_core_generated_css_primitive_value_unit_trie",
559 ":make_core_generated_css_property_metadata", 561 ":make_core_generated_css_property_metadata",
560 ":make_core_generated_css_property_names", 562 ":make_core_generated_css_property_names",
561 ":make_core_generated_css_tokenizer_codepoints", 563 ":make_core_generated_css_tokenizer_codepoints",
562 ":make_core_generated_css_value_keywords", 564 ":make_core_generated_css_value_keywords",
563 ":make_core_generated_cssom_types", 565 ":make_core_generated_cssom_types",
564 ":make_core_generated_event_factory", 566 ":make_core_generated_event_factory",
565 ":make_core_generated_event_names", 567 ":make_core_generated_event_names",
566 ":make_core_generated_event_target_names", 568 ":make_core_generated_event_target_names",
567 ":make_core_generated_event_type_names", 569 ":make_core_generated_event_type_names",
568 ":make_core_generated_fetch_initiator_type_names", 570 ":make_core_generated_fetch_initiator_type_names",
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 ] 956 ]
955 957
956 args = [ 958 args = [
957 "--output_dir", 959 "--output_dir",
958 rel_blink_core_gen_dir, 960 rel_blink_core_gen_dir,
959 ] 961 ]
960 962
961 deps = make_core_generated_deps 963 deps = make_core_generated_deps
962 } 964 }
963 965
966 # "CSSPrimitiveValueUnitTrie" in make_core_generated from GYP.
967 action("make_core_generated_css_primitive_value_unit_trie") {
968 visibility = [] # Allow re-assignment of list.
969 visibility = [ ":make_core_generated" ]
970 script = "../build/scripts/make_css_primitive_value_unit_trie.py"
971
972 input_file = "css/CSSPrimitiveValueUnits.in"
973 inputs = make_trie_helpers_files + [
974 input_file,
975 "../build/scripts/templates/CSSPrimitiveValueUnitTrie.cpp.tmpl",
976 ]
977 outputs = [
978 "$blink_core_output_dir/CSSPrimitiveValueUnitTrie.cpp",
979 ]
980
981 args = [
982 rebase_path(input_file, root_build_dir),
983 "--output_dir",
984 rel_blink_core_gen_dir,
985 ]
986
987 deps = make_core_generated_deps
988 }
989
964 # "HTMLElementLookupTrie" in make_core_generated from GYP. 990 # "HTMLElementLookupTrie" in make_core_generated from GYP.
965 action("make_core_generated_html_element_lookup_trie") { 991 action("make_core_generated_html_element_lookup_trie") {
966 visibility = [] # Allow re-assignment of list. 992 visibility = [] # Allow re-assignment of list.
967 visibility = [ ":make_core_generated" ] 993 visibility = [ ":make_core_generated" ]
968 script = "../build/scripts/make_element_lookup_trie.py" 994 script = "../build/scripts/make_element_lookup_trie.py"
969 995
970 input_file = "html/HTMLTagNames.in" 996 input_file = "html/HTMLTagNames.in"
971 inputs = make_trie_helpers_files + [ 997 inputs = make_trie_helpers_files + [
972 input_file, 998 input_file,
973 "../build/scripts/templates/ElementLookupTrie.cpp.tmpl", 999 "../build/scripts/templates/ElementLookupTrie.cpp.tmpl",
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 "$blink_core_output_dir/{{source_name_part}}.h", 1046 "$blink_core_output_dir/{{source_name_part}}.h",
1021 ] 1047 ]
1022 args = [ 1048 args = [
1023 "{{source}}", 1049 "{{source}}",
1024 rel_blink_core_gen_dir, 1050 rel_blink_core_gen_dir,
1025 bison_exe, 1051 bison_exe,
1026 ] 1052 ]
1027 1053
1028 deps = make_core_generated_deps 1054 deps = make_core_generated_deps
1029 } 1055 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698