From 0e79d56b0939de9f4722350a34ab76554a23431c Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Tue, 1 Sep 2015 15:51:29 -0400 Subject: [PATCH] move package.json and binding.gyp to root, drop tiles.tilejson --- .gitignore | 3 +-- platform/node/binding.gyp => binding.gyp | 28 +++++++++++----------- platform/node/package.json => package.json | 6 ++--- platform/node/test/fixtures/style.json | 6 +++-- platform/node/test/fixtures/tiles.tilejson | 13 ---------- platform/node/test/js/consecutive.test.js | 2 +- platform/node/test/js/gzip.test.js | 9 ++++--- platform/node/test/js/map.test.js | 14 ++++------- platform/node/test/render.test.js | 2 +- scripts/main.mk | 16 ++++++------- 10 files changed, 40 insertions(+), 59 deletions(-) rename platform/node/binding.gyp => binding.gyp (74%) rename platform/node/package.json => package.json (84%) delete mode 100644 platform/node/test/fixtures/tiles.tilejson diff --git a/.gitignore b/.gitignore index 7613490aa..4ee833bcf 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ /mason_packages /config/*.gypi /build +/lib /macosx/build /linux/build /ios/build @@ -28,8 +29,6 @@ /src/shader/shaders_gl.cpp /src/shader/shaders_gles2.cpp /bin/style.bin.js -/platform/*.mk -/platform/*.Makefile *~ /ios/benchmark/assets/tiles/mapbox.mapbox-streets-v6/ diff --git a/platform/node/binding.gyp b/binding.gyp similarity index 74% rename from platform/node/binding.gyp rename to binding.gyp index 88ad5ed59..374ae1afd 100644 --- a/platform/node/binding.gyp +++ b/binding.gyp @@ -1,28 +1,28 @@ { 'includes': [ - '../../gyp/common.gypi', + 'gyp/common.gypi', ], 'targets': [ { 'target_name': '<(module_name)', 'dependencies': [ - '../../mbgl.gyp:core', - '../../mbgl.gyp:platform-<(platform_lib)', - '../../mbgl.gyp:headless-<(headless_lib)', + 'mbgl.gyp:core', + 'mbgl.gyp:platform-<(platform_lib)', + 'mbgl.gyp:headless-<(headless_lib)', ], 'include_dirs': [ " /dev/null && npm bin)/node-pre-gyp +NODE_PRE_GYP = $(shell npm bin)/node-pre-gyp node/configure: - cd platform/node && $(NODE_PRE_GYP) configure --clang -- \ - $(GYP_FLAGS) -I../../config/$(HOST_SLUG).gypi \ - -Dlibuv_ldflags= -Dlibuv_static_libs= + $(QUIET)$(ENV) $(NODE_PRE_GYP) configure --clang -- \ + $(GYP_FLAGS) -Dlibuv_ldflags= -Dlibuv_static_libs= Makefile/node: Makefile/__project__ node/configure @printf "$(TEXT_BOLD)$(COLOR_GREEN)* Building target node...$(FORMAT_END)\n" - cd platform/node && $(NODE_PRE_GYP) build --clang -- \ - -j$(JOBS) + $(QUIET)$(ENV) $(NODE_PRE_GYP) build --clang -- \ + -j$(JOBS) Makefile/%: Makefile/__project__ @printf "$(TEXT_BOLD)$(COLOR_GREEN)* Building target $*...$(FORMAT_END)\n"