From 60eda76d073ad9c0eaef63c6eb31d47e5ca86ff7 Mon Sep 17 00:00:00 2001 From: atanarjuat Date: Sun, 29 May 2022 22:18:12 +0200 Subject: attempt at android bindings --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') 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/ -- cgit v1.2.3