summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDane Springmeyer <dane@mapbox.com>2014-11-01 22:41:40 -0400
committerDane Springmeyer <dane@mapbox.com>2014-11-01 22:41:40 -0400
commitd7b0a34bddd9914253bcc496f9d62106743a682a (patch)
treee1d24e86caa07324e6f245e69f32de91101b8177 /Makefile
parent551ff954a5e30c89c27f59a9848ba0a9be871adc (diff)
downloadqtlocation-mapboxgl-d7b0a34bddd9914253bcc496f9d62106743a682a.tar.gz
mason-based android port
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 73e4c87999..5ea12ff3d2 100644
--- a/Makefile
+++ b/Makefile
@@ -69,6 +69,21 @@ build/ios/mapbox-gl-cocoa/app/mapboxgl-app.xcodeproj: ios/mapbox-gl-cocoa/app/ma
build/linux/mapboxgl-app.xcodeproj: linux/mapboxgl-app.gyp config.gypi
deps/run_gyp linux/mapboxgl-app.gyp -Iconfig.gypi -Dplatform=linux --depth=. --generator-output=./build -f xcode
+.PHONY: android
+android:
+ export CXX=`MASON_PLATFORM=android ~/.mason/mason env CXX` && \
+ export CC=`MASON_PLATFORM=android ~/.mason/mason env CC` && \
+ export LD=`MASON_PLATFORM=android ~/.mason/mason env LD` && \
+ export AR=`MASON_PLATFORM=android ~/.mason/mason env AR` && \
+ export RANLIB=`MASON_PLATFORM=android ~/.mason/mason env RANLIB` && \
+ export LDFLAGS=`MASON_PLATFORM=android ~/.mason/mason env LDFLAGS` && \
+ export CFLAGS=`MASON_PLATFORM=android ~/.mason/mason env CFLAGS` && \
+ export CPPFLAGS=`MASON_PLATFORM=android ~/.mason/mason env CPPFLAGS` && \
+ export PATH=`MASON_PLATFORM=android ~/.mason/mason env PATH` && \
+ MASON_PLATFORM=android ./configure config-android.gypi && \
+ deps/run_gyp mapboxgl.gyp -Iconfig-android.gypi -Dplatform=android --depth=. --generator-output=./build/android -f make-android && \
+ $(MAKE) -C ./build/android BUILDTYPE=$(BUILDTYPE) V=$(V) mbgl-core
+
##### Test cases ###############################################################
test: build/test/Makefile
@@ -131,7 +146,7 @@ clean: clear_xcode_cache
-find ./deps/gyp -name "*.pyc" -exec rm {} \;
-rm -rf ./build/
-rm -rf ./macosx/build/
- -rm -rf ./config.gypi ./config-ios.gypi
+ -rm -rf ./config.gypi ./config-ios.gypi ./config-android.gypi
distclean: clean
-rm -rf ./mason_packages