Skip to content

Commit

Permalink
core: update nodejs-mobile v0.3.1
Browse files Browse the repository at this point in the history
Update the libnode binaries to v0.3.1 release.
Update the libnode headers.
  • Loading branch information
jaimecbernardo committed May 22, 2020
1 parent f0b69a0 commit 7e45d1c
Show file tree
Hide file tree
Showing 687 changed files with 1,472 additions and 1,712 deletions.
Binary file modified libs/android/libnode/bin/arm64-v8a/libnode.so.gz
Binary file not shown.
Binary file modified libs/android/libnode/bin/armeabi-v7a/libnode.so.gz
Binary file not shown.
Binary file modified libs/android/libnode/bin/x86/libnode.so.gz
Binary file not shown.
Binary file modified libs/android/libnode/bin/x86_64/libnode.so.gz
Binary file not shown.
18 changes: 13 additions & 5 deletions libs/android/libnode/include/node/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,12 @@

'openssl_fips%': '',

# Some STL containers (e.g. std::vector) do not preserve ABI compatibility
# between debug and non-debug mode.
'disable_glibcxx_debug': 1,

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

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.31',
'v8_embedder_string': '-node.35',

##### V8 defaults for Node.js #####

Expand Down Expand Up @@ -136,6 +132,9 @@
['OS=="mac" or OS == "ios"', {
'clang%': 1,
}],
['target_arch in "ppc64 s390x"', {
'v8_enable_backtrace': 1,
}],
],
},

Expand Down Expand Up @@ -427,6 +426,15 @@
'-Wl,-brtl',
],
}, { # else it's `AIX`
# Disable the following compiler warning:
#
# warning: visibility attribute not supported in this
# configuration; ignored [-Wattributes]
#
# This is gcc complaining about __attribute((visibility("default"))
# in static library builds. Legitimate but harmless and it drowns
# out more relevant warnings.
'cflags': [ '-Wno-attributes' ],
'ldflags': [
'-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread/ppc64',
],
Expand Down
4 changes: 4 additions & 0 deletions libs/android/libnode/include/node/config.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
'build_v8_with_gn': 'false',
'coverage': 'false',
'debug_nghttp2': 'false',
'debug_node': 'false',
'enable_lto': 'false',
'enable_pgo_generate': 'false',
'enable_pgo_use': 'false',
Expand All @@ -28,6 +29,7 @@
'node_release_urlbase': '',
'node_report': 'true',
'node_shared': 'true',
'node_shared_brotli': 'false',
'node_shared_cares': 'false',
'node_shared_http_parser': 'false',
'node_shared_libuv': 'false',
Expand All @@ -39,6 +41,8 @@
'node_use_bundled_v8': 'true',
'node_use_dtrace': 'false',
'node_use_etw': 'false',
'node_use_large_pages': 'false',
'node_use_large_pages_script_lld': 'false',
'node_use_node_code_cache': 'false',
'node_use_node_snapshot': 'false',
'node_use_openssl': 'true',
Expand Down
2 changes: 1 addition & 1 deletion libs/android/libnode/include/node/js_native_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ NAPI_EXTERN napi_status napi_reject_deferred(napi_env env,
napi_deferred deferred,
napi_value rejection);
NAPI_EXTERN napi_status napi_is_promise(napi_env env,
napi_value promise,
napi_value value,
bool* is_promise);

// Running a script
Expand Down
9 changes: 8 additions & 1 deletion libs/android/libnode/include/node/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,15 @@
# define SIGKILL 9
#endif

#if (__GNUC__ >= 8) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-function-type"
#endif
#include "v8.h" // NOLINT(build/include_order)
#if (__GNUC__ >= 8) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif

#include "v8-platform.h" // NOLINT(build/include_order)
#include "node_version.h" // NODE_MODULE_VERSION

Expand Down Expand Up @@ -379,7 +387,6 @@ NODE_EXTERN MultiIsolatePlatform* GetMainThreadMultiIsolatePlatform();
NODE_EXTERN MultiIsolatePlatform* CreatePlatform(
int thread_pool_size,
node::tracing::TracingController* tracing_controller);
MultiIsolatePlatform* InitializeV8Platform(int thread_pool_size);
NODE_EXTERN void FreePlatform(MultiIsolatePlatform* platform);

NODE_EXTERN void EmitBeforeExit(Environment* env);
Expand Down
8 changes: 5 additions & 3 deletions libs/android/libnode/include/node/node_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ struct uv_loop_s; // Forward declaration.
# define NAPI_MODULE_EXPORT __attribute__((visibility("default")))
#endif

#ifdef __GNUC__
#define NAPI_NO_RETURN __attribute__((noreturn))
#if defined(__GNUC__)
# define NAPI_NO_RETURN __attribute__((noreturn))
#elif defined(_WIN32)
# define NAPI_NO_RETURN __declspec(noreturn)
#else
#define NAPI_NO_RETURN
# define NAPI_NO_RETURN
#endif

typedef napi_value (*napi_addon_register_func)(napi_env env,
Expand Down
2 changes: 1 addition & 1 deletion libs/android/libnode/include/node/node_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#define NODE_MAJOR_VERSION 12
#define NODE_MINOR_VERSION 16
#define NODE_PATCH_VERSION 0
#define NODE_PATCH_VERSION 3

#define NODE_VERSION_IS_LTS 1
#define NODE_VERSION_LTS_CODENAME "Erbium"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

#define PLATFORM "platform: BSD-x86"
#define DATE "built on: Fri Sep 13 15:57:16 2019 UTC"
#define DATE "built on: Tue Apr 21 13:28:30 2020 UTC"

/*
* Generate compiler_flags as an array of individual characters. This is a
Expand All @@ -36,12 +36,13 @@ static const char compiler_flags[] = {
'M',' ','-','D','S','H','A','2','5','6','_','A','S','M',' ','-',
'D','S','H','A','5','1','2','_','A','S','M',' ','-','D','R','C',
'4','_','A','S','M',' ','-','D','M','D','5','_','A','S','M',' ',
'-','D','R','M','D','1','6','0','_','A','S','M',' ','-','D','V',
'P','A','E','S','_','A','S','M',' ','-','D','W','H','I','R','L',
'P','O','O','L','_','A','S','M',' ','-','D','G','H','A','S','H',
'_','A','S','M',' ','-','D','E','C','P','_','N','I','S','T','Z',
'2','5','6','_','A','S','M',' ','-','D','P','O','L','Y','1','3',
'0','5','_','A','S','M',' ','-','D','_','T','H','R','E','A','D',
'_','S','A','F','E',' ','-','D','_','R','E','E','N','T','R','A',
'N','T',' ','-','D','N','D','E','B','U','G','\0'
'-','D','R','M','D','1','6','0','_','A','S','M',' ','-','D','A',
'E','S','N','I','_','A','S','M',' ','-','D','V','P','A','E','S',
'_','A','S','M',' ','-','D','W','H','I','R','L','P','O','O','L',
'_','A','S','M',' ','-','D','G','H','A','S','H','_','A','S','M',
' ','-','D','E','C','P','_','N','I','S','T','Z','2','5','6','_',
'A','S','M',' ','-','D','P','O','L','Y','1','3','0','5','_','A',
'S','M',' ','-','D','_','T','H','R','E','A','D','_','S','A','F',
'E',' ','-','D','_','R','E','E','N','T','R','A','N','T',' ','-',
'D','N','D','E','B','U','G','\0'
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* WARNING: do not edit! */
/* Generated by Makefile from crypto/include/internal/bn_conf.h.in */
/* Generated by Makefile from include/crypto/bn_conf.h.in */
/*
* Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
*
Expand All @@ -9,8 +9,8 @@
* https://www.openssl.org/source/license.html
*/

#ifndef HEADER_BN_CONF_H
# define HEADER_BN_CONF_H
#ifndef OSSL_CRYPTO_BN_CONF_H
# define OSSL_CRYPTO_BN_CONF_H

/*
* The contents of this file are not used in the UEFI build, as
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* WARNING: do not edit! */
/* Generated by Makefile from crypto/include/internal/dso_conf.h.in */
/* Generated by Makefile from include/crypto/dso_conf.h.in */
/*
* Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
*
Expand All @@ -9,8 +9,8 @@
* https://www.openssl.org/source/license.html
*/

#ifndef HEADER_DSO_CONF_H
# define HEADER_DSO_CONF_H
#ifndef OSSL_CRYPTO_DSO_CONF_H
# define OSSL_CRYPTO_DSO_CONF_H
# define DSO_DLFCN
# define HAVE_DLFCN_H
# define DSO_EXTENSION ".so"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ extern "C" {
#ifndef OPENSSL_NO_DYNAMIC_ENGINE
# define OPENSSL_NO_DYNAMIC_ENGINE
#endif
#ifndef OPENSSL_NO_AFALGENG
# define OPENSSL_NO_AFALGENG
#endif


/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WARNING: do not edit!
* Generated by apps/progs.pl
*
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

#define PLATFORM "platform: BSD-x86"
#define DATE "built on: Fri Sep 13 15:57:23 2019 UTC"
#define DATE "built on: Tue Apr 21 13:28:32 2020 UTC"

/*
* Generate compiler_flags as an array of individual characters. This is a
Expand All @@ -38,11 +38,12 @@ static const char compiler_flags[] = {
' ','-','D','S','H','A','5','1','2','_','A','S','M',' ','-','D',
'R','C','4','_','A','S','M',' ','-','D','M','D','5','_','A','S',
'M',' ','-','D','R','M','D','1','6','0','_','A','S','M',' ','-',
'D','V','P','A','E','S','_','A','S','M',' ','-','D','W','H','I',
'R','L','P','O','O','L','_','A','S','M',' ','-','D','G','H','A',
'S','H','_','A','S','M',' ','-','D','E','C','P','_','N','I','S',
'T','Z','2','5','6','_','A','S','M',' ','-','D','P','O','L','Y',
'1','3','0','5','_','A','S','M',' ','-','D','_','T','H','R','E',
'A','D','_','S','A','F','E',' ','-','D','_','R','E','E','N','T',
'R','A','N','T',' ','-','D','N','D','E','B','U','G','\0'
'D','A','E','S','N','I','_','A','S','M',' ','-','D','V','P','A',
'E','S','_','A','S','M',' ','-','D','W','H','I','R','L','P','O',
'O','L','_','A','S','M',' ','-','D','G','H','A','S','H','_','A',
'S','M',' ','-','D','E','C','P','_','N','I','S','T','Z','2','5',
'6','_','A','S','M',' ','-','D','P','O','L','Y','1','3','0','5',
'_','A','S','M',' ','-','D','_','T','H','R','E','A','D','_','S',
'A','F','E',' ','-','D','_','R','E','E','N','T','R','A','N','T',
' ','-','D','N','D','E','B','U','G','\0'
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* WARNING: do not edit! */
/* Generated by Makefile from crypto/include/internal/bn_conf.h.in */
/* Generated by Makefile from include/crypto/bn_conf.h.in */
/*
* Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
*
Expand All @@ -9,8 +9,8 @@
* https://www.openssl.org/source/license.html
*/

#ifndef HEADER_BN_CONF_H
# define HEADER_BN_CONF_H
#ifndef OSSL_CRYPTO_BN_CONF_H
# define OSSL_CRYPTO_BN_CONF_H

/*
* The contents of this file are not used in the UEFI build, as
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* WARNING: do not edit! */
/* Generated by Makefile from crypto/include/internal/dso_conf.h.in */
/* Generated by Makefile from include/crypto/dso_conf.h.in */
/*
* Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
*
Expand All @@ -9,8 +9,8 @@
* https://www.openssl.org/source/license.html
*/

#ifndef HEADER_DSO_CONF_H
# define HEADER_DSO_CONF_H
#ifndef OSSL_CRYPTO_DSO_CONF_H
# define OSSL_CRYPTO_DSO_CONF_H
# define DSO_DLFCN
# define HAVE_DLFCN_H
# define DSO_EXTENSION ".so"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ extern "C" {
#ifndef OPENSSL_NO_DYNAMIC_ENGINE
# define OPENSSL_NO_DYNAMIC_ENGINE
#endif
#ifndef OPENSSL_NO_AFALGENG
# define OPENSSL_NO_AFALGENG
#endif


/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WARNING: do not edit!
* Generated by apps/progs.pl
*
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

#define PLATFORM "platform: BSD-x86"
#define DATE "built on: Fri Sep 13 15:57:29 2019 UTC"
#define DATE "built on: Tue Apr 21 13:28:34 2020 UTC"

/*
* Generate compiler_flags as an array of individual characters. This is a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* WARNING: do not edit! */
/* Generated by Makefile from crypto/include/internal/bn_conf.h.in */
/* Generated by Makefile from include/crypto/bn_conf.h.in */
/*
* Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
*
Expand All @@ -9,8 +9,8 @@
* https://www.openssl.org/source/license.html
*/

#ifndef HEADER_BN_CONF_H
# define HEADER_BN_CONF_H
#ifndef OSSL_CRYPTO_BN_CONF_H
# define OSSL_CRYPTO_BN_CONF_H

/*
* The contents of this file are not used in the UEFI build, as
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* WARNING: do not edit! */
/* Generated by Makefile from crypto/include/internal/dso_conf.h.in */
/* Generated by Makefile from include/crypto/dso_conf.h.in */
/*
* Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
*
Expand All @@ -9,8 +9,8 @@
* https://www.openssl.org/source/license.html
*/

#ifndef HEADER_DSO_CONF_H
# define HEADER_DSO_CONF_H
#ifndef OSSL_CRYPTO_DSO_CONF_H
# define OSSL_CRYPTO_DSO_CONF_H
# define DSO_DLFCN
# define HAVE_DLFCN_H
# define DSO_EXTENSION ".so"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ extern "C" {
#ifndef OPENSSL_NO_DYNAMIC_ENGINE
# define OPENSSL_NO_DYNAMIC_ENGINE
#endif
#ifndef OPENSSL_NO_AFALGENG
# define OPENSSL_NO_AFALGENG
#endif


/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WARNING: do not edit!
* Generated by apps/progs.pl
*
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

#define PLATFORM "platform: BSD-x86_64"
#define DATE "built on: Fri Sep 13 15:57:33 2019 UTC"
#define DATE "built on: Tue Apr 21 13:28:35 2020 UTC"

/*
* Generate compiler_flags as an array of individual characters. This is a
Expand All @@ -35,12 +35,12 @@ static const char compiler_flags[] = {
'_','A','S','M',' ','-','D','S','H','A','5','1','2','_','A','S',
'M',' ','-','D','K','E','C','C','A','K','1','6','0','0','_','A',
'S','M',' ','-','D','R','C','4','_','A','S','M',' ','-','D','M',
'D','5','_','A','S','M',' ','-','D','V','P','A','E','S','_','A',
'S','M',' ','-','D','G','H','A','S','H','_','A','S','M',' ','-',
'D','E','C','P','_','N','I','S','T','Z','2','5','6','_','A','S',
'M',' ','-','D','X','2','5','5','1','9','_','A','S','M',' ','-',
'D','P','O','L','Y','1','3','0','5','_','A','S','M',' ','-','D',
'_','T','H','R','E','A','D','_','S','A','F','E',' ','-','D','_',
'R','E','E','N','T','R','A','N','T',' ','-','D','N','D','E','B',
'U','G','\0'
'D','5','_','A','S','M',' ','-','D','A','E','S','N','I','_','A',
'S','M',' ','-','D','V','P','A','E','S','_','A','S','M',' ','-',
'D','G','H','A','S','H','_','A','S','M',' ','-','D','E','C','P',
'_','N','I','S','T','Z','2','5','6','_','A','S','M',' ','-','D',
'X','2','5','5','1','9','_','A','S','M',' ','-','D','P','O','L',
'Y','1','3','0','5','_','A','S','M',' ','-','D','_','T','H','R',
'E','A','D','_','S','A','F','E',' ','-','D','_','R','E','E','N',
'T','R','A','N','T',' ','-','D','N','D','E','B','U','G','\0'
};
Loading

0 comments on commit 7e45d1c

Please sign in to comment.