commit | 8f78b0285e25225c494f3a397bce7b89c189a176 | [log] [tgz] |
---|---|---|
author | Victor Gomes <victorgomes@chromium.org> | Mon Aug 31 09:57:59 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Aug 31 10:56:16 2020 |
tree | 4138b49d96749916b0e19aa739bdfd53c9878f13 | |
parent | 2e2416c3c71b4a31f20ec5180203fceaeea8c453 [diff] |
Update DEPS Change-Id: I71540bd5a7dc0664ae1ccbef70c62996d165e3ce Reviewed-on: https://chromium-review.googlesource.com/c/v8/node-ci/+/2385095 Auto-Submit: Victor Gomes <victorgomes@chromium.org> Reviewed-by: Michael Achenbach <machenbach@chromium.org> Commit-Queue: Michael Achenbach <machenbach@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
.