2018-04-11 09:39:51 +08:00
|
|
|
# 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': {
|
2019-07-17 23:55:12 +08:00
|
|
|
'V8_ROOT': '../../deps/v8',
|
2013-07-02 23:11:31 +08:00
|
|
|
'v8_code': 1,
|
2013-11-10 09:02:27 +08:00
|
|
|
'v8_enable_i18n_support%': 1,
|
2011-07-22 13:20:37 +08:00
|
|
|
},
|
2018-04-11 09:39:51 +08:00
|
|
|
'includes': ['toolchain.gypi', 'features.gypi'],
|
2010-12-18 01:29:19 +08:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'd8',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
2016-09-07 04:49:51 +08:00
|
|
|
'v8.gyp:v8',
|
2017-02-14 18:27:26 +08:00
|
|
|
'v8.gyp:v8_libbase',
|
2016-09-07 04:49:51 +08:00
|
|
|
'v8.gyp:v8_libplatform',
|
2019-07-17 23:55:12 +08:00
|
|
|
'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+': [
|
2019-07-17 23:55:12 +08:00
|
|
|
'<(V8_ROOT)',
|
2016-09-07 04:49:51 +08:00
|
|
|
'<(DEPTH)',
|
2018-10-15 01:07:15 +08:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)',
|
2010-12-18 01:29:19 +08:00
|
|
|
],
|
|
|
|
'sources': [
|
2019-05-18 20:42:15 +08:00
|
|
|
'<(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', {
|
2016-09-07 04:49:51 +08:00
|
|
|
'toolsets': [ 'target', ],
|
2016-12-23 23:30:57 +08:00
|
|
|
'dependencies': [
|
|
|
|
'd8_js2c#host',
|
|
|
|
],
|
2014-03-14 00:45:44 +08:00
|
|
|
}],
|
2014-09-29 17:20:04 +08:00
|
|
|
['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \
|
|
|
|
or OS=="openbsd" or OS=="solaris" or OS=="android" \
|
2015-03-27 19:04:12 +08:00
|
|
|
or OS=="qnx" or OS=="aix")', {
|
2019-05-18 20:42:15 +08:00
|
|
|
'sources': [ '<(V8_ROOT)/src/d8/d8-posix.cc', ]
|
2014-09-29 17:20:04 +08:00
|
|
|
}],
|
|
|
|
[ 'OS=="win"', {
|
2019-05-18 20:42:15 +08:00
|
|
|
'sources': [ '<(V8_ROOT)/src/d8/d8-windows.cc', ]
|
2014-09-29 17:20:04 +08:00
|
|
|
}],
|
2013-07-23 06:26:27 +08:00
|
|
|
['v8_enable_i18n_support==1', {
|
|
|
|
'dependencies': [
|
2013-11-10 09:02:27 +08:00
|
|
|
'<(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': [
|
2013-11-10 09:02:27 +08:00
|
|
|
'<(icu_gyp_path):icudata',
|
2013-07-23 06:26:27 +08:00
|
|
|
],
|
|
|
|
}],
|
2010-12-18 01:29:19 +08:00
|
|
|
],
|
|
|
|
},
|
2015-12-01 13:22:40 +08:00
|
|
|
],
|
2010-12-18 01:29:19 +08:00
|
|
|
}
|