Change build script for yggdrasil native module

This commit is contained in:
ChronosX88 2022-01-15 19:22:35 +03:00
parent 31f1a1943f
commit 992e8058d9
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A
3 changed files with 10 additions and 9 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "yggdrasil/yggdrasil-extras"]
path = yggdrasil/yggdrasil-extras
url = https://github.com/yggdrasil-network/yggdrasil-extras

View File

@ -1,10 +1,7 @@
GOPATH=$(shell go env GOPATH)
export GO111MODULE=off
all:
-go get -u github.com/yggdrasil-network/yggdrasil-go;
-cd $(GOPATH)/src/github.com/yggdrasil-network/yggdrasil-go; \
go get -v -d ./...; \
go get -u github.com/yggdrasil-network/yggdrasil-extras; \
ANDROID=true ./build;
mv -f $(GOPATH)/src/github.com/yggdrasil-network/yggdrasil-go/yggdrasil.aar yggdrasil.aar;
mv -f $(GOPATH)/src/github.com/yggdrasil-network/yggdrasil-go/yggdrasil-sources.jar yggdrasil-sources.jar;
cd yggdrasil-extras; \
gomobile bind -v -target android -tags mobile -o yggdrasil.aar \
github.com/yggdrasil-network/yggdrasil-extras/src/mobile \
github.com/yggdrasil-network/yggdrasil-go/src/config
mv -f yggdrasil-extras/yggdrasil.aar yggdrasil.aar;
mv -f yggdrasil-extras/yggdrasil-sources.jar yggdrasil-sources.jar;

@ -0,0 +1 @@
Subproject commit 21d029d6a42d64ec169dfa5d8db039ada07226da