From 1a25e901b7c380929f0d08599f49dd77897a627f Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Mon, 30 Sep 2019 11:17:49 -0700 Subject: tools: support full-icu by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of an English-only icudt64l.dat in the repo, we now have icudt64l.dat.gz with all locales. - updated READMEs and docs - shrinker now copies source, and compresses (bzip2) the ICU data file - configure expects deps/icu-small to be full ICU with a full compressed data file Fixes: https://github.com/nodejs/node/issues/19214 Co-Authored-By: Richard Lau Co-Authored-By: Jan Olaf Krems Co-Authored-By: James M Snell PR-URL: https://github.com/nodejs/node/pull/29522 Reviewed-By: Jan Krems Reviewed-By: Jiawen Geng Reviewed-By: James M Snell Reviewed-By: Michael Dawson Reviewed-By: Michaƫl Zasso --- BUILDING.md | 47 +++++++++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 18 deletions(-) (limited to 'BUILDING.md') diff --git a/BUILDING.md b/BUILDING.md index 0e0379265f..aadba46020 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -35,21 +35,23 @@ file a new issue. * [Building Node.js](#building-nodejs-1) * [Android/Android-based devices (e.g. Firefox OS)](#androidandroid-based-devices-eg-firefox-os) * [`Intl` (ECMA-402) support](#intl-ecma-402-support) - * [Default: `small-icu` (English only) support](#default-small-icu-english-only-support) * [Build with full ICU support (all locales supported by ICU)](#build-with-full-icu-support-all-locales-supported-by-icu) * [Unix/macOS](#unixmacos) * [Windows](#windows-1) - * [Building without Intl support](#building-without-intl-support) + * [Trimmed: `small-icu` (English only) support](#trimmed-small-icu-english-only-support) * [Unix/macOS](#unixmacos-1) * [Windows](#windows-2) - * [Use existing installed ICU (Unix/macOS only)](#use-existing-installed-icu-unixmacOS-only) - * [Build with a specific ICU](#build-with-a-specific-icu) + * [Building without Intl support](#building-without-intl-support) * [Unix/macOS](#unixmacos-2) * [Windows](#windows-3) + * [Use existing installed ICU (Unix/macOS only)](#use-existing-installed-icu-unixmacOS-only) + * [Build with a specific ICU](#build-with-a-specific-icu) + * [Unix/macOS](#unixmacos-3) + * [Windows](#windows-4) * [Building Node.js with FIPS-compliant OpenSSL](#building-nodejs-with-fips-compliant-openssl) * [Building Node.js with external core modules](#building-nodejs-with-external-core-modules) - * [Unix/macOS](#unixmacos-3) - * [Windows](#windows-4) + * [Unix/macOS](#unixmacos-4) + * [Windows](#windows-5) * [Note for downstream distributors of Node.js](#note-for-downstream-distributors-of-nodejs) ## Supported platforms @@ -598,31 +600,40 @@ $ make ## `Intl` (ECMA-402) support [Intl](https://github.com/nodejs/node/blob/master/doc/api/intl.md) support is -enabled by default, with English data only. +enabled by default. -### Default: `small-icu` (English only) support +### Build with full ICU support (all locales supported by ICU) -By default, only English data is included, but -the full `Intl` (ECMA-402) APIs. It does not need to download -any dependencies to function. You can add full -data at runtime. +This is the default option. -### Build with full ICU support (all locales supported by ICU) +#### Unix/macOS -With the `--download=all`, this may download ICU if you don't have an -ICU in `deps/icu`. (The embedded `small-icu` included in the default -Node.js source does not include all locales.) +```console +$ ./configure --with-intl=full-icu +``` + +#### Windows + +```console +> .\vcbuild full-icu +``` + +### Trimmed: `small-icu` (English only) support + + In this configuration, only English data is included, but +the full `Intl` (ECMA-402) APIs. It does not need to download +any dependencies to function. You can add full data at runtime. #### Unix/macOS ```console -$ ./configure --with-intl=full-icu --download=all +$ ./configure --with-intl=small-icu ``` #### Windows ```console -> .\vcbuild full-icu download-all +> .\vcbuild small-icu ``` ### Building without Intl support -- cgit v1.2.3