BUILD.gn 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. group("pytype_dependencies") {
  49. data = [
  50. "//build/util/lib/results/",
  51. "//testing/pytype_common/",
  52. ]
  53. }
  54. # Could be changed to "testing_pytype" if type hinting is ever added to other
  55. # code in the directory.
  56. group("unexpected_passes_common_pytype") {
  57. data = [
  58. "//testing/run_pytype.py",
  59. "//testing/unexpected_passes_common/",
  60. "//third_party/catapult/third_party/typ/",
  61. ]
  62. data_deps = [ ":pytype_dependencies" ]
  63. }
  64. group("fuchsia_pytype") {
  65. testonly = true
  66. data = [ "//build/fuchsia/test/" ]
  67. data_deps = [ ":pytype_dependencies" ]
  68. }
  69. python_library("run_isolated_script_test") {
  70. testonly = true
  71. pydeps_file = "//testing/scripts/run_isolated_script_test.pydeps"
  72. data = [ "//.vpython3" ]
  73. }
  74. python_library("run_wpt_tests") {
  75. testonly = true
  76. pydeps_file = "//testing/scripts/run_wpt_tests.pydeps"
  77. data = [ "//.vpython3" ]
  78. }