2 # Creates a zip archive of the inputs.
3 # If base_dir is provided, the archive paths will be relative to it.
5 assert(defined(invoker.inputs))
6 assert(defined(invoker.output))
8 rebase_inputs = rebase_path(invoker.inputs)
9 rebase_output = rebase_path(invoker.output)
11 script = "//build/android/gn/zip.py"
12 depfile = "$target_gen_dir/$target_name.d"
13 source_prereqs = invoker.inputs
14 outputs = [depfile, invoker.output]
16 "--depfile", rebase_path(depfile, root_build_dir),
17 "--inputs=$rebase_inputs",
18 "--output=$rebase_output",
20 if (defined(invoker.base_dir)) {
22 "--base-dir", rebase_path(invoker.base_dir)