diff options
Diffstat (limited to 'deps/v8/src/heap/heap.gyp')
-rw-r--r-- | deps/v8/src/heap/heap.gyp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/deps/v8/src/heap/heap.gyp b/deps/v8/src/heap/heap.gyp new file mode 100644 index 0000000000..2970eb8a43 --- /dev/null +++ b/deps/v8/src/heap/heap.gyp @@ -0,0 +1,52 @@ +# Copyright 2014 the V8 project authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'variables': { + 'v8_code': 1, + }, + 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'], + 'targets': [ + { + 'target_name': 'heap-unittests', + 'type': 'executable', + 'dependencies': [ + '../../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', + ], + 'conditions': [ + ['component=="shared_library"', { + # heap-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"', { + 'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'], + }, + { + 'dependencies': [ + '../../tools/gyp/v8.gyp:v8_nosnapshot', + ], + }], + ], + }, { + 'dependencies': ['../../tools/gyp/v8.gyp:v8'], + }], + ['os_posix == 1', { + # TODO(svenpanne): This is a temporary work-around to fix the warnings + # that show up because we use -std=gnu++0x instead of -std=c++11. + 'cflags!': [ + '-pedantic', + ], + }], + ], + }, + ], +} |