-
Notifications
You must be signed in to change notification settings - Fork 22
Home
MauriceBetzel edited this page Aug 6, 2014
·
2 revisions
Welcome to the protoc-gen-php wiki!
To start generating php files from proto files on Windows create a start.bat file containing :
@ECHO OFF SET BIN_TARGET=%~dp0protoc-gen-php php "%BIN_TARGET%"
On the console execute protoc if start.bat is in the same directory as protoc-gen-php :
protoc.exe --plugin=protoc-gen-php=bin\start.bat --php_out={output dir} --proto_path=. person.proto
The clue is using --plugin={NAME=PATH} to map the given plugin name to the executable.