Sha256: f28af21084b84f6c50bea56e5f404f8639520c340c7dc23195eeaf48a6d13475

Contents?: true

Size: 1.3 KB

Versions: 14

Compression:

Stored size: 1.3 KB

Contents

#!/bin/sh

set -e
set -u

libexec="$(cd "$(dirname "$0")"; pwd)"
top="${libexec}/.."
src="${2:-"${top}/src"}"
version="${1:-$("${libexec}/metadata" node_version)}"

cd "${src}/node-v${version}"

BASEDIR="${PWD}"
BUILDTYPE="${BUILDTYPE:-Release}"
LIBV8_MONOLITH="libv8_monolith.a"

cd "out/${BUILDTYPE}/obj.target"

platform=$(uname)

rm -f "${LIBV8_MONOLITH}"
case "${platform}" in
    "SunOS")
        /usr/xpg4/bin/find . '(' '!' -path './icutools/deps/icu-small/source/stubdata/stubdata.o' ')' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs ar cq "${LIBV8_MONOLITH}"
        ;;
    "Darwin")
        /usr/bin/find . '(' '!' -path './icutools/deps/icu-small/source/stubdata/stubdata.o' ')' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs /usr/bin/ar -cq "${LIBV8_MONOLITH}"
        ;;
    "Linux")
        find . '(' '!' -path './icutools/deps/icu-small/source/stubdata/stubdata.o' ')' -and '(' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" ')' | sort | uniq | xargs ar -cqSP "${LIBV8_MONOLITH}"
        ar -sP "${LIBV8_MONOLITH}"
        ;;
    *)
      echo "Unsupported platform: ${platform}"
      exit 1
      ;;
esac

mv -f "${LIBV8_MONOLITH}" "${BASEDIR}/out/${BUILDTYPE}/${LIBV8_MONOLITH}"

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
libv8-node-22.7.0.4 libexec/build-monolith
libv8-node-22.7.0.3 libexec/build-monolith
libv8-node-22.7.0.2 libexec/build-monolith
libv8-node-22.7.0.1 libexec/build-monolith
libv8-node-22.5.1.0 libexec/build-monolith
libv8-node-21.7.2.0 libexec/build-monolith
libv8-node-20.12.1.0 libexec/build-monolith
libv8-node-18.19.1.0 libexec/build-monolith
libv8-node-18.19.0.0 libexec/build-monolith
libv8-node-18.16.0.0 libexec/build-monolith
libv8-node-20.2.0.0 libexec/build-monolith
libv8-node-19.9.0.0 libexec/build-monolith
libv8-node-18.13.0.1 libexec/build-monolith
libv8-node-17.9.1.1 libexec/build-monolith