github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/proto.go (about) 1 package core 2 3 //go:generate go install -v google.golang.org/protobuf/cmd/protoc-gen-go 4 //go:generate go install -v google.golang.org/grpc/cmd/protoc-gen-go-grpc 5 //go:generate go install -v github.com/gogo/protobuf/protoc-gen-gofast 6 //go:generate go run ./infra/vprotogen/main.go 7 8 import "path/filepath" 9 10 // ProtoFilesUsingProtocGenGoFast is the map of Proto files 11 // that use `protoc-gen-gofast` to generate pb.go files 12 var ProtoFilesUsingProtocGenGoFast = map[string]bool{"proxy/vless/encoding/addons.proto": true} 13 14 // ProtocMap is the map of paths to `protoc` binary excutable files of specific platform 15 var ProtocMap = map[string]string{ 16 "windows": filepath.Join(".dev", "protoc", "windows", "protoc.exe"), 17 "darwin": filepath.Join(".dev", "protoc", "macos", "protoc"), 18 "linux": filepath.Join(".dev", "protoc", "linux", "protoc"), 19 }