zip.gni 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 2022 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//build/config/zip.gni")
  5. import("//chrome/version.gni")
  6. # Creates a zip archive of the inputs with a build information stamp.
  7. #
  8. # output (required)
  9. # Path to output zip.
  10. # inputs (required)
  11. # List of input files to zip.
  12. # base_dir (optional)
  13. # If provided, the archive paths will be relative to this directory.
  14. # Applies only to |inputs|.
  15. #
  16. # deps, public_deps, data, data_deps, testonly, visibility
  17. # Normal meaning.
  18. template("artifact_zip") {
  19. zip(target_name) {
  20. forward_variables_from(invoker,
  21. [
  22. "output",
  23. "inputs",
  24. "base_dir",
  25. "data",
  26. "data_deps",
  27. "deps",
  28. "public_deps",
  29. "testonly",
  30. "visibility",
  31. ])
  32. zip_comment_values = [
  33. "path=" + rebase_path(invoker.output, root_build_dir),
  34. "version=" + chrome_version_full,
  35. "os=" + target_os,
  36. "cpu=" + target_cpu,
  37. ]
  38. }
  39. }