From cef04fcfa7502b8af80100e06bbc560a70eca3ef Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Fri, 21 Aug 2015 16:34:21 -0400 Subject: [PATCH] PLATFORM=node make node --- Makefile | 4 +++ .../binding.gyp => gyp/platform-node.gypi | 26 +++++++++---------- mbgl.gyp | 1 + 3 files changed, 17 insertions(+), 14 deletions(-) rename platform/node/binding.gyp => gyp/platform-node.gypi (75%) diff --git a/Makefile b/Makefile index 358b3c05c..ab27176d5 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,10 @@ android-all: android-lib-x86 android-lib-x86-64 android-all: android-lib-mips android-lib-mips-64 cd android/java && ./gradlew --parallel-threads=$(JOBS) assemble$(BUILDTYPE) +.PHONY: node +# Builds the Node library +node: ; $(RUN) HTTP=none ASSET=none CACHE=none Makefile/node + .PHONY: test test: ; $(RUN) Makefile/test test-%: ; $(RUN) test-$* diff --git a/platform/node/binding.gyp b/gyp/platform-node.gypi similarity index 75% rename from platform/node/binding.gyp rename to gyp/platform-node.gypi index a5fb58339..9019135e2 100644 --- a/platform/node/binding.gyp +++ b/gyp/platform-node.gypi @@ -1,25 +1,23 @@ { 'targets': [ - { 'target_name': '<(module_name)', + { 'target_name': 'platform-node', 'dependencies': [ - './<(mbgl)/mbgl.gyp:core', - './<(mbgl)/mbgl.gyp:platform-<(platform_lib)', - './<(mbgl)/mbgl.gyp:headless-<(headless_lib)', + 'version', ], 'include_dirs': [ "