当前位置:网站首页>Compiling protobuf protocol files using makefile in PHP

Compiling protobuf protocol files using makefile in PHP

2022-06-25 23:47:00 ndrandy

  • Makefile   
WORK_DIR=$(shell pwd)
PROTO_FILES=$(WORK_DIR)/Application/Protofiles/*.proto
PHP_OUT_DIR=$(WORK_DIR)/Application/Protocols/

.PHONY: msg

msg:
   @echo build begin
   protoc -I=$(WORK_DIR)/Application/Protofiles --php_out=$(PHP_OUT_DIR) $(PROTO_FILES)
   @echo build end

Usage method ( Terminal execution ):

~# make msg

原网站

版权声明
本文为[ndrandy]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206252056449882.html