build fix

This commit is contained in:
vadym 2021-09-09 10:42:16 +03:00
parent c32e5517f1
commit bfe42d8899

4
build
View file

@ -34,13 +34,13 @@ if [ $IOS ]; then
echo "Building framework for iOS" echo "Building framework for iOS"
go get golang.org/x/mobile/bind go get golang.org/x/mobile/bind
gomobile bind -target ios -tags mobile -o Mesh.framework -ldflags="$LDFLAGS $STRIP" -gcflags="$GCFLAGS" \ gomobile bind -target ios -tags mobile -o Mesh.framework -ldflags="$LDFLAGS $STRIP" -gcflags="$GCFLAGS" \
github.com/RiV-chain/mesh-extras/src/mobile \ github.com/RiV-chain/RiV-mesh-extras/src/mobile \
github.com/RiV-chain/RiV-mesh/src/config github.com/RiV-chain/RiV-mesh/src/config
elif [ $ANDROID ]; then elif [ $ANDROID ]; then
echo "Building aar for Android" echo "Building aar for Android"
go get golang.org/x/mobile/bind go get golang.org/x/mobile/bind
gomobile bind -target android -tags mobile -o mesh.aar -ldflags="$LDFLAGS $STRIP" -gcflags="$GCFLAGS" \ gomobile bind -target android -tags mobile -o mesh.aar -ldflags="$LDFLAGS $STRIP" -gcflags="$GCFLAGS" \
github.com/RiV-chain/mesh-extras/src/mobile \ github.com/RiV-chain/RiV-mesh-extras/src/mobile \
github.com/RiV-chain/RiV-mesh/src/config github.com/RiV-chain/RiV-mesh/src/config
else else
for CMD in mesh meshctl ; do for CMD in mesh meshctl ; do