Skip to content

Commit fb61fc1

Browse files
committed
core: update nodejs-mobile to v18.17.1
1 parent 7f2747c commit fb61fc1

File tree

1,742 files changed

+297871
-166284
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,742 files changed

+297871
-166284
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ yarn-error.log
1111

1212
# Large binaries
1313
android/libnode/bin/*/libnode.so
14-
ios/NodeMobile.framework/NodeMobile
14+
ios/NodeMobile.xcframework/**/NodeMobile
1515

1616
# Xcode
1717
#

android/build.gradle

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ buildscript {
1111

1212
apply plugin: 'com.android.library'
1313

14-
def _nodeTargetSdkVersion = ((rootProject?.ext?.properties?.targetSdkVersion) ?: 22)
15-
def _nodeMinSdkVersion = ((rootProject?.ext?.properties?.minSdkVersion) ?: 16)
14+
def _nodeTargetSdkVersion = ((rootProject?.ext?.properties?.targetSdkVersion) ?: 30)
15+
def _nodeMinSdkVersion = ((rootProject?.ext?.properties?.minSdkVersion) ?: 24)
1616
def _compileNativeModulesSdkVersion = _nodeMinSdkVersion;
17-
def _nodeVersionRequired = 16
18-
if (_compileNativeModulesSdkVersion<21) {
19-
// 21 is the minimum sdk version Node is built with.
20-
_compileNativeModulesSdkVersion=21;
17+
def _nodeVersionRequired = 18
18+
if (_compileNativeModulesSdkVersion<24) {
19+
// 24 is the minimum sdk version Node is built with.
20+
_compileNativeModulesSdkVersion=24;
2121
}
2222
def DoesAppAlreadyDefineWantedSTL() {
2323
// Since react-native 0.59.0, the Application already defines libc++_shared as the APP_STL.
@@ -49,8 +49,8 @@ def DoesAppAlreadyDefineWantedSTL() {
4949
def _isCorrectSTLDefinedByApp = DoesAppAlreadyDefineWantedSTL()
5050

5151
android {
52-
compileSdkVersion ((rootProject?.ext?.properties?.compileSdkVersion) ?: 23)
53-
buildToolsVersion ((rootProject?.ext?.properties?.buildToolsVersion) ?: "23.0.1")
52+
compileSdkVersion ((rootProject?.ext?.properties?.compileSdkVersion) ?: 24)
53+
buildToolsVersion ((rootProject?.ext?.properties?.buildToolsVersion) ?: "30.0.2")
5454

5555
ndkVersion ((rootProject?.ext?.ndkVersion) ?: "24.0.8215888")
5656

@@ -239,8 +239,8 @@ if ("1".equals(shouldRebuildNativeModules)) {
239239

240240
def nativeModulesABIs = android.defaultConfig.ndk.abiFilters;
241241
if (nativeModulesABIs == null) {
242-
// No abiFilter is defined for the build. Build native modules for eevery architecture.
243-
nativeModulesABIs = ["armeabi-v7a", "x86", "arm64-v8a", "x86_64"] as Set<String>;
242+
// No abiFilter is defined for the build. Build native modules for every architecture.
243+
nativeModulesABIs = ["armeabi-v7a", "arm64-v8a", "x86_64"] as Set<String>;
244244
}
245245

246246
nativeModulesABIs.each { abi_name ->
@@ -272,13 +272,6 @@ if ("1".equals(shouldRebuildNativeModules)) {
272272
temp_compiler_prefix = "armv7a-linux-androideabi${_compileNativeModulesSdkVersion}"
273273
cargo_build_target = 'arm-linux-androideabi'
274274
break
275-
case 'x86':
276-
temp_dest_cpu = 'ia32'
277-
temp_v8_arch = 'ia32'
278-
temp_binutils_prefix = "i686-linux-android"
279-
temp_compiler_prefix = "i686-linux-android${_compileNativeModulesSdkVersion}"
280-
cargo_build_target = "i686-linux-android"
281-
break
282275
case 'x86_64':
283276
temp_dest_cpu = 'x64'
284277
temp_v8_arch = 'x64'

android/libnode/include/node/common.gypi

Lines changed: 23 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
'clang%': 0,
2929
'error_on_warn%': 'false',
3030

31-
'openssl_fips%': '',
31+
'openssl_product': '<(STATIC_LIB_PREFIX)openssl<(STATIC_LIB_SUFFIX)',
3232
'openssl_no_asm%': 0,
3333

3434
# Don't use ICU data file (icudtl.dat) from V8, we use our own.
3535
'icu_use_data_file_flag%': 0,
3636

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.22',
39+
'v8_embedder_string': '-node.26',
4040

4141
##### V8 defaults for Node.js #####
4242

@@ -66,10 +66,6 @@
6666
'v8_enable_pointer_compression%': 0,
6767
'v8_enable_31bit_smis_on_64bit_arch%': 0,
6868

69-
# Disable V8 untrusted code mitigations.
70-
# See https://github.com/v8/v8/wiki/Untrusted-code-mitigations
71-
'v8_untrusted_code_mitigations': 0,
72-
7369
# Disable v8 hugepage by default.
7470
'v8_enable_hugepage%': 0,
7571

@@ -101,11 +97,6 @@
10197
'obj_dir%': '<(PRODUCT_DIR)/obj.target',
10298
'v8_base': '<(PRODUCT_DIR)/obj.target/tools/v8_gypfiles/libv8_snapshot.a',
10399
}],
104-
['openssl_fips != ""', {
105-
'openssl_product': '<(STATIC_LIB_PREFIX)openssl<(STATIC_LIB_SUFFIX)',
106-
}, {
107-
'openssl_product': '<(STATIC_LIB_PREFIX)openssl<(STATIC_LIB_SUFFIX)',
108-
}],
109100
['OS=="mac" or OS == "ios"', {
110101
'clang%': 1,
111102
'obj_dir%': '<(PRODUCT_DIR)/obj.target',
@@ -146,7 +137,7 @@
146137
'defines': [ 'DEBUG', '_DEBUG', 'V8_ENABLE_CHECKS' ],
147138
'cflags': [ '-g', '-O0' ],
148139
'conditions': [
149-
['OS=="aix"', {
140+
['OS in "aix os400"', {
150141
'cflags': [ '-gxcoff' ],
151142
'ldflags': [ '-Wl,-bbigtoc' ],
152143
}],
@@ -221,6 +212,9 @@
221212
'cflags': [ '-qINLINE=::150:100000' ]
222213
}],
223214
['OS!="mac" and OS!="ios" and OS!="win" and OS!="zos"', {
215+
# -fno-omit-frame-pointer is necessary for the --perf_basic_prof
216+
# flag to work correctly. perf(1) gets confused about JS stack
217+
# frames otherwise, even with --call-graph dwarf.
224218
'cflags': [ '-fno-omit-frame-pointer' ],
225219
}],
226220
['OS=="linux"', {
@@ -284,13 +278,12 @@
284278
],
285279
'msvs_settings': {
286280
'VCCLCompilerTool': {
287-
'AdditionalOptions': ['/Zc:__cplusplus'],
288-
'BufferSecurityCheck': 'true',
289-
'target_conditions': [
290-
['_toolset=="target"', {
291-
'DebugInformationFormat': 1 # /Z7 embed info in .obj files
292-
}],
281+
'AdditionalOptions': [
282+
'/Zc:__cplusplus',
283+
'-std:c++17'
293284
],
285+
'BufferSecurityCheck': 'true',
286+
'DebugInformationFormat': 1, # /Z7 embed info in .obj files
294287
'ExceptionHandling': 0, # /EHsc
295288
'MultiProcessorCompilation': 'true',
296289
'StringPooling': 'true', # pool string literals
@@ -400,13 +393,13 @@
400393
'BUILDING_UV_SHARED=1',
401394
],
402395
}],
403-
[ 'OS in "linux freebsd openbsd solaris aix"', {
396+
[ 'OS in "linux freebsd openbsd solaris aix os400"', {
404397
'cflags': [ '-pthread' ],
405398
'ldflags': [ '-pthread' ],
406399
}],
407-
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
400+
[ 'OS in "linux freebsd openbsd solaris android aix os400 cloudabi"', {
408401
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
409-
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++14' ],
402+
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++17' ],
410403
'defines': [ '__STDC_FORMAT_MACROS' ],
411404
'ldflags': [ '-rdynamic' ],
412405
'target_conditions': [
@@ -428,11 +421,11 @@
428421
'cflags': [ '-m64' ],
429422
'ldflags': [ '-m64' ],
430423
}],
431-
[ 'target_arch=="ppc" and OS!="aix"', {
424+
[ 'target_arch=="ppc" and OS not in "aix os400"', {
432425
'cflags': [ '-m32' ],
433426
'ldflags': [ '-m32' ],
434427
}],
435-
[ 'target_arch=="ppc64" and OS!="aix"', {
428+
[ 'target_arch=="ppc64" and OS not in "aix os400"', {
436429
'cflags': [ '-m64', '-mminimal-toc' ],
437430
'ldflags': [ '-m64' ],
438431
}],
@@ -451,7 +444,7 @@
451444
}],
452445
],
453446
}],
454-
[ 'OS=="aix"', {
447+
[ 'OS in "aix os400"', {
455448
'variables': {
456449
# Used to differentiate `AIX` and `OS400`(IBM i).
457450
'aix_variant_name': '<!(uname -s)',
@@ -524,7 +517,7 @@
524517
'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
525518
'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
526519
'PREBINDING': 'NO', # No -Wl,-prebind
527-
'MACOSX_DEPLOYMENT_TARGET': '10.13', # -mmacosx-version-min=10.13
520+
'MACOSX_DEPLOYMENT_TARGET': '10.15', # -mmacosx-version-min=10.15
528521
'USE_HEADERMAP': 'NO',
529522
'OTHER_CFLAGS': [
530523
'-fno-strict-aliasing',
@@ -563,7 +556,7 @@
563556
['clang==1', {
564557
'xcode_settings': {
565558
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
566-
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++14', # -std=gnu++14
559+
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++17', # -std=gnu++17
567560
'CLANG_CXX_LIBRARY': 'libc++',
568561
},
569562
}],
@@ -580,7 +573,7 @@
580573
'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
581574
'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
582575
'PREBINDING': 'NO', # No -Wl,-prebind
583-
'IPHONEOS_DEPLOYMENT_TARGET': '11.0', # -miphoneos-version-min=11.0
576+
'IPHONEOS_DEPLOYMENT_TARGET': '13.0', # -miphoneos-version-min=13.0
584577
'USE_HEADERMAP': 'NO',
585578
'OTHER_CFLAGS': [
586579
'-fno-strict-aliasing',
@@ -609,7 +602,7 @@
609602
['target_arch=="x64"', {
610603
'xcode_settings': {'ARCHS': ['x86_64']},
611604
}],
612-
[ 'target_arch in "arm64 arm armv7s"', {
605+
['iossim!="true" and target_arch in "arm64 arm armv7s"', {
613606
'xcode_settings': {
614607
'OTHER_CFLAGS': [
615608
'-fembed-bitcode'
@@ -631,20 +624,17 @@
631624
['clang==1', {
632625
'xcode_settings': {
633626
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
634-
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++1y', # -std=gnu++1y
627+
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++17', # -std=gnu++17
635628
'CLANG_CXX_LIBRARY': 'libc++',
636629
},
637630
}],
638-
['target_arch=="x64" or target_arch=="ia32"', {
631+
['target_arch=="x64" or target_arch=="ia32" or (target_arch=="arm64" and iossim=="true")', {
639632
'xcode_settings': { 'SDKROOT': 'iphonesimulator' },
640633
}, {
641634
'xcode_settings': { 'SDKROOT': 'iphoneos', 'ENABLE_BITCODE': 'YES' },
642635
}],
643636
],
644637
}],
645-
['OS=="freebsd" and node_use_dtrace=="true"', {
646-
'libraries': [ '-lelf' ],
647-
}],
648638
['OS=="freebsd"', {
649639
'ldflags': [
650640
'-Wl,--export-dynamic',

0 commit comments

Comments
 (0)