OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'], |
| 7 'targets': [ |
| 8 { |
| 9 'target_name': 'unittests', |
| 10 'type': 'executable', |
| 11 'dependencies': [ |
| 12 '../../testing/gmock.gyp:gmock', |
| 13 '../../testing/gtest.gyp:gtest', |
| 14 '../../tools/gyp/v8.gyp:v8_libplatform', |
| 15 ], |
| 16 'include_dirs': [ |
| 17 '../..', |
| 18 ], |
| 19 'sources': [ ### gcmole(all) ### |
| 20 'compiler/compiler.h', |
| 21 'compiler/test-instruction-selector.cc', |
| 22 'compiler/test-instruction-selector.h', |
| 23 'test-isolate.cc', |
| 24 'test-isolate.h', |
| 25 'test-zone.cc', |
| 26 'test-zone.h', |
| 27 'unittests.cc', |
| 28 ], |
| 29 'conditions': [ |
| 30 ['v8_target_arch=="arm"', { |
| 31 'sources': [ ### gcmole(arch:arm) ### |
| 32 'compiler/arm/test-instruction-selector-arm.cc', |
| 33 ] |
| 34 }], |
| 35 ['component=="shared_library"', { |
| 36 # unittests can't be built against a shared library, so we need to |
| 37 # depend on the underlying static target in that case. |
| 38 'conditions': [ |
| 39 ['v8_use_snapshot=="true"', { |
| 40 'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'], |
| 41 }, |
| 42 { |
| 43 'dependencies': [ |
| 44 '../../tools/gyp/v8.gyp:v8_nosnapshot', |
| 45 ], |
| 46 }], |
| 47 ], |
| 48 }, { |
| 49 'dependencies': ['../../tools/gyp/v8.gyp:v8'], |
| 50 }], |
| 51 ], |
| 52 }, |
| 53 ], |
| 54 } |
OLD | NEW |