Merge branch 'master' of http://git.legu.cc/liwei_3d/go_dreamfactory
This commit is contained in:
commit
f1a0a17d8f
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,6 +10,7 @@
|
|||||||
*.out
|
*.out
|
||||||
|
|
||||||
*.log
|
*.log
|
||||||
|
bin/conf
|
||||||
|
|
||||||
.vscode
|
.vscode
|
||||||
./bin/conf
|
./bin/conf
|
||||||
|
16
scripts/pb.bat
Normal file
16
scripts/pb.bat
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
set PROJECT_ROOT=E:/projects/workspace/go_dreamfactory
|
||||||
|
|
||||||
|
set SRC_CLIENT=%PROJECT_ROOT%\proto\client
|
||||||
|
set TAR_CLIENT=%PROJECT_ROOT%\pb\client
|
||||||
|
|
||||||
|
set SRC_SERVER=%PROJECT_ROOT%\proto\server
|
||||||
|
set TAR_SERVER=%PROJECT_ROOT%\pb\server
|
||||||
|
|
||||||
|
::protoc -I %SRC_CLIENT% --go_out=%TAR_CLIENT% %SRC_CLIENT%/*.proto
|
||||||
|
protoc --proto_path=%SRC_CLIENT% --go_out=%TAR_CLIENT% --go_opt=paths=source_relative %SRC_CLIENT%\*.proto
|
||||||
|
|
||||||
|
protoc --proto_path=%SRC_SERVER% --go_out=%TAR_SERVER% --go_opt=paths=source_relative %SRC_SERVER%\*.proto
|
||||||
|
|
||||||
|
pause
|
Loading…
Reference in New Issue
Block a user