Fixed build issues

This commit is contained in:
Ales Pergl 2017-10-26 11:29:55 +02:00 committed by Cheng Zhao
parent 2fa0b3d33e
commit 334b39ef1e
3 changed files with 12 additions and 1 deletions

View file

@ -59,6 +59,10 @@ void ReferenceSymbols() {
icu::DateIntervalFormat::createInstance(UnicodeString(),
icu::Locale::getRoot(), status);
reinterpret_cast<icu::Transliterator*>(nullptr)->clone();
UParseError parse_error;
icu::Transliterator::createFromRules(UnicodeString(), UnicodeString(),
UTRANS_FORWARD, parse_error,
status);
}
} // namespace node

View file

@ -140,6 +140,12 @@
'<(libchromiumcontent_src_dir)/v8',
'<(libchromiumcontent_src_dir)/v8/include',
],
'defines': [
# Export V8 symbols from node.dll / libnode.so
'BUILDING_V8_SHARED',
'BUILDING_V8_PLATFORM_SHARED',
'BUILDING_V8_BASE_SHARED',
],
'conditions': [
['OS=="mac" and libchromiumcontent_component==0', {
# -all_load is the "whole-archive" on macOS.

View file

@ -241,7 +241,8 @@
'GLIB_DISABLE_DEPRECATION_WARNINGS',
# Defined in Chromium but not exposed in its gyp file.
'V8_USE_EXTERNAL_STARTUP_DATA',
'V8_SHARED',
# Import V8 symbols from shared library (node.dll / libnode.so)
'USING_V8_SHARED',
'USING_V8_PLATFORM_SHARED',
'USING_V8_BASE_SHARED',