diff options
author | Mike Morris <mikemorris@users.noreply.github.com> | 2016-06-20 17:18:33 -0400 |
---|---|---|
committer | Mike Morris <mikemorris@users.noreply.github.com> | 2016-06-24 14:39:06 -0400 |
commit | bc24da11b27b6e180ab1716e57caa751eb4f5f00 (patch) | |
tree | 57d6f294e74ddebf48b9f71300a19f56395eff53 /Makefile | |
parent | 021d4199cb9ee754e9f0f5bc42f7f75285afd405 (diff) | |
download | qtlocation-mapboxgl-bc24da11b27b6e180ab1716e57caa751eb4f5f00.tar.gz |
[node] add BUILDTYPE=Debug support to make node
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -199,11 +199,15 @@ apackage: NODE_PRE_GYP = $(shell npm bin)/node-pre-gyp NODE_OUTPUT_PATH = build/node-$(BUILD_PLATFORM)-$(BUILD_PLATFORM_VERSION) +ifeq ($(BUILDTYPE), Debug) + NODE_DEBUG = "--debug" +endif + $(NODE_OUTPUT_PATH)/config.gypi: platform/$(BUILD_PLATFORM)/scripts/configure.sh $(CONFIG_DEPENDENCIES) ./configure $< $@ $(BUILD_PLATFORM) $(BUILD_PLATFORM_VERSION) node: $(NODE_OUTPUT_PATH)/config.gypi node_modules $(GYP_DEPENDENCIES) - $(NODE_PRE_GYP) configure --clang -- -I$< \ + $(NODE_PRE_GYP) configure --clang $(NODE_DEBUG) -- -I$< \ -Dcoverage= -Dlibuv_cflags= -Dlibuv_ldflags= -Dlibuv_static_libs= $(NODE_PRE_GYP) build --clang |