blob: b3114ef1690eaca6741f1c6081e770afde35c647 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Creates a zip archive of the inputs.
# If base_dir is provided, the archive paths will be relative to it.
template("zip") {
assert(defined(invoker.inputs))
assert(defined(invoker.output))
rebase_inputs = rebase_path(invoker.inputs)
rebase_output = rebase_path(invoker.output)
action(target_name) {
script = "//build/android/gn/zip.py"
source_prereqs = invoker.inputs
outputs = [invoker.output]
args = [
"--inputs=$rebase_inputs",
"--output=$rebase_output",
]
if (defined(invoker.base_dir)) {
args += [
"--base-dir", rebase_path(invoker.base_dir)
]
}
}
}
|