aboutsummaryrefslogtreecommitdiff
path: root/build/gobind-pinecone/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/gobind-pinecone/build.sh')
-rw-r--r--build/gobind-pinecone/build.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/gobind-pinecone/build.sh b/build/gobind-pinecone/build.sh
new file mode 100644
index 00000000..6fd05a64
--- /dev/null
+++ b/build/gobind-pinecone/build.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+TARGET=""
+
+while getopts "ai" option
+do
+ case "$option"
+ in
+ a) gomobile bind -v -target android -trimpath -ldflags="-s -w" github.com/matrix-org/dendrite/build/gobind-pinecone ;;
+ i) gomobile bind -v -target ios -trimpath -ldflags="-s -w" github.com/matrix-org/dendrite/build/gobind-pinecone ;;
+ *) echo "No target specified, specify -a or -i"; exit 1 ;;
+ esac
+done \ No newline at end of file