commit | c5cde9b910bdd3d13570d38991e19757180d73f9 | [log] [tgz] |
---|---|---|
author | Marja Hölttä <marja@chromium.org> | Mon Jul 11 07:54:25 2022 |
committer | Node-ci LUCI CQ <node-ci-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jul 11 09:51:22 2022 |
tree | 56f46b52ed55fe0f947c64df7813a4ea2ee35cdd | |
parent | 98d37c11b59b6d60181b1aa90e71612af542b6ab [diff] |
Update Node Change-Id: I92c7fe321dbf301e62a0b0ecdc43c7a7e7b26db8 Reviewed-on: https://chromium-review.googlesource.com/c/v8/node-ci/+/3754742 Reviewed-by: Victor Gomes <victorgomes@chromium.org> Commit-Queue: Marja Hölttä <marja@chromium.org>
This project is a set of dependency and build configurations to build Node.js with GN.
V8 was originally built with SCons. Following Chromium, it made the switch to GYP, completing around 2012. That was when Node.js started its success story. However, again following Chromium, V8 made the switch to GN, completing in 2016. So far, Node.js has hesitated in adopting GN. One of the reasons is its now established native modules ecosystem that relies on GYP for build configuration.
Electron, having both Chromium and Node.js as its dependencies, adopted GN. Many files in this repository have been derived from the Electron project, with appropriate changes to avoid the need for forking files, to implement a standalone build, or to fix test failures.
Some reading material:
Get depot_tools first.
mkdir node-ci cd node-ci fetch node-ci
Alternatively, you can
mkdir node-ci cd node-ci git clone https://chromium.googlesource.com/v8/node-ci gclient config https://chromium.googlesource.com/v8/node-ci --unmanaged
cd node-ci make deps make node
JOBS=4 make test
For more advanced build options, check out tools/gn-gen.py --help
.
To update a dependency, e.g. V8 or Node.js, use gclient to update DEPS.
gclient setdep --var=v8_revision=<updated-git-hash>
To apply changes, e.g. for local testing, use git:
cd v8 git remote add local-v8 <path-to-v8-checkout>/.git git fetch local-v8 git checkout local-v8/<your-branch>
DEPS
.