2018-05-15 16:31:13 +00:00
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
# Node disables the inspector unless icu is enabled. But node doesn't know
|
|
|
|
# that we're building v8 with icu, so force it on.
|
|
|
|
'v8_enable_inspector': 1,
|
|
|
|
|
2018-06-29 20:48:16 +00:00
|
|
|
'shlib_suffix': '<(shlib_suffix_gn)',
|
2018-07-11 17:43:52 +00:00
|
|
|
|
|
|
|
'is_component_build%': 'false',
|
2018-05-15 16:31:13 +00:00
|
|
|
},
|
2018-06-29 20:48:56 +00:00
|
|
|
'conditions': [
|
|
|
|
['OS=="linux"', {
|
|
|
|
'make_global_settings': [
|
|
|
|
['CC', '<(llvm_dir)/bin/clang'],
|
|
|
|
['CXX', '<(llvm_dir)/bin/clang++'],
|
|
|
|
['CC.host', '$(CC)'],
|
|
|
|
['CXX.host', '$(CXX)'],
|
|
|
|
],
|
|
|
|
'target_defaults': {
|
|
|
|
'target_conditions': [
|
|
|
|
['_toolset=="target"', {
|
|
|
|
'cflags_cc': [
|
|
|
|
'-std=gnu++14',
|
|
|
|
'-nostdinc++',
|
|
|
|
'-isystem<(libcxx_dir)/trunk/include',
|
|
|
|
'-isystem<(libcxxabi_dir)/trunk/include',
|
|
|
|
],
|
|
|
|
'ldflags': [
|
|
|
|
'-nostdlib++',
|
|
|
|
],
|
|
|
|
'libraries': [
|
|
|
|
'../../../../../../libc++.so',
|
|
|
|
],
|
|
|
|
}]
|
|
|
|
]
|
|
|
|
}
|
2018-07-12 00:51:04 +00:00
|
|
|
}],
|
|
|
|
['OS=="win"', {
|
|
|
|
'make_global_settings': [
|
|
|
|
['CC', '<(llvm_dir)/bin/clang-cl'],
|
|
|
|
# Also defining CXX doesn't appear to be necessary.
|
|
|
|
]
|
|
|
|
}],
|
2018-06-29 20:48:56 +00:00
|
|
|
],
|
2018-05-15 16:31:13 +00:00
|
|
|
'target_defaults': {
|
|
|
|
'target_conditions': [
|
|
|
|
['_target_name=="node_lib"', {
|
|
|
|
'include_dirs': [
|
|
|
|
'../../../v8',
|
|
|
|
'../../../v8/include',
|
|
|
|
'../../../third_party/icu/source/common',
|
|
|
|
'../../../third_party/icu/source/i18n',
|
|
|
|
],
|
2018-06-19 15:39:43 +00:00
|
|
|
'defines': [
|
2018-06-20 19:50:43 +00:00
|
|
|
'EVP_CTRL_AEAD_SET_IVLEN=EVP_CTRL_GCM_SET_IVLEN',
|
|
|
|
'EVP_CTRL_CCM_SET_TAG=EVP_CTRL_GCM_SET_TAG',
|
|
|
|
'EVP_CTRL_AEAD_GET_TAG=EVP_CTRL_GCM_GET_TAG',
|
2018-07-12 00:50:37 +00:00
|
|
|
'WIN32_LEAN_AND_MEAN',
|
2018-06-19 15:39:43 +00:00
|
|
|
],
|
2018-06-26 20:57:05 +00:00
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
2018-07-11 17:43:52 +00:00
|
|
|
'conditions': [
|
|
|
|
['is_component_build=="true"', {
|
|
|
|
'libraries': [
|
|
|
|
'-lv8.dll',
|
|
|
|
'-lv8_libbase.dll',
|
|
|
|
'-lv8_libplatform.dll',
|
|
|
|
'-licuuc.dll',
|
|
|
|
'-ldbghelp',
|
2018-06-26 20:57:05 +00:00
|
|
|
],
|
2018-07-11 17:43:52 +00:00
|
|
|
'msvs_settings': {
|
|
|
|
# Change location of some hard-coded paths.
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'AdditionalOptions!': [
|
|
|
|
'/WHOLEARCHIVE:<(PRODUCT_DIR)\\lib\\zlib<(STATIC_LIB_SUFFIX)',
|
|
|
|
'/WHOLEARCHIVE:<(PRODUCT_DIR)\\lib\\libuv<(STATIC_LIB_SUFFIX)',
|
|
|
|
],
|
|
|
|
'AdditionalOptions': [
|
|
|
|
'/WHOLEARCHIVE:<(PRODUCT_DIR)\\obj\\third_party\\electron_node\\deps\\zlib\\zlib<(STATIC_LIB_SUFFIX)',
|
|
|
|
'/WHOLEARCHIVE:<(PRODUCT_DIR)\\obj\\third_party\\electron_node\\deps\\uv\\libuv<(STATIC_LIB_SUFFIX)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2018-07-20 21:48:32 +00:00
|
|
|
}, {
|
|
|
|
'defines': [
|
|
|
|
'U_STATIC_IMPLEMENTATION'
|
|
|
|
]
|
2018-07-11 17:43:52 +00:00
|
|
|
}]
|
|
|
|
],
|
2018-06-26 20:57:05 +00:00
|
|
|
}, {
|
2018-07-11 17:43:52 +00:00
|
|
|
'conditions': [
|
|
|
|
['is_component_build=="true"', {
|
|
|
|
'libraries': [
|
|
|
|
'-lv8',
|
|
|
|
'-lv8_libbase',
|
|
|
|
'-lv8_libplatform',
|
|
|
|
'-licuuc',
|
|
|
|
]
|
|
|
|
}]
|
2018-06-26 20:57:05 +00:00
|
|
|
]
|
|
|
|
}]
|
|
|
|
]
|
2018-05-15 16:31:13 +00:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|