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': 'libplatform-unittests',
13      'type': 'executable',
14      'dependencies': [
15        '../../testing/gtest.gyp:gtest',
16        '../../testing/gmock.gyp:gmock',
17        '../../testing/gmock.gyp:gmock_main',
18        '../../tools/gyp/v8.gyp:v8_libplatform',
19      ],
20      'include_dirs': [
21        '../..',
22      ],
23      'sources': [  ### gcmole(all) ###
24        'default-platform-unittest.cc',
25        'task-queue-unittest.cc',
26        'worker-thread-unittest.cc',
27      ],
28      'conditions': [
29        ['os_posix == 1', {
30          # TODO(svenpanne): This is a temporary work-around to fix the warnings
31          # that show up because we use -std=gnu++0x instead of -std=c++11.
32          'cflags!': [
33            '-pedantic',
34          ],
35        }],
36      ],
37    },
38  ],
39}
40