protoc has no support for spaces in the commandline (https://github.com/google/protobuf/issues/955)

This commit is contained in:
momo5502 2016-02-11 18:46:24 +01:00
parent d875f36be2
commit ab7f1bfcca

View File

@ -334,7 +334,7 @@ rule "ProtobufCompiler"
'@echo off',
'path "$(SolutionDir)\\..\\tools"',
'if not exist "$(ProjectDir)\\src\\proto" mkdir "$(ProjectDir)\\src\\proto"',
'protoc --error_format=msvs -I=%(RootDir)%(Directory) "--cpp_out=$(ProjectDir)\\src\\proto" "%(FullPath)"',
'protoc --error_format=msvs -I=%(RelativeDir) --cpp_out=src\\proto %(Identity)',
}
buildoutputs {
'$(ProjectDir)\\src\\proto\\%(Filename).pb.cc',