mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2025-01-22 16:06:30 +00:00
Change build script for yggdrasil native module
This commit is contained in:
parent
31f1a1943f
commit
992e8058d9
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "yggdrasil/yggdrasil-extras"]
|
||||||
|
path = yggdrasil/yggdrasil-extras
|
||||||
|
url = https://github.com/yggdrasil-network/yggdrasil-extras
|
@ -1,10 +1,7 @@
|
|||||||
GOPATH=$(shell go env GOPATH)
|
|
||||||
export GO111MODULE=off
|
|
||||||
all:
|
all:
|
||||||
-go get -u github.com/yggdrasil-network/yggdrasil-go;
|
cd yggdrasil-extras; \
|
||||||
-cd $(GOPATH)/src/github.com/yggdrasil-network/yggdrasil-go; \
|
gomobile bind -v -target android -tags mobile -o yggdrasil.aar \
|
||||||
go get -v -d ./...; \
|
github.com/yggdrasil-network/yggdrasil-extras/src/mobile \
|
||||||
go get -u github.com/yggdrasil-network/yggdrasil-extras; \
|
github.com/yggdrasil-network/yggdrasil-go/src/config
|
||||||
ANDROID=true ./build;
|
mv -f yggdrasil-extras/yggdrasil.aar yggdrasil.aar;
|
||||||
mv -f $(GOPATH)/src/github.com/yggdrasil-network/yggdrasil-go/yggdrasil.aar yggdrasil.aar;
|
mv -f yggdrasil-extras/yggdrasil-sources.jar yggdrasil-sources.jar;
|
||||||
mv -f $(GOPATH)/src/github.com/yggdrasil-network/yggdrasil-go/yggdrasil-sources.jar yggdrasil-sources.jar;
|
|
||||||
|
1
yggdrasil/yggdrasil-extras
Submodule
1
yggdrasil/yggdrasil-extras
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 21d029d6a42d64ec169dfa5d8db039ada07226da
|
Loading…
x
Reference in New Issue
Block a user