11cb0ef41Sopenharmony_ci# Copyright 2012 the V8 project authors. All rights reserved.
21cb0ef41Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be
31cb0ef41Sopenharmony_ci# found in the LICENSE file.
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ci{
61cb0ef41Sopenharmony_ci  'variables': {
71cb0ef41Sopenharmony_ci    'V8_ROOT': '../../deps/v8',
81cb0ef41Sopenharmony_ci    'v8_code': 1,
91cb0ef41Sopenharmony_ci  },
101cb0ef41Sopenharmony_ci  'includes': ['toolchain.gypi', 'features.gypi'],
111cb0ef41Sopenharmony_ci  'targets': [
121cb0ef41Sopenharmony_ci    {
131cb0ef41Sopenharmony_ci      'target_name': 'v8_vtune',
141cb0ef41Sopenharmony_ci      'type': 'static_library',
151cb0ef41Sopenharmony_ci      'sources': [
161cb0ef41Sopenharmony_ci        '<(V8_ROOT)/third_party/ittapi/src/ittnotify/ittnotify_config.h',
171cb0ef41Sopenharmony_ci        '<(V8_ROOT)/third_party/ittapi/src/ittnotify/ittnotify_types.h',
181cb0ef41Sopenharmony_ci        '<(V8_ROOT)/third_party/ittapi/src/ittnotify/jitprofiling.c',
191cb0ef41Sopenharmony_ci        '<(V8_ROOT)/third_party/ittapi/include/jitprofiling.h',
201cb0ef41Sopenharmony_ci        '<(V8_ROOT)/src/third_party/vtune/v8-vtune.h',
211cb0ef41Sopenharmony_ci        '<(V8_ROOT)/src/third_party/vtune/vtune-jit.cc',
221cb0ef41Sopenharmony_ci        '<(V8_ROOT)/src/third_party/vtune/vtune-jit.h',
231cb0ef41Sopenharmony_ci      ],
241cb0ef41Sopenharmony_ci      'include_dirs': [
251cb0ef41Sopenharmony_ci        '<(V8_ROOT)/third_party/ittapi/include',
261cb0ef41Sopenharmony_ci        '<(V8_ROOT)/third_party/ittapi/src/ittnotify',
271cb0ef41Sopenharmony_ci      ],
281cb0ef41Sopenharmony_ci
291cb0ef41Sopenharmony_ci      'direct_dependent_settings': {
301cb0ef41Sopenharmony_ci        'defines': ['ENABLE_VTUNE_JIT_INTERFACE',],
311cb0ef41Sopenharmony_ci        'conditions': [
321cb0ef41Sopenharmony_ci          ['OS != "win"', {
331cb0ef41Sopenharmony_ci            'libraries': ['-ldl',],
341cb0ef41Sopenharmony_ci          }],
351cb0ef41Sopenharmony_ci        ],
361cb0ef41Sopenharmony_ci      },
371cb0ef41Sopenharmony_ci    },
381cb0ef41Sopenharmony_ci  ],
391cb0ef41Sopenharmony_ci}
40