parameterize output extension for generated GO files
@@ -366,6 +366,7 @@ macro _ADD_PY_PROTO_OUT(Suf) {
GO_PROTOC_GEN_TOOL=vendor/github.com/golang/protobuf/protoc-gen-go
GO_PROTOC_GEN_PLUGINS=
+GO_PROTOC_GEN_OUTPUT_EXT=.pb.go
GO_PROTOBUF_WELLKNOWN_TYPES=\
vendor/github.com/golang/protobuf/ptypes \
@@ -385,7 +386,7 @@ macro _GO_PROTOC_PLUGIN_ARGS_BASE(Name, Tool, Plugins="") {
}
macro _GO_PROTO_CMD(File) {
- .CMD=${cwd;rootdir;input:File} $YMAKE_PYTHON ${input:"build/scripts/go_proto_wrapper.py"} $GO_ARCADIA_PROJECT_PREFIX $GO_CONTRIB_PROJECT_PREFIX $PROTOC -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE -I=$ARCADIA_BUILD_ROOT -I=$PROTO_PATH ${input;rootrel:File} ${output;hide;noauto;norel;nopath;noext;suf=.pb.go:File} $_GO_PROTOC_PLUGIN_ARGS_BASE(go $GO_PROTOC_GEN_TOOL $GO_PROTOC_GEN_PLUGINS) ${kv;hide:"p PT"} ${kv;hide:"pc yellow"}
+ .CMD=${cwd;rootdir;input:File} $YMAKE_PYTHON ${input:"build/scripts/go_proto_wrapper.py"} $GO_ARCADIA_PROJECT_PREFIX $GO_CONTRIB_PROJECT_PREFIX $PROTOC -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE -I=$ARCADIA_BUILD_ROOT -I=$PROTO_PATH ${input;rootrel:File} ${output;hide;noauto;norel;nopath;noext;suf=${GO_PROTOC_GEN_OUTPUT_EXT}:File} $_GO_PROTOC_PLUGIN_ARGS_BASE(go $GO_PROTOC_GEN_TOOL $GO_PROTOC_GEN_PLUGINS) ${kv;hide:"p PT"} ${kv;hide:"pc yellow"}
.PEERDIR=${GOSTD}/fmt ${GOSTD}/math vendor/github.com/golang/protobuf/proto vendor/github.com/golang/protobuf/protoc-gen-go/descriptor contrib/libs/protobuf ${GO_PROTOBUF_WELLKNOWN_TYPES}
}
