Skip to content

Commit

Permalink
add grpc generation to protoc compiler script
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Sep 1, 2024
1 parent f56bbb4 commit 7473438
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/compile-protobuf.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
$PROTOC = 'C:\Source\github\nam20485\OdbDesign\out\build\x64-debug\vcpkg_installed\x64-windows\tools\protobuf\protoc'
$DLL_EXPORT = 'ODBDESIGN_EXPORT'
$_GRPC_CPP_PLUGIN_EXECUTABLE = 'C:\Program Files (x86)\grpc\bin\grpc_cpp_plugin.exe'

. $PROTOC --cpp_out=dllexport_decl=${DLL_EXPORT}:../Protobuf --error_format=msvs *.proto
. $PROTOC --cpp_out=dllexport_decl=${DLL_EXPORT}:../Protobuf --error_format=msvs *.proto `
--grpc_out=../Protobuf --plugin=protoc-gen-grpc="${_GRPC_CPP_PLUGIN_EXECUTABLE}"

# COMMAND ${_PROTOBUF_PROTOC}
# ARGS --grpc_out "${CMAKE_CURRENT_BINARY_DIR}"
# --cpp_out "${CMAKE_CURRENT_BINARY_DIR}"
# -I "${hw_proto_path}"
# --plugin=protoc-gen-grpc="${_GRPC_CPP_PLUGIN_EXECUTABLE}"
# "${hw_proto}"

0 comments on commit 7473438

Please sign in to comment.