| OLD | NEW |
| 1 # Copyright 2016 The V8 project authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # Please keep this file in sync with unittests.gyp. | 5 # Please keep this file in sync with unittests.gyp. |
| 6 | 6 |
| 7 import("../../gni/v8.gni") | 7 import("../../gni/v8.gni") |
| 8 | 8 |
| 9 executable("unittests") { | 9 v8_executable("unittests") { |
| 10 testonly = true | 10 testonly = true |
| 11 | 11 |
| 12 sources = [ | 12 sources = [ |
| 13 "base/atomic-utils-unittest.cc", | 13 "base/atomic-utils-unittest.cc", |
| 14 "base/bits-unittest.cc", | 14 "base/bits-unittest.cc", |
| 15 "base/cpu-unittest.cc", | 15 "base/cpu-unittest.cc", |
| 16 "base/division-by-constant-unittest.cc", | 16 "base/division-by-constant-unittest.cc", |
| 17 "base/flags-unittest.cc", | 17 "base/flags-unittest.cc", |
| 18 "base/functional-unittest.cc", | 18 "base/functional-unittest.cc", |
| 19 "base/iterator-unittest.cc", | 19 "base/iterator-unittest.cc", |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } else if (v8_target_arch == "mips64" || v8_target_arch == "mips64el") { | 129 } else if (v8_target_arch == "mips64" || v8_target_arch == "mips64el") { |
| 130 sources += [ "compiler/mips64/instruction-selector-mips64-unittest.cc" ] | 130 sources += [ "compiler/mips64/instruction-selector-mips64-unittest.cc" ] |
| 131 } else if (v8_target_arch == "x64") { | 131 } else if (v8_target_arch == "x64") { |
| 132 sources += [ "compiler/x64/instruction-selector-x64-unittest.cc" ] | 132 sources += [ "compiler/x64/instruction-selector-x64-unittest.cc" ] |
| 133 } else if (v8_target_arch == "ppc" || v8_target_arch == "ppc64") { | 133 } else if (v8_target_arch == "ppc" || v8_target_arch == "ppc64") { |
| 134 sources += [ "compiler/ppc/instruction-selector-ppc-unittest.cc" ] | 134 sources += [ "compiler/ppc/instruction-selector-ppc-unittest.cc" ] |
| 135 } else if (v8_target_arch == "s390" || v8_target_arch == "s390x") { | 135 } else if (v8_target_arch == "s390" || v8_target_arch == "s390x") { |
| 136 sources += [ "compiler/s390/instruction-selector-s390-unittest.cc" ] | 136 sources += [ "compiler/s390/instruction-selector-s390-unittest.cc" ] |
| 137 } | 137 } |
| 138 | 138 |
| 139 configs -= [ "//build/config/compiler:chromium_code" ] | 139 configs = [ |
| 140 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 141 configs += [ | |
| 142 "../..:external_config", | 140 "../..:external_config", |
| 143 "../..:internal_config_base", | 141 "../..:internal_config_base", |
| 144 "../..:features", | |
| 145 "../..:toolchain", | |
| 146 ] | 142 ] |
| 147 | 143 |
| 148 # TODO(machenbach): Translate from gyp. | 144 # TODO(machenbach): Translate from gyp. |
| 149 #['OS=="aix"', { | 145 #['OS=="aix"', { |
| 150 # 'ldflags': [ '-Wl,-bbigtoc' ], | 146 # 'ldflags': [ '-Wl,-bbigtoc' ], |
| 151 #}], | 147 #}], |
| 152 | 148 |
| 153 deps = [ | 149 deps = [ |
| 154 "../..:v8_libplatform", | 150 "../..:v8_libplatform", |
| 155 "//build/config/sanitizers:deps", | 151 "//build/config/sanitizers:deps", |
| (...skipping 15 matching lines...) Expand all Loading... |
| 171 # bytecode-utils.h. | 167 # bytecode-utils.h. |
| 172 # C4309: 'static_cast': truncation of constant value | 168 # C4309: 'static_cast': truncation of constant value |
| 173 cflags = [ "/wd4309" ] | 169 cflags = [ "/wd4309" ] |
| 174 | 170 |
| 175 # Suppress warnings about importing locally defined symbols. | 171 # Suppress warnings about importing locally defined symbols. |
| 176 if (is_component_build) { | 172 if (is_component_build) { |
| 177 ldflags = [ "/ignore:4049", "/ignore:4217" ] | 173 ldflags = [ "/ignore:4049", "/ignore:4217" ] |
| 178 } | 174 } |
| 179 } | 175 } |
| 180 } | 176 } |
| OLD | NEW |