From f27623ff611645cd7d927f0de81158a93e960542 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 14 Jul 2020 13:34:32 +0100 Subject: [PATCH] build: introduce include_dir 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. PR-URL: https://github.com/nodejs/node-addon-api/pull/766 Reviewed-By: Michael Dawson --- 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': ["