Skip to content

Latest commit

 

History

History
60 lines (46 loc) · 1.09 KB

README.md

File metadata and controls

60 lines (46 loc) · 1.09 KB

libnode

release.yml workflow status

This repo contains the scripts that build Node.js as a static library for embedding in DeskGap.

Usage

Configuring

Specify the Node version:

export LIBNODE_NODE_VERSION=v15.11.0

Remove Intl support to reduce the size (optional):

export LIBNODE_CONFIG_FLAGS=--without-intl
export LIBNODE_ZIP_SUFFIX=-nointl

Build the x86 version (optional, Windows only):

export LIBNODE_X86=1

Downloading the source code of Node.js:

python3 -m scripts.download

Patch the source code:

python3 -m scripts.patch

Building Node.js:

python3 -m scripts.build

Postprocessing the static library files:

python3 -m scripts.postproc

Copying the headers:

python3 -m scripts.headers

Testing the library:

python3 -m scripts.test

Archiving:

python3 -m scripts.archive