BUILD.gn 958 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright (c) 2013 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/util/lastchange.gni")
  5. action("chromium_git_revision") {
  6. script = "version.py"
  7. template_file = "chromium_git_revision.h.in"
  8. inputs = [
  9. lastchange_file,
  10. template_file,
  11. ]
  12. output_file = "$target_gen_dir/chromium_git_revision.h"
  13. outputs = [ output_file ]
  14. args = [
  15. # LASTCHANGE contains "<build hash>-<ref>". The user agent only wants the
  16. # "<build hash>" bit, so chop off everything after it.
  17. "-e",
  18. "LASTCHANGE=LASTCHANGE[:LASTCHANGE.find('-')]",
  19. "-f",
  20. rebase_path(lastchange_file, root_build_dir),
  21. rebase_path(template_file, root_build_dir),
  22. rebase_path(output_file, root_build_dir),
  23. ]
  24. }
  25. group("test_results") {
  26. data = [
  27. "//.vpython3",
  28. "//build/util/lib/__init__.py",
  29. "//build/util/lib/results/",
  30. ]
  31. }