@@ -171,8 +171,7 @@ with-code-cache test-code-cache:
171
171
$(warning '$@ ' target is a noop)
172
172
173
173
out/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 \
176
175
tools/v8_gypfiles/toolchain.gypi \
177
176
tools/v8_gypfiles/features.gypi \
178
177
tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp
@@ -376,11 +375,11 @@ ifeq ($(OSTYPE),os400)
376
375
DOCBUILDSTAMP_PREREQS := $(DOCBUILDSTAMP_PREREQS ) out/$(BUILDTYPE ) /node.exp
377
376
endif
378
377
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 ")
381
380
test/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 )" ; \
384
383
else \
385
384
$(RM ) -r test/addons/?? _* /; \
386
385
[ -x $( NODE) ] && $(NODE ) $< || node $< ; \
@@ -536,7 +535,7 @@ NATIVE_SUITES ?= addons js-native-api node-api
536
535
# CI_* variables should be kept synchronized with the ones in vcbuild.bat
537
536
CI_NATIVE_SUITES ?= $(NATIVE_SUITES ) benchmark
538
537
CI_JS_SUITES ?= $(JS_SUITES ) pummel
539
- ifeq ($(node_use_openssl ) , false)
538
+ ifeq ($(node_use_openssl_and_icu ) , false)
540
539
CI_DOC := doctool
541
540
else
542
541
CI_DOC =
@@ -633,8 +632,8 @@ test-hash-seed: all ## Verifu that the hash seed used by V8 for hashing is rando
633
632
634
633
.PHONY : test-doc
635
634
test-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 )" ; \
638
637
else \
639
638
$(PYTHON ) tools/test.py $(PARALLEL_ARGS ) doctool; \
640
639
fi
@@ -750,17 +749,17 @@ apidocs_json = $(addprefix out/,$(apidoc_sources:.md=.json))
750
749
apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/* ) ) )
751
750
752
751
tools/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 )" ; \
755
754
else \
756
755
cd tools/doc && $(call available-node,$(run-npm-ci ) ) \
757
756
fi
758
757
759
758
.PHONY : doc-only
760
759
doc-only : tools/doc/node_modules \
761
760
$(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 )" ; \
764
763
else \
765
764
$(MAKE ) out/doc/api/all.html out/doc/api/all.json out/doc/api/stability; \
766
765
fi
@@ -1383,8 +1382,8 @@ lint-js-fix: tools/eslint/node_modules/eslint/bin/eslint.js ## Lint and fix the
1383
1382
# Note that on the CI `lint-js-ci` is run instead.
1384
1383
lint-js-doc : LINT_JS_TARGETS=doc
1385
1384
lint-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 )" ; \
1388
1387
else \
1389
1388
echo " Running JS linter..." ; \
1390
1389
$(call available-node,$(run-lint-js ) ) \
@@ -1414,6 +1413,11 @@ LINT_CPP_EXCLUDE += $(LINT_CPP_ADDON_DOC_FILES)
1414
1413
# These files were copied more or less verbatim from V8.
1415
1414
LINT_CPP_EXCLUDE += src/tracing/trace_event.h src/tracing/trace_event_common.h
1416
1415
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
+
1417
1421
LINT_CPP_FILES = $(filter-out $(LINT_CPP_EXCLUDE ) , $(wildcard \
1418
1422
benchmark/napi/* /* .cc \
1419
1423
src/* .c \
@@ -1438,6 +1442,7 @@ LINT_CPP_FILES = $(filter-out $(LINT_CPP_EXCLUDE), $(wildcard \
1438
1442
tools/code_cache/* .h \
1439
1443
tools/snapshot/* .cc \
1440
1444
tools/snapshot/* .h \
1445
+ $(LINT_CPP_DEPS ) \
1441
1446
) )
1442
1447
1443
1448
FORMAT_CPP_FILES ?=
0 commit comments