summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoratanarjuat <atanarjuat@example.com>2022-05-29 22:18:12 +0200
committeratanarjuat <atanarjuat@example.com>2022-05-29 22:18:12 +0200
commit60eda76d073ad9c0eaef63c6eb31d47e5ca86ff7 (patch)
treee757b95a836e6c1e788fa030a165cc8bf8c687f6 /Makefile
parent6f2d28e19a41e9aa777071f63eebec89ca80ade4 (diff)
attempt at android bindings
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6690a0e..aa104f2 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ certs:
build-client:
go get ./...
- go build -o obfsvpn-client ./client
+ go build -o obfsvpn-client ./cmd/client/
run-client:
./obfsvpn-client -c ${OBFS4_CERT}
@@ -32,3 +32,10 @@ go-vet:
go-sec:
gosec ./...
+
+GOMOBILE = $(shell go env GOPATH)/bin/gomobile
+
+build-android:
+ go get -u golang.org/x/mobile/cmd/gomobile
+ $(GOMOBILE) init
+ $(GOMOBILE) bind -x -target android -o mobile/android/obfsvpn.aar ./client/