| 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}",
|
| ]
|
| }
|
| }
|
|
|