OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 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/compiled_action.gni") |
| 6 |
| 7 # Create an interface jar from a normal jar. |
| 8 # |
| 9 # Variables |
| 10 # input_jar: Path to input .jar. |
| 11 # output_jar: Path to output .ijar. |
| 12 # |
| 13 template("generate_interface_jar") { |
| 14 compiled_action(target_name) { |
| 15 forward_variables_from(invoker, |
| 16 [ |
| 17 "deps", |
| 18 "testonly", |
| 19 ]) |
| 20 tool = "//third_party/ijar" |
| 21 inputs = [ |
| 22 invoker.input_jar, |
| 23 ] |
| 24 outputs = [ |
| 25 invoker.output_jar, |
| 26 ] |
| 27 args = [ |
| 28 rebase_path(invoker.input_jar, root_build_dir), |
| 29 rebase_path(invoker.output_jar, root_build_dir), |
| 30 ] |
| 31 } |
| 32 } |
OLD | NEW |