Skip to content
Build Node.js as a static library
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
.gitignore
LICENSE
README.md
azure-pipelines.yml

README.md

libnode

Build 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=v11.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

Building Node.js:

python3 -m scripts.build

Archiving the static library:

python3 -m scripts.postproc
python3 -m scripts.archive
You can’t perform that action at this time.