Home | History | Annotate | Download | only in heap
      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   'variables': {
      7     'v8_code': 1,
      8   },
      9   'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
     10   'targets': [
     11     {
     12       'target_name': 'heap-unittests',
     13       'type': 'executable',
     14       'dependencies': [
     15         '../../testing/gtest.gyp:gtest',
     16         '../../testing/gtest.gyp:gtest_main',
     17         '../../tools/gyp/v8.gyp:v8_libplatform',
     18       ],
     19       'include_dirs': [
     20         '../..',
     21       ],
     22       'sources': [  ### gcmole(all) ###
     23         'gc-idle-time-handler-unittest.cc',
     24       ],
     25       'conditions': [
     26         ['component=="shared_library"', {
     27           # heap-unittests can't be built against a shared library, so we
     28           # need to depend on the underlying static target in that case.
     29           'conditions': [
     30             ['v8_use_snapshot=="true"', {
     31               'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'],
     32             },
     33             {
     34               'dependencies': [
     35                 '../../tools/gyp/v8.gyp:v8_nosnapshot',
     36               ],
     37             }],
     38           ],
     39         }, {
     40           'dependencies': ['../../tools/gyp/v8.gyp:v8'],
     41         }],
     42         ['os_posix == 1', {
     43           # 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.
     45           'cflags!': [
     46             '-pedantic',
     47           ],
     48         }],
     49       ],
     50     },
     51   ],
     52 }
     53