diff options
author | Dane Springmeyer <dane@mapbox.com> | 2014-11-01 22:41:40 -0400 |
---|---|---|
committer | Dane Springmeyer <dane@mapbox.com> | 2014-11-01 22:41:40 -0400 |
commit | d7b0a34bddd9914253bcc496f9d62106743a682a (patch) | |
tree | e1d24e86caa07324e6f245e69f32de91101b8177 /Makefile | |
parent | 551ff954a5e30c89c27f59a9848ba0a9be871adc (diff) | |
download | qtlocation-mapboxgl-d7b0a34bddd9914253bcc496f9d62106743a682a.tar.gz |
mason-based android port
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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 |