2016-08-08 18:55:16 +02:00
|
|
|
# Whitelist dotfiles
|
|
|
|
.*
|
|
|
|
!deps/**/.*
|
|
|
|
!test/fixtures/**/.*
|
2017-12-22 16:53:42 +01:00
|
|
|
!tools/node_modules/**/.*
|
2016-08-08 18:55:16 +02:00
|
|
|
!tools/doc/node_modules/**/.*
|
2018-07-13 14:19:31 +02:00
|
|
|
!.clang-format
|
2016-08-08 18:55:16 +02:00
|
|
|
!.editorconfig
|
|
|
|
!.eslintignore
|
2018-02-04 20:38:18 +01:00
|
|
|
!.eslintrc.js
|
2019-03-25 03:58:29 +01:00
|
|
|
!.flake8
|
2016-08-08 18:55:16 +02:00
|
|
|
!.gitattributes
|
|
|
|
!.github
|
|
|
|
!.gitignore
|
|
|
|
!.gitkeep
|
|
|
|
!.mailmap
|
2017-09-05 08:33:27 +02:00
|
|
|
!.nycrc
|
2017-08-23 23:24:50 +02:00
|
|
|
!.travis.yml
|
2018-09-29 21:31:04 +02:00
|
|
|
!.eslintrc.yaml
|
2016-08-08 18:55:16 +02:00
|
|
|
|
2011-12-14 03:38:41 +01:00
|
|
|
core
|
|
|
|
vgcore.*
|
2013-01-24 11:35:29 +01:00
|
|
|
v8*.log
|
2013-01-14 13:06:29 +01:00
|
|
|
perf.data
|
|
|
|
perf.data.old
|
2009-02-22 17:50:43 +01:00
|
|
|
tags
|
2009-04-16 13:20:22 +02:00
|
|
|
*.pyc
|
2009-10-03 22:42:03 +02:00
|
|
|
doc/api.xml
|
2010-07-01 23:29:06 +02:00
|
|
|
tmp/
|
2014-12-17 14:34:21 +01:00
|
|
|
test/tmp*/
|
2015-01-08 14:00:43 +01:00
|
|
|
iojs
|
|
|
|
iojs_g
|
2015-08-13 18:14:34 +02:00
|
|
|
node
|
|
|
|
node_g
|
2010-09-11 09:44:29 +02:00
|
|
|
*.swp
|
2014-12-16 00:36:00 +01:00
|
|
|
icu_config.gypi
|
2017-05-02 06:44:38 +02:00
|
|
|
node_trace.*.log
|
2017-09-19 13:52:23 +02:00
|
|
|
coverage/
|
2018-09-29 21:31:04 +02:00
|
|
|
!**/node_modules/**/coverage
|
2011-08-04 02:01:30 +02:00
|
|
|
|
2011-08-08 21:11:48 +02:00
|
|
|
/out
|
2011-08-07 07:11:21 +02:00
|
|
|
|
|
|
|
# various stuff that VC++ produces/uses
|
|
|
|
Debug/
|
2015-11-05 20:53:52 +01:00
|
|
|
!**/node_modules/debug/
|
2011-08-07 07:11:21 +02:00
|
|
|
Release/
|
2018-09-29 21:31:04 +02:00
|
|
|
!**/node_modules/**/release
|
2012-06-20 19:14:45 +02:00
|
|
|
!doc/blog/**
|
2011-08-07 07:11:21 +02:00
|
|
|
*.sln
|
2011-09-14 23:51:49 +02:00
|
|
|
!nodemsi.sln
|
2011-08-07 07:11:21 +02:00
|
|
|
*.suo
|
|
|
|
*.vcproj
|
|
|
|
*.vcxproj
|
2015-01-27 16:01:23 +01:00
|
|
|
!custom_actions.vcxproj
|
2011-08-07 07:11:21 +02:00
|
|
|
*.vcxproj.user
|
|
|
|
*.vcxproj.filters
|
|
|
|
UpgradeLog*.XML
|
|
|
|
_UpgradeReport_Files/
|
|
|
|
ipch/
|
|
|
|
*.sdf
|
|
|
|
*.opensdf
|
2017-12-28 12:22:05 +01:00
|
|
|
*.VC.db
|
2016-04-06 01:15:55 +02:00
|
|
|
*.VC.opendb
|
2017-05-24 23:24:08 +02:00
|
|
|
/*.exe
|
2011-08-08 17:55:39 +02:00
|
|
|
|
2012-01-17 23:02:15 +01:00
|
|
|
/config.mk
|
2011-12-23 23:24:50 +01:00
|
|
|
/config.gypi
|
2018-06-16 21:28:34 +02:00
|
|
|
/config.status
|
2015-11-25 01:17:49 +01:00
|
|
|
/config_fips.gypi
|
2011-08-08 21:11:48 +02:00
|
|
|
*-nodegyp*
|
|
|
|
/gyp-mac-tool
|
2011-11-23 01:10:32 +01:00
|
|
|
/npm.wxs
|
|
|
|
/tools/msvs/npm.wixobj
|
2016-03-11 11:26:20 +01:00
|
|
|
/tools/msvs/genfiles/
|
2018-01-23 11:49:25 +01:00
|
|
|
/test/addons/??_*/
|
2012-03-17 19:00:05 +01:00
|
|
|
email.md
|
|
|
|
deps/v8-*
|
build, i18n: improve Intl build, add "--with-intl"
The two main goals of this change are:
- To make it easier to build the Intl option using ICU (particularly,
using a newer ICU than v8/Chromium's version)
- To enable a much smaller ICU build with only English support The goal
here is to get node.js binaries built this way by default so that the
Intl API can be used. Additional data can be added at execution time
(see Readme and wiki)
More details are at https://github.com/joyent/node/pull/7719
In particular, this change adds the "--with-intl=" configure option to
provide more ways of building "Intl":
- "full-icu" picks up an ICU from deps/icu
- "small-icu" is similar, but builds only English
- "system-icu" uses pkg-config to find an installed ICU
- "none" does nothing (no Intl)
For Windows builds, the "full-icu" or "small-icu" options are added to
vcbuild.bat.
Note that the existing "--with-icu-path" option is not removed from
configure, but may not be used alongside the new option.
Wiki changes have already been made on
https://github.com/joyent/node/wiki/Installation
and a new page created at
https://github.com/joyent/node/wiki/Intl
(marked as provisional until this change lands.)
Summary of changes:
* README.md : doc updates
* .gitignore : added "deps/icu" as this is the location where ICU is
unpacked to.
* Makefile : added the tools/icu/* files to cpplint, but excluded a
problematic file.
* configure : added the "--with-intl" option mentioned above.
Calculate at config time the list of ICU source files to use and data
packaging options.
* node.gyp : add the new files src/node_i18n.cc/.h as well as ICU
linkage.
* src/node.cc : add call into
node::i18n::InitializeICUDirectory(icu_data_dir) as well as new
--icu-data-dir option and NODE_ICU_DATA env variable to configure ICU
data loading. This loading is only relevant in the "small"
configuration.
* src/node_i18n.cc : new source file for the above Initialize..
function, to setup ICU as needed.
* tools/icu : new directory with some tools needed for this build.
* tools/icu/icu-generic.gyp : new .gyp file that builds ICU in some new
ways, both on unix/mac and windows.
* tools/icu/icu-system.gyp : new .gyp file to build node against a
pkg-config detected ICU.
* tools/icu/icu_small.json : new config file for the "English-only" small
build.
* tools/icu/icutrim.py : new tool for trimming down ICU data. Reads the
above .json file.
* tools/icu/iculslocs.cc : new tool for repairing ICU data manifests
after trim operation.
* tools/icu/no-op.cc : dummy file to force .gyp into using a C++ linker.
* vcbuild.bat : added small-icu and full-icu options, to call into
configure.
* Fixed toolset dependencies, see
https://github.com/joyent/node/pull/7719#issuecomment-54641687
Note that because of a bug in gyp {CC,CXX}_host must also be set.
Otherwise gcc/g++ will be used by default for part of the build.
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Reviewed-by: Fedor Indutny <fedor@indutny.com>
2014-09-05 07:03:24 +02:00
|
|
|
deps/icu
|
build: i18n: add icu config options
Make "--with-intl=none" the default and add "intl-none" option to
vcbuild.bat.
If icu data is missing print a warning unless either --download=all or
--download=icu is set. If set then automatically download, verify (MD5)
and unpack the ICU data if not already available.
There's a "list" of URLs being used, but right now only the first is
picked up. The logic works something like this:
* If there is no directory deps/icu,
* If no zip file (currently icu4c-54_1-src.zip),
* Download zip file (icu-project.org -> sf.net)
* Verify the MD5 sum of the zipfile
* If bad, print error and exit
* Unpack the zipfile into deps/icu
* If deps/icu now exists, use it, else fail with help text
Add the configuration option "--with-icu-source=..."
Usage:
* --with-icu-source=/path/to/my/other/icu
* --with-icu-source=/path/to/icu54.zip
* --with-icu-source=/path/to/icu54.tgz
* --with-icu-source=http://example.com/icu54.tar.bz2
Add the configuration option "--with-icu-locals=...". Allows choosing
which locales are used in the "small-icu" case.
Example:
configure --with-intl=small-icu --with-icu-locales=tlh,grc,nl
(Also note that as of this writing, neither Klingon nor Ancient Greek
are in upstream CLDR data. Serving suggestion only.)
Don't use hard coded ../../out paths on windows. This was suggested by
@misterdjules as it causes test failures. With this fix, "out" is no
longer created on windows and the following can run properly:
python tools/test.py simple
Reduce space by about 1MB with ICU 54 (over without this patch). Also
trims a few other source files, but only conditional on the exact ICU
version used. This is to future-proof - a file that is unneeded now may
be needed in future ICUs.
Also:
* Update distclean to remove icu related files
* Refactor some code into tools/configure.d/nodedownload.py
* Update docs
* Add test
PR-URL: https://github.com/joyent/node/pull/8719
Fixes: https://github.com/joyent/node/issues/7676#issuecomment-64704230
[trev.norris@gmail.com small change to test's whitespace and logic]
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
2014-11-13 02:13:14 +01:00
|
|
|
deps/icu*.zip
|
|
|
|
deps/icu*.tgz
|
|
|
|
deps/icu-tmp
|
2012-06-11 18:30:44 +02:00
|
|
|
./node_modules
|
2015-03-09 04:19:21 +01:00
|
|
|
android-toolchain/
|
2013-01-17 07:29:48 +01:00
|
|
|
|
|
|
|
# generated by gyp on Windows
|
|
|
|
deps/openssl/openssl.props
|
|
|
|
deps/openssl/openssl.targets
|
|
|
|
deps/openssl/openssl.xml
|
2013-02-01 19:17:22 +01:00
|
|
|
|
2013-12-03 05:59:34 +01:00
|
|
|
# generated by gyp on android
|
|
|
|
/*.target.mk
|
|
|
|
/*.host.mk
|
|
|
|
deps/openssl/openssl.target.mk
|
|
|
|
deps/zlib/zlib.target.mk
|
|
|
|
|
2018-09-29 21:31:04 +02:00
|
|
|
!deps/npm/node_modules
|
2015-09-22 16:24:16 +02:00
|
|
|
# not needed and causes issues for distro packagers
|
|
|
|
deps/npm/node_modules/.bin/
|
|
|
|
|
2013-02-01 19:17:22 +01:00
|
|
|
# build/release artifacts
|
2015-01-13 02:51:34 +01:00
|
|
|
/*.tar.*
|
2017-09-04 12:07:56 +02:00
|
|
|
/*.pkg
|
2013-08-22 01:59:15 +02:00
|
|
|
/SHASUMS*.txt*
|
2013-02-13 21:19:08 +01:00
|
|
|
|
2018-07-07 03:46:38 +02:00
|
|
|
# api docs artifacts
|
|
|
|
tools/doc/node_modules
|
|
|
|
|
2018-08-24 11:30:45 +02:00
|
|
|
# clang-format artifacts
|
|
|
|
tools/clang-format/node_modules
|
|
|
|
|
2014-07-23 03:03:10 +02:00
|
|
|
# test artifacts
|
2014-10-04 02:42:37 +02:00
|
|
|
icu_config.gypi
|
2016-10-25 18:26:46 +02:00
|
|
|
*.tap
|
2015-04-29 19:47:04 +02:00
|
|
|
|
|
|
|
# Xcode workspaces and project folders
|
|
|
|
*.xcodeproj
|
|
|
|
*.xcworkspace
|
2017-06-05 16:25:22 +02:00
|
|
|
|
|
|
|
# libuv book and GitHub template
|
|
|
|
deps/uv/.github/
|
|
|
|
deps/uv/docs/code/
|
|
|
|
deps/uv/docs/src/guide/
|
2018-01-05 23:24:10 +01:00
|
|
|
|
|
|
|
# do not override V8's .gitignore
|
|
|
|
!deps/v8/**
|
2018-02-23 10:28:23 +01:00
|
|
|
# ignore VS compiler output unhandled by V8's .gitignore
|
2018-04-25 21:05:39 +02:00
|
|
|
deps/v8/third_party/eu-strip/
|
2018-10-12 19:48:13 +02:00
|
|
|
|
|
|
|
.DS_Store
|