Skip to content

Commit

Permalink
Switch to go mod
Browse files Browse the repository at this point in the history
- Clash use latest dev branch to include UDP fixes
- Add instructions on how to build this project

Signed-off-by: Syrone Wong <[email protected]>
  • Loading branch information
wongsyrone committed Feb 21, 2020
1 parent bf91372 commit e7499cd
Show file tree
Hide file tree
Showing 6 changed files with 184 additions and 309 deletions.
279 changes: 0 additions & 279 deletions Gopkg.lock

This file was deleted.

27 changes: 0 additions & 27 deletions Gopkg.toml

This file was deleted.

9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ SOURCES= \
github.com/trojan-gfw/igniter-go-libs/freeport \
github.com/trojan-gfw/igniter-go-libs/util

# pass a single dollar sign to shell
CURRENT_GOPATH="$(shell echo $$GOPATH)"

all: ios android

ios: clean
Expand All @@ -14,7 +17,11 @@ ios: clean

android: clean
mkdir -p $(BUILDDIR)
gomobile bind -o $(BUILDDIR)/golibs.aar -a -v -ldflags '-s -w' -target=android $(SOURCES)
env GO111MODULE="on" gomobile bind -o $(BUILDDIR)/golibs.aar -a -v -x -ldflags '-s -w' -target=android -gcflags=-trimpath="$(CURRENT_GOPATH)" $(SOURCES)

clean:
gomobile clean
rm -rf $(BUILDDIR)

cleanmodcache:
go clean -modcache
Loading

0 comments on commit e7499cd

Please sign in to comment.