From e9f8fc74da2e6f3f4849d5907071bcad7ca2ab78 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 14 Jul 2020 13:34:32 +0100 Subject: [PATCH] Introduce `include_dir` for use with gyp in a scalar context Deprecate use of `include` in an gyp array context, which happens to work when paths are absolute, but can fail on Windows when paths are relative and a gyp file contains multiple entries in its `include_dirs` directive. This change corrects documentation and tooling, adds support for relative paths (e.g. those containing whitespace) in a backwards compatible manner and makes the approach holistically consistent with that used by nan. --- common.gypi | 2 +- doc/setup.md | 2 +- index.js | 7 ++++--- tools/conversion.js | 8 ++++---- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/common.gypi b/common.gypi index 088f961ea..9be254f0b 100644 --- a/common.gypi +++ b/common.gypi @@ -15,7 +15,7 @@ } }] ], - 'include_dirs': ["