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 import("../../gni/v8.gni") | 5 import("../../gni/v8.gni") |
6 | 6 |
7 v8_executable("unittests") { | 7 v8_executable("unittests") { |
8 testonly = true | 8 testonly = true |
9 | 9 |
10 sources = [ | 10 sources = [ |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 "../..:external_config", | 153 "../..:external_config", |
154 "../..:internal_config_base", | 154 "../..:internal_config_base", |
155 ] | 155 ] |
156 | 156 |
157 # TODO(machenbach): Translate from gyp. | 157 # TODO(machenbach): Translate from gyp. |
158 #['OS=="aix"', { | 158 #['OS=="aix"', { |
159 # 'ldflags': [ '-Wl,-bbigtoc' ], | 159 # 'ldflags': [ '-Wl,-bbigtoc' ], |
160 #}], | 160 #}], |
161 | 161 |
162 deps = [ | 162 deps = [ |
| 163 "../..:v8", |
163 "../..:v8_libbase", | 164 "../..:v8_libbase", |
164 "../..:v8_libplatform", | 165 "../..:v8_libplatform", |
165 "//build/config/sanitizers:deps", | 166 "//build/config/sanitizers:deps", |
166 "//build/win:default_exe_manifest", | 167 "//build/win:default_exe_manifest", |
167 "//testing/gmock", | 168 "//testing/gmock", |
168 "//testing/gtest", | 169 "//testing/gtest", |
169 ] | 170 ] |
170 | 171 |
171 defines = [] | |
172 | |
173 if (is_component_build) { | |
174 # compiler-unittests can't be built against a shared library, so we | |
175 # need to depend on the underlying static target in that case. | |
176 deps += [ "../..:v8_maybe_snapshot" ] | |
177 defines += [ "BUILDING_V8_SHARED" ] | |
178 } else { | |
179 deps += [ "../..:v8" ] | |
180 } | |
181 | |
182 if (is_win) { | 172 if (is_win) { |
183 # This warning is benignly triggered by the U16 and U32 macros in | 173 # This warning is benignly triggered by the U16 and U32 macros in |
184 # bytecode-utils.h. | 174 # bytecode-utils.h. |
185 # C4309: 'static_cast': truncation of constant value | 175 # C4309: 'static_cast': truncation of constant value |
186 cflags = [ "/wd4309" ] | 176 cflags = [ "/wd4309" ] |
187 } | 177 } |
188 } | 178 } |
OLD | NEW |