42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
Description: use system-installed node-gyp for building test modules
|
|
Author: Jérémy Lal <kapouer@melix.org>
|
|
Last-Update: 2015-09-09
|
|
Forwarded: not-needed
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -312,7 +312,7 @@
|
|
benchmark/napi/function_call/napi_binding.c \
|
|
benchmark/napi/function_call/binding.cc \
|
|
benchmark/napi/function_call/binding.gyp | all
|
|
- $(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
|
|
+ node-gyp rebuild \
|
|
--python="$(PYTHON)" \
|
|
--directory="$(shell pwd)/benchmark/napi/function_call" \
|
|
--nodedir="$(shell pwd)"
|
|
@@ -321,7 +321,7 @@
|
|
benchmark/napi/function_args/napi_binding.c \
|
|
benchmark/napi/function_args/binding.cc \
|
|
benchmark/napi/function_args/binding.gyp | all
|
|
- $(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
|
|
+ node-gyp rebuild \
|
|
--python="$(PYTHON)" \
|
|
--directory="$(shell pwd)/benchmark/napi/function_args" \
|
|
--nodedir="$(shell pwd)"
|
|
@@ -352,14 +352,14 @@
|
|
$(filter-out test/addons/??_*/*.h, $(wildcard test/addons/*/*.h))
|
|
|
|
ADDONS_PREREQS := config.gypi \
|
|
- deps/npm/node_modules/node-gyp/package.json tools/build-addons.js \
|
|
+ tools/build-addons.js \
|
|
deps/uv/include/*.h deps/v8/include/*.h \
|
|
src/node.h src/node_buffer.h src/node_object_wrap.h src/node_version.h
|
|
|
|
define run_build_addons
|
|
env npm_config_loglevel=$(LOGLEVEL) npm_config_nodedir="$$PWD" \
|
|
npm_config_python="$(PYTHON)" $(NODE) "$$PWD/tools/build-addons" \
|
|
- "$$PWD/deps/npm/node_modules/node-gyp/bin/node-gyp.js" \
|
|
+ "/usr/bin/node-gyp" \
|
|
$1
|
|
touch $2
|
|
endef
|