aboutsummaryrefslogtreecommitdiff
path: root/build/gobind-pinecone/build.sh
blob: 51844506c95c4189085dee069ac2ae5603f03e26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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="" -o ~/DendriteBindings/Gobind.xcframework . ;;
    *) echo "No target specified, specify -a or -i"; exit 1 ;;
    esac
done