libv8-node 16.10.0.0 → 18.8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/libv8-node/paths.rb +5 -1
- data/lib/libv8/node/version.rb +3 -3
- data/libexec/build-libv8 +2 -2
- data/libexec/build-monolith +3 -11
- data/libexec/inject-libv8 +6 -0
- data/libexec/metadata +1 -1
- data/libexec/platform +43 -4
- data/sums/v17.3.1.sum +1 -0
- data/sums/v17.9.1.sum +1 -0
- data/sums/v18.8.0.sum +1 -0
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8651235d98f90eeb7ccefdcb3f3f9de31306155071c46636338099c8c6f5e8c4
|
4
|
+
data.tar.gz: ab3828a5d6b8997cf6975cc2912adec25ad7a9a604577dac284391ddab8d7c5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7422adf3ee5ba6214a765e8001ecdb51a52bea5aab5a844b5794bba668015c084bf763ad4b2ffa0ced2d45eb36de2446d635d32ae73d6c32ce8fd8a5c0bf882b
|
7
|
+
data.tar.gz: b17938207700356a20839ec637c13859bfc2baba299d534fcd6d019ca61ce97668ac0be1117b19cc95708733b79903a69beaa7a85d72006b9e41e819f102ab38
|
data/ext/libv8-node/paths.rb
CHANGED
@@ -13,12 +13,16 @@ module Libv8::Node
|
|
13
13
|
|
14
14
|
def object_paths
|
15
15
|
[Shellwords.escape(File.join(vendored_source_path,
|
16
|
-
|
16
|
+
platform,
|
17
17
|
'libv8',
|
18
18
|
'obj',
|
19
19
|
"libv8_monolith.#{config['LIBEXT']}"))]
|
20
20
|
end
|
21
21
|
|
22
|
+
def platform
|
23
|
+
Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? && p.instance_eval { @version = 'musl' } }.to_s.gsub(/-darwin-?\d+/, '-darwin')
|
24
|
+
end
|
25
|
+
|
22
26
|
def config
|
23
27
|
RbConfig::MAKEFILE_CONFIG
|
24
28
|
end
|
data/lib/libv8/node/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Libv8; end
|
2
2
|
|
3
3
|
module Libv8::Node
|
4
|
-
VERSION = '
|
5
|
-
NODE_VERSION = '
|
6
|
-
LIBV8_VERSION = '
|
4
|
+
VERSION = '18.8.0.0'.freeze
|
5
|
+
NODE_VERSION = '18.8.0'.freeze
|
6
|
+
LIBV8_VERSION = '10.2.154.13'.freeze # from v8/include/v8-version.h
|
7
7
|
end
|
data/libexec/build-libv8
CHANGED
@@ -29,8 +29,8 @@ eval "$("${libexec}/platform")"
|
|
29
29
|
echo "configure: ${configure_flags}"
|
30
30
|
echo "compilers: CC='${CC}' CXX='${CXX}' CC_host='${CC_host:-}' CXX_host='${CXX_host:-}'"
|
31
31
|
|
32
|
-
|
33
|
-
|
32
|
+
${CC} -v
|
33
|
+
${CXX} -v
|
34
34
|
|
35
35
|
# shellcheck disable=SC2086
|
36
36
|
"${PYTHON}" configure ${configure_flags}
|
data/libexec/build-monolith
CHANGED
@@ -21,21 +21,13 @@ platform=$(uname)
|
|
21
21
|
rm -f "${LIBV8_MONOLITH}"
|
22
22
|
case "${platform}" in
|
23
23
|
"SunOS")
|
24
|
-
/usr/xpg4/bin/find . -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq |
|
25
|
-
ar cqS "${LIBV8_MONOLITH}" "${obj}"
|
26
|
-
done
|
27
|
-
ranlib "${LIBV8_MONOLITH}"
|
24
|
+
/usr/xpg4/bin/find . -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs ar cq "${LIBV8_MONOLITH}"
|
28
25
|
;;
|
29
26
|
"Darwin")
|
30
|
-
/usr/bin/find . -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq |
|
31
|
-
/usr/bin/ar -cqS "${LIBV8_MONOLITH}" "${obj}"
|
32
|
-
done
|
33
|
-
/usr/bin/ranlib "${LIBV8_MONOLITH}"
|
27
|
+
/usr/bin/find . -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs /usr/bin/ar -cq "${LIBV8_MONOLITH}"
|
34
28
|
;;
|
35
29
|
"Linux")
|
36
|
-
find . -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq |
|
37
|
-
ar -cq "${LIBV8_MONOLITH}" "${obj}"
|
38
|
-
done
|
30
|
+
find . -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs ar -cq "${LIBV8_MONOLITH}"
|
39
31
|
;;
|
40
32
|
*)
|
41
33
|
echo "Unsupported platform: ${platform}"
|
data/libexec/inject-libv8
CHANGED
@@ -26,6 +26,12 @@ done
|
|
26
26
|
|
27
27
|
cd "${BASEDIR}/out/${BUILDTYPE}"
|
28
28
|
|
29
|
+
case "${RUBY_TARGET_PLATFORM}" in
|
30
|
+
*-darwin*)
|
31
|
+
RUBY_TARGET_PLATFORM="$(echo "${RUBY_TARGET_PLATFORM}" | sed -e 's/-darwin[0-9]*/-darwin/')"
|
32
|
+
;;
|
33
|
+
esac
|
34
|
+
|
29
35
|
rm -rf "${top}/vendor/v8/${RUBY_TARGET_PLATFORM}"
|
30
36
|
# shellcheck disable=SC2043
|
31
37
|
for lib in libv8_monolith.a; do
|
data/libexec/metadata
CHANGED
@@ -5,7 +5,7 @@ case "$1" in
|
|
5
5
|
ruby -e 'puts RUBY_PLATFORM'
|
6
6
|
;;
|
7
7
|
gem_platform)
|
8
|
-
ruby -e 'puts Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? and p.instance_eval { @version = "musl" } }'
|
8
|
+
ruby -e 'puts Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? and p.instance_eval { @version = "musl" } }.to_s.gsub(/-darwin-?\d+/, "-darwin")'
|
9
9
|
;;
|
10
10
|
gem_version|version)
|
11
11
|
ruby -I'lib' -r'libv8/node/version' -e 'puts Libv8::Node::VERSION'
|
data/libexec/platform
CHANGED
@@ -16,7 +16,7 @@ fi
|
|
16
16
|
|
17
17
|
STRIP="${STRIP:-strip}"
|
18
18
|
|
19
|
-
triple=$(
|
19
|
+
triple=$(${CC} -dumpmachine)
|
20
20
|
host_platform="${triple}"
|
21
21
|
target_platform="${TARGET_PLATFORM:-${1:-}}"
|
22
22
|
target_platform="${target_platform:-${host_platform}}"
|
@@ -42,14 +42,17 @@ case "${target_platform}" in
|
|
42
42
|
;;
|
43
43
|
x86_64*-darwin*)
|
44
44
|
# not for cross compilation
|
45
|
-
RUBY_TARGET_PLATFORM=
|
45
|
+
RUBY_TARGET_PLATFORM='x86_64-darwin'
|
46
46
|
;;
|
47
47
|
arm64*-darwin*)
|
48
48
|
# not for cross compilation
|
49
|
-
RUBY_TARGET_PLATFORM=
|
49
|
+
RUBY_TARGET_PLATFORM='arm64-darwin'
|
50
50
|
;;
|
51
51
|
*)
|
52
|
-
|
52
|
+
if [ "${host_platform}" != "${target_platform}" ]; then
|
53
|
+
echo 'cross compilation not supported'
|
54
|
+
exit 1
|
55
|
+
fi
|
53
56
|
RUBY_TARGET_PLATFORM="$(ruby -e 'puts Gem::Platform.local.to_s')"
|
54
57
|
;;
|
55
58
|
esac
|
@@ -81,6 +84,30 @@ if [ "${host_platform}" != "${target_platform}" ]; then
|
|
81
84
|
STRIP='arm-linux-gnueabihf-strip'
|
82
85
|
configure_flags='--dest-cpu=arm --cross-compiling --dest-os=linux --with-arm-float-abi=hard --with-arm-fpu=neon'
|
83
86
|
;;
|
87
|
+
x86_64-*linux*)
|
88
|
+
CC='x86_64-linux-gnu-gcc'
|
89
|
+
CXX='x86_64-linux-gnu-g++'
|
90
|
+
CC_host='gcc'
|
91
|
+
CXX_host='g++'
|
92
|
+
STRIP='x86_64-linux-gnu-strip'
|
93
|
+
configure_flags='--dest-cpu=x86_64 --cross-compiling --dest-os=linux'
|
94
|
+
;;
|
95
|
+
x86_64*-darwin*)
|
96
|
+
CC='clang -arch x86_64'
|
97
|
+
CXX='clang++ -arch x86_64'
|
98
|
+
CC_host='clang'
|
99
|
+
CXX_host='clang++'
|
100
|
+
STRIP='strip'
|
101
|
+
configure_flags='--dest-cpu=x86_64 --cross-compiling --dest-os=mac'
|
102
|
+
;;
|
103
|
+
arm64*-darwin*)
|
104
|
+
CC='clang -arch arm64'
|
105
|
+
CXX='clang++ -arch arm64'
|
106
|
+
CC_host='clang'
|
107
|
+
CXX_host='clang++'
|
108
|
+
STRIP='strip'
|
109
|
+
configure_flags='--dest-cpu=arm64 --cross-compiling --dest-os=mac'
|
110
|
+
;;
|
84
111
|
*)
|
85
112
|
configure_flags=''
|
86
113
|
;;
|
@@ -102,6 +129,18 @@ fi
|
|
102
129
|
# ;;
|
103
130
|
# esac
|
104
131
|
|
132
|
+
if command -v ccache >/dev/null 2>&1; then
|
133
|
+
if [ -n "${CC:-}" ] && [ "${CC}" = "${CC#ccache}" ]; then
|
134
|
+
CC="ccache ${CC}"
|
135
|
+
CXX="ccache ${CXX}"
|
136
|
+
fi
|
137
|
+
|
138
|
+
if [ -n "${CC_host:-}" ] && [ "${CC_host}" = "${CC_host#ccache}" ]; then
|
139
|
+
CC_host="ccache ${CC_host}"
|
140
|
+
CXX_host="ccache ${CXX_host}"
|
141
|
+
fi
|
142
|
+
fi
|
143
|
+
|
105
144
|
cat <<EOF
|
106
145
|
export CC='${CC}'
|
107
146
|
export CXX='${CXX}'
|
data/sums/v17.3.1.sum
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
34ed7eeb1fd088c59e2719c229dc9587c9f106b45329798ca3945c386ac824ed
|
data/sums/v17.9.1.sum
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1102f5e0aafaab8014d19c6c57142caf2ba3ef69d88d7a7f0f82798051796027
|
data/sums/v18.8.0.sum
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
676a3ca9bdbe7381e49652f2f78705f83175f3844a7450893d562faa35537ba2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libv8-node
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 18.8.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -76,11 +76,14 @@ files:
|
|
76
76
|
- sums/v16.7.0.sum
|
77
77
|
- sums/v16.8.0.sum
|
78
78
|
- sums/v16.9.1.sum
|
79
|
-
|
79
|
+
- sums/v17.3.1.sum
|
80
|
+
- sums/v17.9.1.sum
|
81
|
+
- sums/v18.8.0.sum
|
82
|
+
homepage: https://github.com/rubyjs/libv8-node
|
80
83
|
licenses:
|
81
84
|
- MIT
|
82
85
|
metadata: {}
|
83
|
-
post_install_message:
|
86
|
+
post_install_message:
|
84
87
|
rdoc_options: []
|
85
88
|
require_paths:
|
86
89
|
- lib
|
@@ -96,8 +99,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
99
|
- !ruby/object:Gem::Version
|
97
100
|
version: '0'
|
98
101
|
requirements: []
|
99
|
-
rubygems_version: 3.
|
100
|
-
signing_key:
|
102
|
+
rubygems_version: 3.2.26
|
103
|
+
signing_key:
|
101
104
|
specification_version: 4
|
102
105
|
summary: Node.JS's V8 JavaScript engine
|
103
106
|
test_files: []
|