chromium-src-build/config/zip.gni

51 строка
1.4 KiB
Plaintext
Исходник Обычный вид История

# 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.
import("python.gni")
# Creates a zip archive of the inputs.
#
Revert "Cronet: Simplify repackage rules" This reverts commit b74cdf4b03c3748352b6c7641a5701cd1958d511. Reason for revert: Broke compile of remoting_me2me_host_archive (see bug) Original change's description: > Cronet: Simplify repackage rules > > * Use dist_jar() rather than a custom script > * Avoids needing to extract .jars. > * Avoids needing to reference ".javac.jar" files, which > are somewhat of an implementation detail. > > * Added jar_excluded_patterns support to dist_jar() > > * Merges zip.py and dist_jar.py, since they were doing the > same thing. > > Spot checked that these two jars are the same before/after: > * cronet/cronet_impl_common_java.jar > * cronet/cronet_impl_native_java.jar > > Change-Id: I4d5a5f495ce0376ef2e53b6d4e3c9ebbc3d75ae1 > Reviewed-on: https://chromium-review.googlesource.com/c/1349872 > Reviewed-by: Paul Jensen <pauljensen@chromium.org> > Reviewed-by: Eric Stevenson <estevenson@chromium.org> > Commit-Queue: agrieve <agrieve@chromium.org> > Cr-Commit-Position: refs/heads/master@{#612210} TBR=pauljensen@chromium.org,agrieve@chromium.org,estevenson@chromium.org Bug: 910311 Change-Id: I0d06a36a1694e378bdfafda21f63fd2e5f258239 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/1355887 Reviewed-by: agrieve <agrieve@chromium.org> Commit-Queue: agrieve <agrieve@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#612347} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 8adb2d699d485be7080541f9b37fffea60ef1983
2018-11-29 23:51:26 +03:00
# output (required)
# Path to output zip.
# inputs (required)
# List of input files to zip.
# base_dir (optional)
# If provided, the archive paths will be relative to this directory.
# Applies only to |inputs|.
#
# deps, public_deps, data, data_deps, testonly, visibility
# Normal meaning.
template("zip") {
action_with_pydeps(target_name) {
forward_variables_from(invoker,
[
"data",
"data_deps",
"deps",
"public_deps",
"testonly",
"visibility",
])
script = "//build/android/gyp/zip.py"
inputs = invoker.inputs
outputs = [
invoker.output,
]
args = [
"--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)) {
args += [
"--input-files-base-dir",
rebase_path(invoker.base_dir, root_build_dir),
]
}
}
}