tools: allow separate component install w/ env var
Primary use cases are: headers tarball (previously using HEADERS_ONLY
)
and OS X installer so it has npm files separate from core node + header
files. This is a component of #5656, a rework of the OS X installer, which now
has a working checkbox to optionally install npm.
- set
NODE_INSTALL_NODE_ONLY
for core node executable and associated extras (dtrace, systemtap, gdbinit, man page). - set
NODE_INSTALL_HEADERS_ONLY
for header files as required for compiling native addons, previouslyHEADERS_ONLY
, used for creating the headers tarball for distribution. - set
NODE_INSTALL_NPM_ONLY
to install npm only, including executable symlink.
If none of these are set, install everything.
Options are mutually exclusive, run install.py multiple times to install multiple components.
/cc @nodejs/build @fhemberger
I'm also open to making this a semver-major change because of the change from HEADERS_ONLY
to NODE_INSTALL_HEADERS_ONLY
although I don't imagine anyone's actually using that in the wild (it's new and also pretty obscure for use outside of the Makefile).