| Index: src/test/test.gyp
|
| diff --git a/src/heap/heap.gyp b/src/test/test.gyp
|
| similarity index 64%
|
| copy from src/heap/heap.gyp
|
| copy to src/test/test.gyp
|
| index 2970eb8a43b7d78af308ec2d807c0cb44fad956d..f4c6a5e46997334ed1afbdcf848865fb6bddec37 100644
|
| --- a/src/heap/heap.gyp
|
| +++ b/src/test/test.gyp
|
| @@ -9,22 +9,31 @@
|
| 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
|
| 'targets': [
|
| {
|
| - 'target_name': 'heap-unittests',
|
| - 'type': 'executable',
|
| + 'target_name': 'run-all-unittests',
|
| + 'type': 'static_library',
|
| + 'variables': {
|
| + 'optimize': 'max',
|
| + },
|
| 'dependencies': [
|
| + '../../testing/gmock.gyp:gmock',
|
| '../../testing/gtest.gyp:gtest',
|
| - '../../testing/gtest.gyp:gtest_main',
|
| '../../tools/gyp/v8.gyp:v8_libplatform',
|
| ],
|
| 'include_dirs': [
|
| '../..',
|
| ],
|
| 'sources': [ ### gcmole(all) ###
|
| - 'gc-idle-time-handler-unittest.cc',
|
| + 'run-all-unittests.cc',
|
| + 'test-utils.h',
|
| + 'test-utils.cc',
|
| + ],
|
| + 'export_dependent_settings': [
|
| + '../../testing/gmock.gyp:gmock',
|
| + '../../testing/gtest.gyp:gtest',
|
| ],
|
| 'conditions': [
|
| ['component=="shared_library"', {
|
| - # heap-unittests can't be built against a shared library, so we
|
| + # compiler-unittests can't be built against a shared library, so we
|
| # need to depend on the underlying static target in that case.
|
| 'conditions': [
|
| ['v8_use_snapshot=="true"', {
|
| @@ -45,6 +54,16 @@
|
| 'cflags!': [
|
| '-pedantic',
|
| ],
|
| + 'direct_dependent_settings': {
|
| + 'cflags!': [
|
| + '-pedantic',
|
| + ],
|
| + },
|
| + }],
|
| + ['want_separate_host_toolset==1', {
|
| + 'toolsets': ['host', 'target'],
|
| + }, {
|
| + 'toolsets': ['target'],
|
| }],
|
| ],
|
| },
|
|
|