BUILD.gn 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # Copyright 2015 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. if (!is_android) {
  5. group("perf") {
  6. testonly = true
  7. data_deps = [
  8. ":perf_without_chrome",
  9. "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
  10. ]
  11. }
  12. } else {
  13. template("perf_android_template") {
  14. forward_variables_from(invoker, [ "telemetry_target_suffix" ])
  15. group(target_name) {
  16. testonly = true
  17. data_deps = [
  18. ":perf_without_chrome",
  19. "//tools/perf/chrome_telemetry_build:telemetry_chrome_test${telemetry_target_suffix}",
  20. ]
  21. }
  22. }
  23. import("//tools/perf/chrome_telemetry_build/android_browser_types.gni")
  24. foreach(_target_suffix, telemetry_android_browser_target_suffixes) {
  25. perf_android_template("perf${_target_suffix}") {
  26. telemetry_target_suffix = _target_suffix
  27. }
  28. }
  29. }
  30. if (is_android) {
  31. import("//build/util/generate_wrapper.gni")
  32. generate_wrapper("run_benchmark_wrapper") {
  33. executable = "run_benchmark"
  34. wrapper_script = "$root_build_dir/bin/run_benchmark"
  35. executable_args = [
  36. "--chromium-output-directory",
  37. "@WrappedPath(.)",
  38. ]
  39. }
  40. }
  41. # Group for running benchmarks without building Chrome.
  42. group("perf_without_chrome") {
  43. testonly = true
  44. data_deps = [
  45. "//tools/perf/chrome_telemetry_build:telemetry_chrome_test_without_chrome",
  46. ]
  47. data = [
  48. "//tools/perf/",
  49. "//.vpython3",
  50. # Field trial config
  51. "//tools/variations/",
  52. "//testing/variations/",
  53. # Field trial dependencies
  54. "//tools/json_comment_eater/",
  55. "//tools/json_to_struct/",
  56. "//components/variations/service/generate_ui_string_overrider.py",
  57. # For blink_perf benchmarks.
  58. "//third_party/blink/perf_tests/",
  59. # For smoothness.tough_canvas_cases
  60. "//chrome/test/data/perf/",
  61. # For image_decoding.measurement
  62. "//chrome/test/data/image_decoding/",
  63. # For Pylib used by VR tests
  64. "//build/android/pylib/",
  65. ]
  66. # Runs a script which generates the ad tagging ruleset.
  67. if (!is_ios) {
  68. data_deps += [ "//components/subresource_filter/tools:index_ruleset" ]
  69. }
  70. }
  71. # This group makes visible those targets in subdirectories that are not
  72. # explicitly depended on.
  73. group("gn_all") {
  74. testonly = true
  75. deps = [ "//tools/perf/core/perfetto_binary_roller:upload_trace_processor" ]
  76. }