• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2012 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_ROOT': '../../deps/v8',
8    'v8_code': 1,
9  },
10  'includes': ['toolchain.gypi', 'features.gypi'],
11  'targets': [
12    {
13      'target_name': 'v8_vtune',
14      'type': 'static_library',
15      'sources': [
16        '<(V8_ROOT)/third_party/ittapi/src/ittnotify/ittnotify_config.h',
17        '<(V8_ROOT)/third_party/ittapi/src/ittnotify/ittnotify_types.h',
18        '<(V8_ROOT)/third_party/ittapi/src/ittnotify/jitprofiling.c',
19        '<(V8_ROOT)/third_party/ittapi/include/jitprofiling.h',
20        '<(V8_ROOT)/src/third_party/vtune/v8-vtune.h',
21        '<(V8_ROOT)/src/third_party/vtune/vtune-jit.cc',
22        '<(V8_ROOT)/src/third_party/vtune/vtune-jit.h',
23      ],
24      'include_dirs': [
25        '<(V8_ROOT)/third_party/ittapi/include',
26        '<(V8_ROOT)/third_party/ittapi/src/ittnotify',
27      ],
28
29      'direct_dependent_settings': {
30        'defines': ['ENABLE_VTUNE_JIT_INTERFACE',],
31        'conditions': [
32          ['OS != "win"', {
33            'libraries': ['-ldl',],
34          }],
35        ],
36      },
37    },
38  ],
39}
40