BUILD.gn 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. # Copyright 2016 the V8 project 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("../gni/v8.gni")
  5. group("gn_all") {
  6. testonly = true
  7. data_deps = [
  8. "benchmarks:v8_benchmarks",
  9. "fuzzer:v8_fuzzer",
  10. "intl:v8_intl",
  11. "message:v8_message",
  12. "mjsunit:v8_mjsunit",
  13. "mozilla:v8_mozilla",
  14. "test262:v8_test262",
  15. "webkit:v8_webkit",
  16. ]
  17. deps = [
  18. "bigint:bigint_shell",
  19. "inspector:inspector-test",
  20. "mkgrokdump:mkgrokdump",
  21. ]
  22. if (v8_enable_webassembly) {
  23. data_deps += [
  24. "wasm-js:v8_wasm_js",
  25. "wasm-spec-tests:v8_wasm_spec_tests",
  26. ]
  27. deps += [ "wasm-api-tests:wasm_api_tests" ]
  28. }
  29. if (v8_fuzzilli) {
  30. deps += [ "fuzzilli:v8_fuzzilli_test" ]
  31. }
  32. if (host_os != "mac" || !is_android) {
  33. # These items don't compile for Android on Mac.
  34. deps += [
  35. "benchmarks/cpp:gn_all",
  36. "cctest:cctest",
  37. "cctest:generate-bytecode-expectations",
  38. "unittests:unittests",
  39. ]
  40. }
  41. }
  42. ###############################################################################
  43. # Test groups
  44. #
  45. group("v8_perf") {
  46. testonly = true
  47. data_deps = [
  48. "..:d8",
  49. "..:v8_python_base",
  50. "../tools:v8_android_test_runner_deps",
  51. "../tools:v8_testrunner",
  52. ]
  53. data = [
  54. "../tools/run_perf.py",
  55. # This is often used to trigger performance bots. We include it in the
  56. # isolate to not get these builds deduped.
  57. "../tools/whitespace.txt",
  58. "js-perf-test/",
  59. "memory/",
  60. ]
  61. }
  62. group("v8_bot_default") {
  63. testonly = true
  64. data_deps = [
  65. "cctest:cctest",
  66. "debugger:v8_debugger",
  67. "fuzzer:v8_fuzzer",
  68. "inspector:inspector-test",
  69. "intl:v8_intl",
  70. "message:v8_message",
  71. "mjsunit:v8_mjsunit",
  72. "mkgrokdump:mkgrokdump",
  73. "unittests:unittests",
  74. "webkit:v8_webkit",
  75. ]
  76. if (v8_enable_webassembly) {
  77. data_deps += [
  78. "wasm-api-tests:wasm_api_tests",
  79. "wasm-js:v8_wasm_js",
  80. "wasm-spec-tests:v8_wasm_spec_tests",
  81. ]
  82. }
  83. }
  84. group("v8_default") {
  85. testonly = true
  86. data_deps = [
  87. "cctest:cctest",
  88. "debugger:v8_debugger",
  89. "fuzzer:v8_fuzzer",
  90. "inspector:inspector-test",
  91. "intl:v8_intl",
  92. "message:v8_message",
  93. "mjsunit:v8_mjsunit",
  94. "mkgrokdump:mkgrokdump",
  95. "unittests:unittests",
  96. ]
  97. if (v8_enable_webassembly) {
  98. data_deps += [
  99. "wasm-api-tests:wasm_api_tests",
  100. "wasm-js:v8_wasm_js",
  101. "wasm-spec-tests:v8_wasm_spec_tests",
  102. ]
  103. }
  104. }
  105. group("v8_optimize_for_size") {
  106. testonly = true
  107. data_deps = [
  108. "cctest:cctest",
  109. "debugger:v8_debugger",
  110. "inspector:inspector-test",
  111. "intl:v8_intl",
  112. "mjsunit:v8_mjsunit",
  113. "webkit:v8_webkit",
  114. ]
  115. }
  116. group("v8_d8_default") {
  117. testonly = true
  118. data_deps = [
  119. "debugger:v8_debugger",
  120. "intl:v8_intl",
  121. "message:v8_message",
  122. "mjsunit:v8_mjsunit",
  123. "webkit:v8_webkit",
  124. ]
  125. }
  126. group("v8_run_num_fuzzer") {
  127. testonly = true
  128. data_deps = [
  129. "benchmarks:v8_benchmarks",
  130. "mjsunit:v8_mjsunit",
  131. "webkit:v8_webkit",
  132. ]
  133. }
  134. v8_header_set("common_test_headers") {
  135. testonly = true
  136. configs = []
  137. public_deps = [
  138. "../:v8_internal_headers",
  139. "../:v8_libbase",
  140. ]
  141. sources = [
  142. "common/assembler-tester.h",
  143. "common/flag-utils.h",
  144. "common/types-fuzz.h",
  145. ]
  146. if (v8_enable_webassembly) {
  147. sources += [
  148. "common/wasm/flag-utils.h",
  149. "common/wasm/test-signatures.h",
  150. "common/wasm/wasm-macro-gen.h",
  151. ]
  152. }
  153. }