summaryrefslogtreecommitdiff
path: root/android/scripts
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2014-12-20 17:15:55 +1300
committerLeith Bade <leith@mapbox.com>2014-12-20 17:15:55 +1300
commit3c968672d92615197cf9616b5125057e7a741b91 (patch)
tree7f67ee8bccf67794f15b8c88446c582ca0d25f22 /android/scripts
parentc749d1a5ab97f0abcf7314d2924f2535c6df83aa (diff)
downloadqtlocation-mapboxgl-3c968672d92615197cf9616b5125057e7a741b91.tar.gz
Prepare for android-gl-build
Diffstat (limited to 'android/scripts')
-rw-r--r--android/scripts/common.sh10
-rw-r--r--android/scripts/debug.sh8
-rw-r--r--android/scripts/release.sh8
3 files changed, 26 insertions, 0 deletions
diff --git a/android/scripts/common.sh b/android/scripts/common.sh
new file mode 100644
index 0000000000..a8dffc6155
--- /dev/null
+++ b/android/scripts/common.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+set -e
+set -o pipefail
+
+NAME=$1
+
+export MASON_PLATFORM=android
+
+make android -j$JOBS BUILDTYPE=${BUILDTYPE}
diff --git a/android/scripts/debug.sh b/android/scripts/debug.sh
new file mode 100644
index 0000000000..812ec96008
--- /dev/null
+++ b/android/scripts/debug.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+set -e
+set -o pipefail
+
+export BUILDTYPE=Debug TESTMUNK=no
+
+./common.sh $1
diff --git a/android/scripts/release.sh b/android/scripts/release.sh
new file mode 100644
index 0000000000..e845248a4b
--- /dev/null
+++ b/android/scripts/release.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+set -e
+set -o pipefail
+
+export BUILDTYPE=Release TESTMUNK=yes
+
+./common.sh $1