node/tools/v8_gypfiles/d8.gyp

69 lines
2.0 KiB
Plaintext
Raw Normal View History

# Copyright 2018 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.
2010-12-18 01:29:19 +08:00
{
2011-07-22 13:20:37 +08:00
'variables': {
'V8_ROOT': '../../deps/v8',
2013-07-02 23:11:31 +08:00
'v8_code': 1,
'v8_enable_i18n_support%': 1,
2011-07-22 13:20:37 +08:00
},
'includes': ['toolchain.gypi', 'features.gypi'],
2010-12-18 01:29:19 +08:00
'targets': [
{
'target_name': 'd8',
'type': 'executable',
'dependencies': [
'v8.gyp:v8',
'v8.gyp:v8_libbase',
'v8.gyp:v8_libplatform',
'v8.gyp:generate_bytecode_builtins_list',
2010-12-18 01:29:19 +08:00
],
2011-08-30 06:29:35 +08:00
# Generated source files need this explicitly:
2010-12-18 01:29:19 +08:00
'include_dirs+': [
'<(V8_ROOT)',
'<(DEPTH)',
'<(SHARED_INTERMEDIATE_DIR)',
2010-12-18 01:29:19 +08:00
],
'sources': [
'<(V8_ROOT)/src/d8/async-hooks-wrapper.cc',
'<(V8_ROOT)/src/d8/async-hooks-wrapper.h',
'<(V8_ROOT)/src/d8/d8-console.cc',
'<(V8_ROOT)/src/d8/d8-console.h',
'<(V8_ROOT)/src/d8/d8-js.cc',
'<(V8_ROOT)/src/d8/d8-platforms.cc',
'<(V8_ROOT)/src/d8/d8-platforms.h',
'<(V8_ROOT)/src/d8/d8.cc',
'<(V8_ROOT)/src/d8/d8.h',
2010-12-18 01:29:19 +08:00
],
'conditions': [
2014-03-14 00:45:44 +08:00
[ 'want_separate_host_toolset==1', {
'toolsets': [ 'target', ],
'dependencies': [
'd8_js2c#host',
],
2014-03-14 00:45:44 +08:00
}],
['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \
or OS=="openbsd" or OS=="solaris" or OS=="android" \
or OS=="qnx" or OS=="aix")', {
'sources': [ '<(V8_ROOT)/src/d8/d8-posix.cc', ]
}],
[ 'OS=="win"', {
'sources': [ '<(V8_ROOT)/src/d8/d8-windows.cc', ]
}],
2013-07-23 06:26:27 +08:00
['v8_enable_i18n_support==1', {
'dependencies': [
'<(icu_gyp_path):icui18n',
'<(icu_gyp_path):icuuc',
2013-07-23 06:26:27 +08:00
],
}],
['OS=="win" and v8_enable_i18n_support==1', {
'dependencies': [
'<(icu_gyp_path):icudata',
2013-07-23 06:26:27 +08:00
],
}],
2010-12-18 01:29:19 +08:00
],
},
],
2010-12-18 01:29:19 +08:00
}