BatteryMonitor/proto/auto.bat

14 lines
293 B
Batchfile
Raw Permalink Normal View History

2024-11-05 15:44:19 +08:00
@echo off
set local
:: 设置库路径
SET LIB_PATH=..\library\libprotobuf\lib
:: 设置环境变量
SET PATH=%LIB_PATH%;%PATH%
:: 设置protoc路径
SET PROTOC_PATH=..\library\libprotobuf\bin\protoc.exe
:: 编译proto文件
%PROTOC_PATH% --cpp_out=.\ *.proto
pause
endlocal