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