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

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

Issue 1538663003: Add code generation for ExperimentalFeatures class from RuntimeEnabledFeatures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 public_deps = [ 574 public_deps = [
575 ":make_core_generated_bison", 575 ":make_core_generated_bison",
576 ":make_core_generated_css_property_metadata", 576 ":make_core_generated_css_property_metadata",
577 ":make_core_generated_css_property_names", 577 ":make_core_generated_css_property_names",
578 ":make_core_generated_css_tokenizer_codepoints", 578 ":make_core_generated_css_tokenizer_codepoints",
579 ":make_core_generated_css_value_keywords", 579 ":make_core_generated_css_value_keywords",
580 ":make_core_generated_event_factory", 580 ":make_core_generated_event_factory",
581 ":make_core_generated_event_names", 581 ":make_core_generated_event_names",
582 ":make_core_generated_event_target_names", 582 ":make_core_generated_event_target_names",
583 ":make_core_generated_event_type_names", 583 ":make_core_generated_event_type_names",
584 ":make_core_generated_experimental_features",
584 ":make_core_generated_fetch_initiator_type_names", 585 ":make_core_generated_fetch_initiator_type_names",
585 ":make_core_generated_html_element_factory", 586 ":make_core_generated_html_element_factory",
586 ":make_core_generated_html_element_lookup_trie", 587 ":make_core_generated_html_element_lookup_trie",
587 ":make_core_generated_html_element_type_helpers", 588 ":make_core_generated_html_element_type_helpers",
588 ":make_core_generated_html_entity_table", 589 ":make_core_generated_html_entity_table",
589 ":make_core_generated_html_tokenizer_names", 590 ":make_core_generated_html_tokenizer_names",
590 ":make_core_generated_input_type_names", 591 ":make_core_generated_input_type_names",
591 ":make_core_generated_make_token_matcher_for_viewport", 592 ":make_core_generated_make_token_matcher_for_viewport",
592 ":make_core_generated_math_ml_names", 593 ":make_core_generated_math_ml_names",
593 ":make_core_generated_media_feature_names", 594 ":make_core_generated_media_feature_names",
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 983
983 args = [ 984 args = [
984 rebase_path(input_file, root_build_dir), 985 rebase_path(input_file, root_build_dir),
985 "--output_dir", 986 "--output_dir",
986 rel_blink_core_gen_dir, 987 rel_blink_core_gen_dir,
987 ] 988 ]
988 989
989 deps = make_core_generated_deps 990 deps = make_core_generated_deps
990 } 991 }
991 992
993 # "ExperimentalFeatures" action in make_core_generated from GYP.
994 action("make_core_generated_experimental_features") {
995 script = "../build/scripts/make_experimental_features.py"
996
997 inputs = scripts_for_in_files + [
998 "../build/scripts/make_experimental_features.py",
999 "../platform/RuntimeEnabledFeatures.in",
1000 "../build/scripts/templates/ExperimentalFeatures.h.tmpl",
1001 "../build/scripts/templates/ExperimentalFeatures.idl.tmpl",
chasej 2015/12/21 16:33:03 This should be ExperimentalFeatures.cpp.tmpl?
iclelland 2015/12/21 17:17:24 Absolutely should. Done.
1002 ]
1003 outputs = [
1004 "$blink_core_output_dir/experiments/ExperimentalFeatures.idl",
chasej 2015/12/21 16:33:03 This should be ExperimentalFeatures.cpp?
iclelland 2015/12/21 17:17:24 Done.
1005 "$blink_core_output_dir/experiments/ExperimentalFeatures.h",
1006 ]
1007
1008 args = [
1009 rebase_path("../platform/RuntimeEnabledFeatures.in", root_build_dir),
1010 "--output_dir",
1011 "$rel_blink_core_gen_dir/experiments",
1012 ]
1013 }
1014
992 # The bison rules from make_core_generated. 1015 # The bison rules from make_core_generated.
993 action_foreach("make_core_generated_bison") { 1016 action_foreach("make_core_generated_bison") {
994 script = "../build/scripts/rule_bison.py" 1017 script = "../build/scripts/rule_bison.py"
995 sources = [ 1018 sources = [
996 "xml/XPathGrammar.y", 1019 "xml/XPathGrammar.y",
997 ] 1020 ]
998 outputs = [ 1021 outputs = [
999 "$blink_core_output_dir/{{source_name_part}}.cpp", 1022 "$blink_core_output_dir/{{source_name_part}}.cpp",
1000 "$blink_core_output_dir/{{source_name_part}}.h", 1023 "$blink_core_output_dir/{{source_name_part}}.h",
1001 ] 1024 ]
1002 args = [ 1025 args = [
1003 "{{source}}", 1026 "{{source}}",
1004 rel_blink_core_gen_dir, 1027 rel_blink_core_gen_dir,
1005 bison_exe, 1028 bison_exe,
1006 ] 1029 ]
1007 1030
1008 deps = make_core_generated_deps 1031 deps = make_core_generated_deps
1009 } 1032 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698