@@ -171,8 +171,7 @@ with-code-cache test-code-cache:
171171 $(warning '$@ ' target is a noop)
172172
173173out/Makefile : config.gypi common.gypi node.gyp \
174- deps/uv/uv.gyp deps/llhttp/llhttp.gyp deps/zlib/zlib.gyp \
175- deps/simdutf/simdutf.gyp deps/ada/ada.gyp deps/nbytes/nbytes.gyp \
174+ deps/* /* .gyp \
176175 tools/v8_gypfiles/toolchain.gypi \
177176 tools/v8_gypfiles/features.gypi \
178177 tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp
@@ -376,11 +375,11 @@ ifeq ($(OSTYPE),os400)
376375DOCBUILDSTAMP_PREREQS := $(DOCBUILDSTAMP_PREREQS ) out/$(BUILDTYPE ) /node.exp
377376endif
378377
379- node_use_openssl = $(call available-node,"-p" \
380- "process.versions.openssl != undefined")
378+ node_use_openssl_and_icu = $(call available-node,"-p" \
379+ "process.versions.openssl != undefined && process.versions.icu != undefined ")
381380test/addons/.docbuildstamp : $(DOCBUILDSTAMP_PREREQS ) tools/doc/node_modules
382- @if [ " $( shell $( node_use_openssl ) ) " != " true" ]; then \
383- echo " Skipping .docbuildstamp (no crypto)" ; \
381+ @if [ " $( shell $( node_use_openssl_and_icu ) ) " != " true" ]; then \
382+ echo " Skipping .docbuildstamp (no crypto and/or no ICU )" ; \
384383 else \
385384 $(RM ) -r test/addons/?? _* /; \
386385 [ -x $( NODE) ] && $(NODE ) $< || node $< ; \
@@ -536,7 +535,7 @@ NATIVE_SUITES ?= addons js-native-api node-api
536535# CI_* variables should be kept synchronized with the ones in vcbuild.bat
537536CI_NATIVE_SUITES ?= $(NATIVE_SUITES ) benchmark
538537CI_JS_SUITES ?= $(JS_SUITES ) pummel
539- ifeq ($(node_use_openssl ) , false)
538+ ifeq ($(node_use_openssl_and_icu ) , false)
540539 CI_DOC := doctool
541540else
542541 CI_DOC =
@@ -633,8 +632,8 @@ test-hash-seed: all ## Verifu that the hash seed used by V8 for hashing is rando
633632
634633.PHONY : test-doc
635634test-doc : doc-only lint-md # # Build, lint, and verify the docs.
636- @if [ " $( shell $( node_use_openssl ) ) " != " true" ]; then \
637- echo " Skipping test-doc (no crypto)" ; \
635+ @if [ " $( shell $( node_use_openssl_and_icu ) ) " != " true" ]; then \
636+ echo " Skipping test-doc (no crypto and/or no ICU )" ; \
638637 else \
639638 $(PYTHON ) tools/test.py $(PARALLEL_ARGS ) doctool; \
640639 fi
@@ -750,17 +749,17 @@ apidocs_json = $(addprefix out/,$(apidoc_sources:.md=.json))
750749apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/* ) ) )
751750
752751tools/doc/node_modules : tools/doc/package.json
753- @if [ " $( shell $( node_use_openssl ) ) " != " true" ]; then \
754- echo " Skipping tools/doc/node_modules (no crypto)" ; \
752+ @if [ " $( shell $( node_use_openssl_and_icu ) ) " != " true" ]; then \
753+ echo " Skipping tools/doc/node_modules (no crypto and/or no ICU )" ; \
755754 else \
756755 cd tools/doc && $(call available-node,$(run-npm-ci ) ) \
757756 fi
758757
759758.PHONY : doc-only
760759doc-only : tools/doc/node_modules \
761760 $(apidoc_dirs ) $(apiassets ) # # Build the docs with the local or the global Node.js binary.
762- @if [ " $( shell $( node_use_openssl ) ) " != " true" ]; then \
763- echo " Skipping doc-only (no crypto)" ; \
761+ @if [ " $( shell $( node_use_openssl_and_icu ) ) " != " true" ]; then \
762+ echo " Skipping doc-only (no crypto and/or no ICU )" ; \
764763 else \
765764 $(MAKE ) out/doc/api/all.html out/doc/api/all.json out/doc/api/stability; \
766765 fi
@@ -1383,8 +1382,8 @@ lint-js-fix: tools/eslint/node_modules/eslint/bin/eslint.js ## Lint and fix the
13831382# Note that on the CI `lint-js-ci` is run instead.
13841383lint-js-doc : LINT_JS_TARGETS=doc
13851384lint-js lint-js-doc : tools/eslint/node_modules/eslint/bin/eslint.js # # Lint the JavaScript code with eslint./eslint/bin/eslint.js
1386- @if [ " $( shell $( node_use_openssl ) ) " != " true" ]; then \
1387- echo " Skipping $@ (no crypto)" ; \
1385+ @if [ " $( shell $( node_use_openssl_and_icu ) ) " != " true" ]; then \
1386+ echo " Skipping $@ (no crypto and/or no ICU )" ; \
13881387 else \
13891388 echo " Running JS linter..." ; \
13901389 $(call available-node,$(run-lint-js ) ) \
@@ -1414,6 +1413,11 @@ LINT_CPP_EXCLUDE += $(LINT_CPP_ADDON_DOC_FILES)
14141413# These files were copied more or less verbatim from V8.
14151414LINT_CPP_EXCLUDE += src/tracing/trace_event.h src/tracing/trace_event_common.h
14161415
1416+ # deps/ncrypto is included in this list, as it is maintained in
1417+ # this repository, and should be linted. Eventually it should move
1418+ # to its own repo, at which point we should remove it from this list.
1419+ LINT_CPP_DEPS = deps/ncrypto/*.cc deps/ncrypto/*.h
1420+
14171421LINT_CPP_FILES = $(filter-out $(LINT_CPP_EXCLUDE ) , $(wildcard \
14181422 benchmark/napi/* /* .cc \
14191423 src/* .c \
@@ -1438,6 +1442,7 @@ LINT_CPP_FILES = $(filter-out $(LINT_CPP_EXCLUDE), $(wildcard \
14381442 tools/code_cache/* .h \
14391443 tools/snapshot/* .cc \
14401444 tools/snapshot/* .h \
1445+ $(LINT_CPP_DEPS ) \
14411446 ) )
14421447
14431448FORMAT_CPP_FILES ?=
0 commit comments