BUILD.gn 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Copyright 2014 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/python.gni")
  5. # Used by linux-gcc-rel to ensure gcc doesn't choke on clang-only flags.
  6. if (!is_clang) {
  7. executable("empty_main") {
  8. sources = [ "empty_main.cc" ]
  9. # The bot should only check that an empty file builds fine with gcc.
  10. # There's no need to check that libc++ builds with a (possibly very old)
  11. # version of gcc.
  12. # No need to remove "//build/config/compiler:runtime_library" from configs
  13. # (to remove its subconfig "//build/config/c++:runtime_library") since
  14. # empty_main.cc does not include any headers.
  15. no_default_deps = true
  16. }
  17. }
  18. # Targets needed for isolate script to execute.
  19. group("test_scripts_shared") {
  20. data_deps = [
  21. # Used for reporting test results to RDB.
  22. "//build/util:test_results",
  23. ]
  24. data = [
  25. "//testing/test_env.py",
  26. "//testing/xvfb.py",
  27. "//testing/scripts/common.py",
  28. ]
  29. }
  30. group("run_perf_test") {
  31. data = [
  32. "//testing/scripts/common.py",
  33. "//testing/scripts/run_performance_tests.py",
  34. "//tools/perf/generate_legacy_perf_dashboard_json.py",
  35. "//tools/perf/core/__init__.py",
  36. "//tools/perf/core/path_util.py",
  37. "//tools/perf/core/results_merger.py",
  38. ]
  39. data_deps = [
  40. ":test_scripts_shared",
  41. "//third_party/catapult/tracing:convert_chart_json",
  42. ]
  43. if (is_android) {
  44. # Required when running with bundles (to run "bundletool").
  45. data_deps += [ "//third_party/jdk:java_data" ]
  46. }
  47. }
  48. python_library("run_isolated_script_test") {
  49. testonly = true
  50. pydeps_file = "//testing/scripts/run_isolated_script_test.pydeps"
  51. data = [ "//.vpython3" ]
  52. }
  53. python_library("wpt_android_lib") {
  54. testonly = true
  55. pydeps_file = "//testing/scripts/run_android_wpt.pydeps"
  56. data = [ "//.vpython3" ]
  57. }