summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMike Morris <mikemorris@users.noreply.github.com>2016-06-20 17:18:33 -0400
committerMike Morris <mikemorris@users.noreply.github.com>2016-06-24 14:39:06 -0400
commitbc24da11b27b6e180ab1716e57caa751eb4f5f00 (patch)
tree57d6f294e74ddebf48b9f71300a19f56395eff53 /Makefile
parent021d4199cb9ee754e9f0f5bc42f7f75285afd405 (diff)
downloadqtlocation-mapboxgl-bc24da11b27b6e180ab1716e57caa751eb4f5f00.tar.gz
[node] add BUILDTYPE=Debug support to make node
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b3dd7c7d90..f45925f0ce 100644
--- a/Makefile
+++ b/Makefile
@@ -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