1 # Copyright 2014 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 # This file defines a template to invoke grit repack in a consistent manner.
9 # List of pak files that need to be combined.
12 # File name (single string) of the output file.
14 # repack_options [optional]
15 # List of extra arguments to pass.
18 # visibility [optional]
22 assert(defined(invoker.sources), "Need sources for $target_name")
23 assert(defined(invoker.output), "Need output for $target_name")
25 if (defined(invoker.visibility)) {
26 visibility = invoker.visibility
29 script = "//tools/grit/grit/format/repack.py"
31 inputs = invoker.sources
32 outputs = [ invoker.output ]
35 if (defined(invoker.repack_options)) {
36 args += invoker.repack_options
38 args += [ rebase_path(invoker.output, root_build_dir) ]
39 args += rebase_path(invoker.sources, root_build_dir)
41 if (defined(invoker.deps)) {