Refactor platform command api

This commit is contained in:
世界 2023-03-01 10:37:47 +08:00
parent 0ca344df5f
commit 5af8d001ae
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
11 changed files with 342 additions and 204 deletions

View file

@ -84,11 +84,12 @@ func buildiOS() {
"-libname=box",
}
if !debugEnabled {
args = append(args,
"-trimpath", "-ldflags=-s -w -buildid=", "-tags", "with_gvisor,with_clash_api",
args = append(
args, "-trimpath", "-ldflags=-s -w -buildid=",
"-tags", "with_gvisor,with_quic,with_wireguard,with_utls,with_clash_api",
)
} else {
args = append(args, "-tags", "with_gvisor,with_clash_api,debug")
args = append(args, "-tags", "with_gvisor,with_quic,with_wireguard,with_utls,with_clash_api,debug")
}
args = append(args, "./experimental/libbox")