alberliu / gim

golang写的IM服务器(服务组件形式)
MIT License
2.57k stars 525 forks source link

没看到 protoc 相关内容 #111

Closed cute-angelia closed 3 years ago

cute-angelia commented 3 years ago

建议加一个 makefile


.PHONY: proto 

# proto 生成文件
proto:
    @for d in proto; do \
        for f in $$d/**/*.proto; do \
            protoc --proto_path=. --gofast_out=plugins=grpc:. $$f; \
            echo compiled: $$f; \
        done \
    done
alberliu commented 3 years ago

现在执行build_proto.sh。即可编译协议