Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / ijar / ijar.gni
blob61f37c6fdf041a6521ce1f1755005ba84b352250
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.
5 import("//build/compiled_action.gni")
7 # Create an interface jar from a normal jar.
9 # Variables
10 #   input_jar: Path to input .jar.
11 #   output_jar: Path to output .ijar.
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   }