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

Unified 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: Fix broken GN build dependency 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/BUILD.gn
diff --git a/third_party/WebKit/Source/core/BUILD.gn b/third_party/WebKit/Source/core/BUILD.gn
index 315a91b7900934963b2cc8ef625a56382bffe5d9..87c50db22fa2a77ed1264abfa705a66d9ac43da8 100644
--- a/third_party/WebKit/Source/core/BUILD.gn
+++ b/third_party/WebKit/Source/core/BUILD.gn
@@ -581,6 +581,7 @@ group("make_core_generated") {
":make_core_generated_event_names",
":make_core_generated_event_target_names",
":make_core_generated_event_type_names",
+ ":make_core_generated_experimental_features",
":make_core_generated_fetch_initiator_type_names",
":make_core_generated_html_element_factory",
":make_core_generated_html_element_lookup_trie",
@@ -989,6 +990,28 @@ action("make_core_generated_html_element_lookup_trie") {
deps = make_core_generated_deps
}
+# "ExperimentalFeatures" action in make_core_generated from GYP.
+action("make_core_generated_experimental_features") {
+ script = "../build/scripts/make_experimental_features.py"
+
+ inputs = scripts_for_in_files + [
+ "../build/scripts/make_experimental_features.py",
+ "../platform/RuntimeEnabledFeatures.in",
+ "../build/scripts/templates/ExperimentalFeatures.cpp.tmpl",
+ "../build/scripts/templates/ExperimentalFeatures.h.tmpl",
+ ]
+ outputs = [
+ "$blink_core_output_dir/experiments/ExperimentalFeatures.cpp",
+ "$blink_core_output_dir/experiments/ExperimentalFeatures.h",
+ ]
+
+ args = [
+ rebase_path("../platform/RuntimeEnabledFeatures.in", root_build_dir),
+ "--output_dir",
+ "$rel_blink_core_gen_dir/experiments",
+ ]
+}
+
# The bison rules from make_core_generated.
action_foreach("make_core_generated_bison") {
script = "../build/scripts/rule_bison.py"

Powered by Google App Engine
This is Rietveld 408576698