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

Unified Diff: third_party/WebKit/Source/build/scripts/scripts.gni

Issue 2328773002: Remove more blink modules gypi code. (Closed)
Patch Set: Selling correction Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/bindings/modules/BUILD.gn ('k') | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/build/scripts/scripts.gni
diff --git a/third_party/WebKit/Source/build/scripts/scripts.gni b/third_party/WebKit/Source/build/scripts/scripts.gni
index edb1937a579ccd241fd10b0488a646fe2072bd20..33ba38f4462f76d8e70013a05d32788f777a2c66 100644
--- a/third_party/WebKit/Source/build/scripts/scripts.gni
+++ b/third_party/WebKit/Source/build/scripts/scripts.gni
@@ -94,7 +94,8 @@ make_core_generated_deps = [
# outputs: expected results. Note that the directory of the 0th item in this
# list will be taken to be the output path.
# other_args: (optional) other arguments to pass to the script.
-# deps [optional]: additional depenendencies
+# deps [optional]:
+# Depenendencies. If unspecified defaults to make_core_generated_deps.
template("process_in_files") {
action(target_name) {
script = invoker.script
@@ -118,10 +119,12 @@ template("process_in_files") {
args += invoker.other_args
}
- deps = make_core_generated_deps
if (defined(invoker.deps)) {
- deps += invoker.deps
+ deps = invoker.deps
+ } else {
+ deps = make_core_generated_deps
}
+ forward_variables_from(invoker, [ "visibility" ])
}
}
@@ -148,16 +151,20 @@ template("css_properties") {
# process_in_files.
# in_files: files to pass to the script
# outputs: expected results
-# deps [optional]: additional dependencies
+# deps [optional]:
+# Dependencies. See process_in_files for definition.
template("make_names") {
process_in_files(target_name) {
script = "//third_party/WebKit/Source/build/scripts/make_names.py"
- in_files = invoker.in_files
other_inputs = make_names_files
- outputs = invoker.outputs
- if (defined(invoker.deps)) {
- deps = invoker.deps
- }
+ forward_variables_from(invoker,
+ [
+ "deps",
+ "in_files",
+ "outputs",
+ "public_deps",
+ "visibility",
+ ])
}
}
@@ -178,16 +185,19 @@ template("make_qualified_names") {
# process_in_files.
# in_files: list of ".in" files to process.
# outputs: list of output files
-# deps [optional]: additional depenendencies
+# deps [optional]
+# Dependencies. See process_in_files for definition.
template("make_event_factory") {
process_in_files(target_name) {
script = "//third_party/WebKit/Source/build/scripts/make_event_factory.py"
- in_files = invoker.in_files
other_inputs = make_event_factory_files
- outputs = invoker.outputs
- if (defined(invoker.deps)) {
- deps = invoker.deps
- }
+ forward_variables_from(invoker,
+ [
+ "deps",
+ "in_files",
+ "outputs",
+ "visibility",
+ ])
}
}
« no previous file with comments | « third_party/WebKit/Source/bindings/modules/BUILD.gn ('k') | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698