BUILD.gn 3.44 KB
Newer Older
1 2 3 4
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

5
import("../gni/v8.gni")
6 7 8 9

group("gn_all") {
  testonly = true

10 11 12
  data_deps = [
    "benchmarks:v8_benchmarks",
    "fuzzer:v8_fuzzer",
13
    "intl:v8_intl",
14 15 16 17 18 19 20
    "message:v8_message",
    "mjsunit:v8_mjsunit",
    "mozilla:v8_mozilla",
    "test262:v8_test262",
    "webkit:v8_webkit",
  ]

21
  deps = [
22
    "bigint:bigint_shell",
23
    "inspector:inspector-test",
24
    "mkgrokdump:mkgrokdump",
25 26
  ]

27 28 29 30 31 32 33 34
  if (v8_enable_webassembly) {
    data_deps += [
      "wasm-js:v8_wasm_js",
      "wasm-spec-tests:v8_wasm_spec_tests",
    ]
    deps += [ "wasm-api-tests:wasm_api_tests" ]
  }

35 36 37 38
  if (v8_fuzzilli) {
    deps += [ "fuzzilli:v8_fuzzilli_test" ]
  }

39 40 41
  if (host_os != "mac" || !is_android) {
    # These items don't compile for Android on Mac.
    deps += [
42
      "benchmarks/cpp:gn_all",
43
      "cctest:cctest",
44
      "unittests:generate-bytecode-expectations",
45 46 47 48 49 50 51 52 53
      "unittests:unittests",
    ]
  }
}

###############################################################################
# Test groups
#

54 55 56 57 58
group("v8_perf") {
  testonly = true

  data_deps = [
    "..:d8",
59
    "..:v8_python_base",
60
    "../tools:v8_android_test_runner_deps",
61
    "../tools:v8_testrunner",
62 63 64 65
  ]

  data = [
    "../tools/run_perf.py",
66

67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
    # This is often used to trigger performance bots. We include it in the
    # isolate to not get these builds deduped.
    "../tools/whitespace.txt",
    "js-perf-test/",
    "memory/",
  ]
}

group("v8_bot_default") {
  testonly = true

  data_deps = [
    "cctest:cctest",
    "debugger:v8_debugger",
    "fuzzer:v8_fuzzer",
    "inspector:inspector-test",
    "intl:v8_intl",
    "message:v8_message",
    "mjsunit:v8_mjsunit",
    "mkgrokdump:mkgrokdump",
    "unittests:unittests",
    "webkit:v8_webkit",
  ]
90 91 92 93 94 95 96 97

  if (v8_enable_webassembly) {
    data_deps += [
      "wasm-api-tests:wasm_api_tests",
      "wasm-js:v8_wasm_js",
      "wasm-spec-tests:v8_wasm_spec_tests",
    ]
  }
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
}

group("v8_default") {
  testonly = true

  data_deps = [
    "cctest:cctest",
    "debugger:v8_debugger",
    "fuzzer:v8_fuzzer",
    "inspector:inspector-test",
    "intl:v8_intl",
    "message:v8_message",
    "mjsunit:v8_mjsunit",
    "mkgrokdump:mkgrokdump",
    "unittests:unittests",
  ]
114 115 116 117 118 119 120 121

  if (v8_enable_webassembly) {
    data_deps += [
      "wasm-api-tests:wasm_api_tests",
      "wasm-js:v8_wasm_js",
      "wasm-spec-tests:v8_wasm_spec_tests",
    ]
  }
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
}

group("v8_optimize_for_size") {
  testonly = true

  data_deps = [
    "cctest:cctest",
    "debugger:v8_debugger",
    "inspector:inspector-test",
    "intl:v8_intl",
    "mjsunit:v8_mjsunit",
    "webkit:v8_webkit",
  ]
}

group("v8_d8_default") {
  testonly = true

  data_deps = [
    "debugger:v8_debugger",
    "intl:v8_intl",
    "message:v8_message",
    "mjsunit:v8_mjsunit",
    "webkit:v8_webkit",
  ]
}

group("v8_run_num_fuzzer") {
  testonly = true

  data_deps = [
    "benchmarks:v8_benchmarks",
    "mjsunit:v8_mjsunit",
    "webkit:v8_webkit",
  ]
}
158 159 160 161 162 163 164

v8_header_set("common_test_headers") {
  testonly = true

  configs = []

  public_deps = [
165
    "../:v8_internal_headers",
166 167 168 169 170
    "../:v8_libbase",
  ]

  sources = [
    "common/assembler-tester.h",
171
    "common/flag-utils.h",
172 173
    "common/types-fuzz.h",
  ]
174 175 176 177 178 179 180 181

  if (v8_enable_webassembly) {
    sources += [
      "common/wasm/flag-utils.h",
      "common/wasm/test-signatures.h",
      "common/wasm/wasm-macro-gen.h",
    ]
  }
182
}