OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 | 6 |
7 template("manifest_processor_template") { | 7 template("manifest_processor_template") { |
8 set_sources_assignment_filter([]) | 8 set_sources_assignment_filter([]) |
9 forward_variables_from(invoker, [ "testonly" ]) | 9 forward_variables_from(invoker, [ "testonly" ]) |
10 | 10 |
11 assert(defined(invoker.input)) | 11 assert(defined(invoker.input)) |
12 assert(defined(invoker.output)) | 12 assert(defined(invoker.output)) |
13 | 13 |
14 action(target_name) { | 14 action(target_name) { |
15 forward_variables_from(invoker, | 15 forward_variables_from(invoker, |
16 [ | 16 [ |
17 "visibility", | 17 "visibility", |
18 "deps", | 18 "deps", |
19 ]) | 19 ]) |
20 sources = [ | 20 sources = [ |
| 21 invoker.config_file, |
21 invoker.input, | 22 invoker.input, |
22 ] | 23 ] |
23 script = "//chrome/android/webapk/shell_apk/manifest_processor.py" | 24 script = "//chrome/android/webapk/shell_apk/manifest_processor.py" |
24 | 25 |
25 outputs = [ | 26 outputs = [ |
26 invoker.output, | 27 invoker.output, |
27 ] | 28 ] |
28 | 29 |
29 args = [ | 30 args = [ |
30 "--template", | 31 "--template", |
31 rebase_path(invoker.input, root_build_dir), | 32 rebase_path(invoker.input, root_build_dir), |
| 33 "--config_file", |
| 34 rebase_path(invoker.config_file, root_build_dir), |
32 "--output", | 35 "--output", |
33 rebase_path(invoker.output, root_build_dir), | 36 rebase_path(invoker.output, root_build_dir), |
34 ] | 37 ] |
35 if (defined(invoker.variables)) { | 38 if (defined(invoker.extra_variables)) { |
36 variables = invoker.variables | 39 extra_variables = invoker.extra_variables |
37 args += [ "--variables=${variables}" ] | 40 args += [ "--extra_variables=${extra_variables}" ] |
38 } | 41 } |
39 } | 42 } |
40 } | 43 } |
OLD | NEW |