| 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'v8_code': 1, | 7 'v8_code': 1, |
| 8 }, | 8 }, |
| 9 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'], | 9 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'], |
| 10 'targets': [ | 10 'targets': [ |
| 11 { | 11 { |
| 12 'target_name': 'heap-unittests', | 12 'target_name': 'run-all-unittests', |
| 13 'type': 'executable', | 13 'type': 'static_library', |
| 14 'variables': { |
| 15 'optimize': 'max', |
| 16 }, |
| 14 'dependencies': [ | 17 'dependencies': [ |
| 18 '../../testing/gmock.gyp:gmock', |
| 15 '../../testing/gtest.gyp:gtest', | 19 '../../testing/gtest.gyp:gtest', |
| 16 '../../testing/gtest.gyp:gtest_main', | |
| 17 '../../tools/gyp/v8.gyp:v8_libplatform', | 20 '../../tools/gyp/v8.gyp:v8_libplatform', |
| 18 ], | 21 ], |
| 19 'include_dirs': [ | 22 'include_dirs': [ |
| 20 '../..', | 23 '../..', |
| 21 ], | 24 ], |
| 22 'sources': [ ### gcmole(all) ### | 25 'sources': [ ### gcmole(all) ### |
| 23 'gc-idle-time-handler-unittest.cc', | 26 'run-all-unittests.cc', |
| 27 'test-utils.h', |
| 28 'test-utils.cc', |
| 29 ], |
| 30 'export_dependent_settings': [ |
| 31 '../../testing/gmock.gyp:gmock', |
| 32 '../../testing/gtest.gyp:gtest', |
| 24 ], | 33 ], |
| 25 'conditions': [ | 34 'conditions': [ |
| 26 ['component=="shared_library"', { | 35 ['component=="shared_library"', { |
| 27 # heap-unittests can't be built against a shared library, so we | 36 # compiler-unittests can't be built against a shared library, so we |
| 28 # need to depend on the underlying static target in that case. | 37 # need to depend on the underlying static target in that case. |
| 29 'conditions': [ | 38 'conditions': [ |
| 30 ['v8_use_snapshot=="true"', { | 39 ['v8_use_snapshot=="true"', { |
| 31 'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'], | 40 'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'], |
| 32 }, | 41 }, |
| 33 { | 42 { |
| 34 'dependencies': [ | 43 'dependencies': [ |
| 35 '../../tools/gyp/v8.gyp:v8_nosnapshot', | 44 '../../tools/gyp/v8.gyp:v8_nosnapshot', |
| 36 ], | 45 ], |
| 37 }], | 46 }], |
| 38 ], | 47 ], |
| 39 }, { | 48 }, { |
| 40 'dependencies': ['../../tools/gyp/v8.gyp:v8'], | 49 'dependencies': ['../../tools/gyp/v8.gyp:v8'], |
| 41 }], | 50 }], |
| 42 ['os_posix == 1', { | 51 ['os_posix == 1', { |
| 43 # TODO(svenpanne): This is a temporary work-around to fix the warnings | 52 # TODO(svenpanne): This is a temporary work-around to fix the warnings |
| 44 # that show up because we use -std=gnu++0x instead of -std=c++11. | 53 # that show up because we use -std=gnu++0x instead of -std=c++11. |
| 45 'cflags!': [ | 54 'cflags!': [ |
| 46 '-pedantic', | 55 '-pedantic', |
| 47 ], | 56 ], |
| 57 'direct_dependent_settings': { |
| 58 'cflags!': [ |
| 59 '-pedantic', |
| 60 ], |
| 61 }, |
| 62 }], |
| 63 ['want_separate_host_toolset==1', { |
| 64 'toolsets': ['host', 'target'], |
| 65 }, { |
| 66 'toolsets': ['target'], |
| 48 }], | 67 }], |
| 49 ], | 68 ], |
| 50 }, | 69 }, |
| 51 ], | 70 ], |
| 52 } | 71 } |
| OLD | NEW |