summaryrefslogtreecommitdiff
path: root/deps/v8/test/inspector/inspector.gyp
blob: 21a75f9eeffd5a2d781495c537b307f6f4ac6d03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 2016 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,
    'inspector_protocol_sources': [
      'inspector-impl.cc',
      'inspector-impl.h',
      'inspector-test.cc',
      'task-runner.cc',
      'task-runner.h',
    ],
  },
  'includes': ['../../gypfiles/toolchain.gypi', '../../gypfiles/features.gypi'],
  'targets': [
    {
      'target_name': 'inspector-test',
      'type': 'executable',
      'dependencies': [
        '../../src/v8.gyp:v8_libplatform',
      ],
      'include_dirs': [
        '../..',
      ],
      'sources': [
        '<@(inspector_protocol_sources)',
      ],
      'conditions': [
        ['component=="shared_library"', {
          # inspector-test can't be built against a shared library, so we
          # need to depend on the underlying static target in that case.
          'dependencies': ['../../src/v8.gyp:v8_maybe_snapshot'],
        }, {
          'dependencies': ['../../src/v8.gyp:v8'],
        }],
      ],
    },
  ],
}