mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2024-11-09 12:01:01 +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:
|
||||
-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;
|
||||
|
1
yggdrasil/yggdrasil-extras
Submodule
1
yggdrasil/yggdrasil-extras
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 21d029d6a42d64ec169dfa5d8db039ada07226da
|
Loading…
Reference in New Issue
Block a user