OLD | NEW |
1 # Copyright 2014 the V8 project authors. All rights reserved. | 1 # Copyright 2014 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 # The sources are kept automatically in sync with BUILD.gn. | 5 # The sources are kept automatically in sync with BUILD.gn. |
6 | 6 |
7 { | 7 { |
8 'variables': { | 8 'variables': { |
9 'v8_code': 1, | 9 'v8_code': 1, |
10 'unittests_sources': [ ### gcmole(all) ### | 10 'unittests_sources': [ ### gcmole(all) ### |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 'targets': [ | 157 'targets': [ |
158 { | 158 { |
159 'target_name': 'unittests', | 159 'target_name': 'unittests', |
160 'type': 'executable', | 160 'type': 'executable', |
161 'variables': { | 161 'variables': { |
162 'optimize': 'max', | 162 'optimize': 'max', |
163 }, | 163 }, |
164 'dependencies': [ | 164 'dependencies': [ |
165 '../../testing/gmock.gyp:gmock', | 165 '../../testing/gmock.gyp:gmock', |
166 '../../testing/gtest.gyp:gtest', | 166 '../../testing/gtest.gyp:gtest', |
| 167 '../../src/v8.gyp:v8', |
167 '../../src/v8.gyp:v8_libbase', | 168 '../../src/v8.gyp:v8_libbase', |
168 '../../src/v8.gyp:v8_libplatform', | 169 '../../src/v8.gyp:v8_libplatform', |
169 ], | 170 ], |
170 'include_dirs': [ | 171 'include_dirs': [ |
171 '../..', | 172 '../..', |
172 ], | 173 ], |
173 'sources': [ | 174 'sources': [ |
174 '<@(unittests_sources)', | 175 '<@(unittests_sources)', |
175 ], | 176 ], |
176 'conditions': [ | 177 'conditions': [ |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 ], | 221 ], |
221 }], | 222 }], |
222 ['v8_target_arch=="s390" or v8_target_arch=="s390x"', { | 223 ['v8_target_arch=="s390" or v8_target_arch=="s390x"', { |
223 'sources': [ | 224 'sources': [ |
224 '<@(unittests_sources_s390)', | 225 '<@(unittests_sources_s390)', |
225 ], | 226 ], |
226 }], | 227 }], |
227 ['OS=="aix"', { | 228 ['OS=="aix"', { |
228 'ldflags': [ '-Wl,-bbigtoc' ], | 229 'ldflags': [ '-Wl,-bbigtoc' ], |
229 }], | 230 }], |
230 ['component=="shared_library"', { | |
231 # compiler-unittests can't be built against a shared library, so we | |
232 # need to depend on the underlying static target in that case. | |
233 'dependencies': ['../../src/v8.gyp:v8_maybe_snapshot'], | |
234 'defines': [ 'BUILDING_V8_SHARED', ] | |
235 }, { | |
236 'dependencies': ['../../src/v8.gyp:v8'], | |
237 }], | |
238 ['os_posix == 1', { | 231 ['os_posix == 1', { |
239 # TODO(svenpanne): This is a temporary work-around to fix the warnings | 232 # TODO(svenpanne): This is a temporary work-around to fix the warnings |
240 # that show up because we use -std=gnu++0x instead of -std=c++11. | 233 # that show up because we use -std=gnu++0x instead of -std=c++11. |
241 'cflags!': [ | 234 'cflags!': [ |
242 '-pedantic', | 235 '-pedantic', |
243 ], | 236 ], |
244 'direct_dependent_settings': { | 237 'direct_dependent_settings': { |
245 'cflags!': [ | 238 'cflags!': [ |
246 '-pedantic', | 239 '-pedantic', |
247 ], | 240 ], |
(...skipping 15 matching lines...) Expand all Loading... |
263 '../../gypfiles/isolate.gypi', | 256 '../../gypfiles/isolate.gypi', |
264 ], | 257 ], |
265 'sources': [ | 258 'sources': [ |
266 'unittests.isolate', | 259 'unittests.isolate', |
267 ], | 260 ], |
268 }, | 261 }, |
269 ], | 262 ], |
270 }], | 263 }], |
271 ], | 264 ], |
272 } | 265 } |
OLD | NEW |