| Index: chrome/android/webapk/shell_apk/manifest_processor.gni
|
| diff --git a/chrome/android/webapk/shell_apk/manifest_processor.gni b/chrome/android/webapk/shell_apk/manifest_processor.gni
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..994c46931bae327cc52674d4b68545116f294b37
|
| --- /dev/null
|
| +++ b/chrome/android/webapk/shell_apk/manifest_processor.gni
|
| @@ -0,0 +1,40 @@
|
| +# Copyright 2017 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import("//build/config/android/rules.gni")
|
| +
|
| +template("manifest_processor_template") {
|
| + set_sources_assignment_filter([])
|
| + forward_variables_from(invoker, [ "testonly" ])
|
| +
|
| + assert(defined(invoker.input))
|
| + assert(defined(invoker.output))
|
| +
|
| + action(target_name) {
|
| + forward_variables_from(invoker,
|
| + [
|
| + "visibility",
|
| + "deps",
|
| + ])
|
| + sources = [
|
| + invoker.input,
|
| + ]
|
| + script = "//chrome/android/webapk/shell_apk/manifest_processor.py"
|
| +
|
| + outputs = [
|
| + invoker.output,
|
| + ]
|
| +
|
| + args = [
|
| + "--template",
|
| + rebase_path(invoker.input, root_build_dir),
|
| + "--output",
|
| + rebase_path(invoker.output, root_build_dir),
|
| + ]
|
| + if (defined(invoker.variables)) {
|
| + variables = invoker.variables
|
| + args += [ "--variables=${variables}" ]
|
| + }
|
| + }
|
| +}
|
|
|