aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/compile_httpserver.sh
diff options
context:
space:
mode:
authorAngelo Mantellini <angelo.mantellini@irt-systemx.fr>2018-03-21 14:16:02 +0100
committerAngelo Mantellini <angelo.mantellini@irt-systemx.fr>2018-03-21 20:46:00 +0100
commit5d308865d0783d0cd70f7453c77980835ac5648e (patch)
treeaea91e7109a81669e5b19443296cf1dec6876532 /scripts/compile_httpserver.sh
parente90a1ec7c82519127b63931a96535ad4bc31342d (diff)
update android-sdk. Now it is possible to compile with clangandroid-sdk/master
Change-Id: I156aa48dd90467a2a7540eec11839c0111b13bd2 Signed-off-by: Angelo Mantellini <angelo.mantellini@irt-systemx.fr>
Diffstat (limited to 'scripts/compile_httpserver.sh')
-rwxr-xr-xscripts/compile_httpserver.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/compile_httpserver.sh b/scripts/compile_httpserver.sh
new file mode 100755
index 00000000..ecf5f2f6
--- /dev/null
+++ b/scripts/compile_httpserver.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -e
+cd HttpServer
+if [ ! -f local.properties ]; then
+ echo sdk.dir=${SDK} > local.properties
+ echo ndk.dir=${NDK} >> local.properties
+fi
+
+if [ "$1" = "DEBUG" ]; then
+ ./gradlew assembleDebug
+else
+ ./gradlew assembleRelease
+fi
+
+echo "Apks are inside HttpServer/app/build/outputs/apk"
+cd .. \ No newline at end of file