1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-03 15:55:20 -05:00

reference google version of protobuf library

This commit is contained in:
Shelikhoo
2021-06-23 14:34:03 +01:00
parent 881571374d
commit a4e6fe5a94
29 changed files with 740 additions and 1641 deletions

View File

@@ -174,6 +174,10 @@ func main() {
os.Exit(1)
}
if linkPath, err := os.Readlink(protoc); err == nil {
protoc = linkPath
}
installedVersion, err := getInstalledProtocVersion(protoc)
if err != nil {
fmt.Println(err)
@@ -221,6 +225,8 @@ Download it from https://github.com/protocolbuffers/protobuf/releases
for _, files := range protoFilesMap {
for _, relProtoFile := range files {
args := []string{
"-I", fmt.Sprintf("%v/../include", filepath.Dir(protoc)),
"-I", fmt.Sprintf("."),
"--go_out", pwd,
"--go_opt", "paths=source_relative",
"--go-grpc_out", pwd,