Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: test/unittests/BUILD.gn

Issue 2416243002: Make unittests work in component build (Closed)
Patch Set: updates Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/wasm/wasm-result.h ('k') | test/unittests/unittests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/wasm/wasm-result.h ('k') | test/unittests/unittests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698