Update gobind build scripts

This commit is contained in:
Neil Alexander 2021-01-27 11:26:57 +00:00
parent 0910f2e368
commit cd2360dc0e
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 39 additions and 3 deletions

View file

@ -1,5 +1,22 @@
#!/bin/sh
TARGET=""
while getopts "ai" option
do
case "$option"
in
a) TARGET="android";;
i) TARGET="ios";;
esac
done
if [[ $TARGET = "" ]];
then
echo "No target specified, specify -a or -i"
exit 1
fi
gomobile bind -v \
-target ios \
-target $TARGET \
github.com/matrix-org/dendrite/build/gobind-pinecone

View file

@ -1,6 +1,25 @@
#!/bin/sh
#!/bin/sh
TARGET=""
while getopts "ai" option
do
case "$option"
in
a) TARGET="android";;
i) TARGET="ios";;
esac
done
if [[ $TARGET = "" ]];
then
echo "No target specified, specify -a or -i"
exit 1
fi
gomobile bind -v \
-target $TARGET \
-ldflags "-X github.com/yggdrasil-network/yggdrasil-go/src/version.buildName=dendrite" \
-target ios \
github.com/matrix-org/dendrite/build/gobind-yggdrasil
github.com/matrix-org/dendrite/build/gobind-pinecone