Add libbox wrapper

This commit is contained in:
世界 2022-10-25 12:55:00 +08:00
parent 86e55c5c1c
commit 222196b182
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
30 changed files with 829 additions and 100 deletions

View file

@ -71,6 +71,14 @@ test_stdio:
go mod tidy && \
go test -v -tags "$(TAGS_TEST),force_stdio" .
lib:
go run ./cmd/internal/build_libbox
lib_install:
go get -v -d
go install -v github.com/sagernet/gomobile/cmd/gomobile@v0.0.0-20221130124640-349ebaa752ca
go install -v github.com/sagernet/gomobile/cmd/gobind@v0.0.0-20221130124640-349ebaa752ca
clean:
rm -rf bin dist sing-box
rm -f $(shell go env GOPATH)/sing-box