forked from SagerNet/sing-box
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
122 changed files
with
3,178 additions
and
2,846 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
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
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
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
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
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
NAME = sing-box | ||
COMMIT = $(shell git rev-parse --short HEAD) | ||
TAGS_GO118 = with_gvisor,with_dhcp,with_wireguard,with_reality_server,with_clash_api,with_shadowsocksr | ||
TAGS_GO120 = with_quic,with_utls | ||
TAGS_GO120 = with_gvisor,with_dhcp,with_wireguard,with_reality_server,with_clash_api,with_quic,with_utls,with_shadowsocksr | ||
TAGS_GO121 = with_ech | ||
TAGS ?= $(TAGS_GO118),$(TAGS_GO120),$(TAGS_GO121) | ||
TAGS_TEST ?= with_gvisor,with_quic,with_wireguard,with_grpc,with_ech,with_utls,with_reality_server | ||
|
@@ -20,13 +19,9 @@ PREFIX ?= $(shell go env GOPATH) | |
build: | ||
go build $(MAIN_PARAMS) $(MAIN) | ||
|
||
ci_build_go118: | ||
go build $(PARAMS) $(MAIN) | ||
go build $(PARAMS) -tags "$(TAGS_GO118)" $(MAIN) | ||
|
||
ci_build_go120: | ||
go build $(PARAMS) $(MAIN) | ||
go build $(PARAMS) -tags "$(TAGS_GO118),$(TAGS_GO120)" $(MAIN) | ||
go build $(PARAMS) -tags "$(TAGS_GO120)" $(MAIN) | ||
|
||
ci_build: | ||
go build $(PARAMS) $(MAIN) | ||
|
@@ -197,13 +192,15 @@ lib_install: | |
go install -v github.com/sagernet/gomobile/cmd/[email protected] | ||
|
||
docs: | ||
mkdocs serve | ||
venv/bin/mkdocs serve | ||
|
||
publish_docs: | ||
mkdocs gh-deploy -m "Update" --force --ignore-version --no-history | ||
venv/bin/mkdocs gh-deploy -m "Update" --force --ignore-version --no-history | ||
|
||
docs_install: | ||
pip install --force-reinstall mkdocs-material=="9.*" mkdocs-static-i18n=="1.2.*" | ||
python -m venv venv | ||
source ./venv/bin/activate && pip install --force-reinstall mkdocs-material=="9.*" mkdocs-static-i18n=="1.2.*" | ||
|
||
clean: | ||
rm -rf bin dist sing-box | ||
rm -f $(shell go env GOPATH)/sing-box | ||
|
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
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
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
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
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
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
Oops, something went wrong.