mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13:09 -06:00
Update gobind build scripts
This commit is contained in:
parent
0910f2e368
commit
cd2360dc0e
|
|
@ -1,5 +1,22 @@
|
||||||
#!/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 \
|
gomobile bind -v \
|
||||||
-target ios \
|
-target $TARGET \
|
||||||
github.com/matrix-org/dendrite/build/gobind-pinecone
|
github.com/matrix-org/dendrite/build/gobind-pinecone
|
||||||
|
|
@ -1,6 +1,25 @@
|
||||||
#!/bin/sh
|
#!/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 \
|
gomobile bind -v \
|
||||||
|
-target $TARGET \
|
||||||
-ldflags "-X github.com/yggdrasil-network/yggdrasil-go/src/version.buildName=dendrite" \
|
-ldflags "-X github.com/yggdrasil-network/yggdrasil-go/src/version.buildName=dendrite" \
|
||||||
-target ios \
|
github.com/matrix-org/dendrite/build/gobind-pinecone
|
||||||
github.com/matrix-org/dendrite/build/gobind-yggdrasil
|
|
||||||
Loading…
Reference in a new issue