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