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

Unified Diff: build/config/templates/templates.gni

Issue 2454703004: GN: Format more gn files (Closed)
Patch Set: Created 4 years, 2 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 | « build/config/mac/rules.gni ('k') | build/toolchain/gcc_toolchain.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/templates/templates.gni
diff --git a/build/config/templates/templates.gni b/build/config/templates/templates.gni
index ae00fca3aee8625f47d787646ab94fbec04d5437..72d09c0e75cc3eebb7cb1313a3d66894e3fdc8f4 100644
--- a/build/config/templates/templates.gni
+++ b/build/config/templates/templates.gni
@@ -23,25 +23,28 @@ template("file_template") {
testonly = invoker.testonly
}
- assert(defined(invoker.input),
- "The input file must be specified")
- assert(defined(invoker.output),
- "The output file must be specified")
+ assert(defined(invoker.input), "The input file must be specified")
+ assert(defined(invoker.output), "The output file must be specified")
assert(defined(invoker.variables),
- "The variable used for substitution in templates must be specified")
+ "The variable used for substitution in templates must be specified")
variables = invoker.variables
action(target_name) {
- if(defined(invoker.visibility)) {
+ if (defined(invoker.visibility)) {
visibility = invoker.visibility
}
script = "//build/android/gyp/jinja_template.py"
depfile = "$target_gen_dir/$target_name.d"
- sources = [ invoker.input ]
- outputs = [ invoker.output, depfile ]
+ sources = [
+ invoker.input,
+ ]
+ outputs = [
+ invoker.output,
+ depfile,
+ ]
args = [
"--inputs",
@@ -50,7 +53,7 @@ template("file_template") {
rebase_path(invoker.output, root_build_dir),
"--depfile",
rebase_path(depfile, root_build_dir),
- "--variables=${variables}"
+ "--variables=${variables}",
]
}
}
« no previous file with comments | « build/config/mac/rules.gni ('k') | build/toolchain/gcc_toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698