-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
332d5b2
commit e3dcae8
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,16 +32,15 @@ protos: | |
|
||
|
||
lib_install: | ||
go install -v github.com/sagernet/gomobile/cmd/[email protected].1 | ||
go install -v github.com/sagernet/gomobile/cmd/[email protected].1 | ||
go install -v github.com/sagernet/gomobile/cmd/[email protected].4 | ||
go install -v github.com/sagernet/gomobile/cmd/[email protected].4 | ||
npm install | ||
|
||
headers: | ||
go build -buildmode=c-archive -o $(BINDIR)/$(LIBNAME).h ./custom | ||
|
||
android: lib_install | ||
gomobile bind -v -androidapi=21 -javapkg=io.nekohasekai -libname=box -tags=$(TAGS) -trimpath -target=android -o $(BINDIR)/$(LIBNAME).aar github.com/sagernet/sing-box/experimental/libbox | ||
#./mobile | ||
gomobile bind -v -androidapi=21 -javapkg=com.hiddify.core -libname=box -tags=$(TAGS) -trimpath -target=android -o $(BINDIR)/$(LIBNAME).aar github.com/sagernet/sing-box/experimental/libbox ./mobile | ||
|
||
ios-full: lib_install | ||
gomobile bind -v -target ios,iossimulator,tvos,tvossimulator,macos -libname=box -tags=$(TAGS),$(IOS_ADD_TAGS) -trimpath -ldflags="-w -s" -o $(BINDIR)/$(PRODUCT_NAME).xcframework github.com/sagernet/sing-box/experimental/libbox ./mobile | ||
|