| # Copyright 2014 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| # Creates a zip archive of the inputs. |
| # List of input files to zip. |
| # If provided, the archive paths will be relative to this directory. |
| # Applies only to |inputs|. |
| # deps, public_deps, data, data_deps, testonly, visibility |
| action_with_pydeps(target_name) { |
| forward_variables_from(invoker, |
| script = "//build/android/gyp/zip.py" |
| outputs = [ invoker.output ] |
| rebase_path(invoker.output, root_build_dir), |
| _rebased_inputs = rebase_path(invoker.inputs, root_build_dir) |
| args += [ "--input-files=$_rebased_inputs" ] |
| if (defined(invoker.base_dir)) { |
| "--input-files-base-dir", |
| rebase_path(invoker.base_dir, root_build_dir), |