commit e7290688e611d786b94e0a7a5fad103f30fcef2a
Author: Tom Hughes <tom@compton.nu>
Date: Mon Nov 23 00:12:59 2015 +0000
Patch out attempts to clone various dependencies
diff --git a/Makefile b/Makefile
index 669d90f..db5ca33 100755
--- a/Makefile
+++ b/Makefile
@@ -1,44 +1,27 @@
-GYP_REVISION=3464008
-
default: release
-mason_packages/.link/bin:
- SKIP_MAPNIK_INSTALL=YES ./install_mason.sh
-
-mason_packages/.link/bin/mapnik-config:
- ./install_mason.sh
-
pre_build_check:
@echo "Looking for mapnik-config on your PATH..."
mapnik-config -v
-./deps/gyp:
- git clone https://chromium.googlesource.com/external/gyp.git ./deps/gyp && cd ./deps/gyp && git checkout $(GYP_REVISION)
-
-build/Makefile: pre_build_check ./deps/gyp gyp/build.gyp test/*
- deps/gyp/gyp gyp/build.gyp --depth=. -DMAPNIK_PLUGINDIR=\"$(shell mapnik-config --input-plugins)\" -Goutput_dir=. --generator-output=./build -f make
+build/Makefile: pre_build_check gyp/build.gyp test/*
+ gyp gyp/build.gyp --depth=. -DMAPNIK_PLUGINDIR=\"$(shell mapnik-config --input-plugins)\" -Goutput_dir=. --generator-output=./build -f make
$(MAKE) -C build/ V=$(V)
-release: mason_packages/.link/bin/mapnik-config Makefile
- CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 $(CXXFLAGS)" $(MAKE) release_base
+release: Makefile
+ $(MAKE) release_base
-debug: mason_packages/.link/bin/mapnik-config Makefile
- CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 $(CXXFLAGS)" $(MAKE) debug_base
+debug: Makefile
+ $(MAKE) debug_base
# note: we set PATH to the mason bins to pick up protoc
# and CXXFLAGS/LDFLAGS to find protobuf headers/libs
# This will only find mason installed mapnik-config if run via the `release` or `debug` targets
-release_base: mason_packages/.link/bin Makefile
- CXXFLAGS="-isystem `pwd`/mason_packages/.link/include $(CXXFLAGS)" \
- LDFLAGS="-L`pwd`/mason_packages/.link/lib $(LDFLAGS)" \
- PATH="`pwd`/mason_packages/.link/bin/:${PATH}" \
- BUILDTYPE=Release $(MAKE) build/Makefile
+release_base: Makefile
+ BUILDTYPE=Release $(MAKE) build/Makefile
-debug_base: mason_packages/.link/bin Makefile
- CXXFLAGS="-isystem `pwd`/mason_packages/.link/include $(CXXFLAGS)" \
- LDFLAGS="-L`pwd`/mason_packages/.link/lib $(LDFLAGS)" \
- PATH="`pwd`/mason_packages/.link/bin/:${PATH}" \
- BUILDTYPE=Debug $(MAKE) build/Makefile
+debug_base: Makefile
+ BUILDTYPE=Debug $(MAKE) build/Makefile
test/geometry-test-data/README.md:
git submodule update --init
diff --git a/gyp/build.gyp b/gyp/build.gyp
index 7ab392a..4bf7aae 100644
--- a/gyp/build.gyp
+++ b/gyp/build.gyp
@@ -55,7 +55,8 @@
},
'direct_dependent_settings': {
'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)/'
+ '<(SHARED_INTERMEDIATE_DIR)/',
+ '/usr/include/protozero'
],
'libraries':[
'-lprotobuf-lite'
@@ -84,6 +85,9 @@
'cflags_cc' : [
'<!@(mapnik-config --cflags)'
],
+ 'include_dirs': [
+ '/usr/include/protozero'
+ ],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS':[
'<!@(mapnik-config --cflags)'
@@ -91,7 +95,8 @@
},
'direct_dependent_settings': {
'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)/'
+ '<(SHARED_INTERMEDIATE_DIR)/',
+ '/usr/include/protozero'
],
'defines' : [
"<@(common_defines)"
@@ -128,6 +133,7 @@
],
"include_dirs": [
"../src",
+ '/usr/include/protozero',
'../test',
'../test/utils'
]
@@ -145,6 +151,7 @@
],
"include_dirs": [
"../src",
+ '/usr/include/protozero'
]
},
{
@@ -160,6 +167,7 @@
],
"include_dirs": [
"../src",
+ '/usr/include/protozero'
]
},
{