add QUASAR_PROTO macro
@@ -377,6 +377,18 @@ GO_PROTOBUF_WELLKNOWN_TYPES=\
vendor/google.golang.org/genproto/protobuf/ptype \
vendor/google.golang.org/genproto/protobuf/source_context
+
+macro QUASAR_PROTO() {
+ SET(PROTOC ${env:"LD_LIBRARY_PATH=$ARCADIA_ROOT/quasar/yandex_io/daemons/local/lib/x86_64"} $ARCADIA_ROOT/quasar/yandex_io/daemons/local/bin/protoc)
+ SET(PROTO_PATH $ARCADIA_ROOT/quasar/yandex_io/protobuf)
+ SET(PROTO_NAMESPACE quasar/yandex_io/protobuf)
+ SET(PROTO_HEADER_INCLUDE)
+ SET(PROTO_SOURCE_INCLUDE)
+ SET(PROTOC_STYLEGUIDE_OUT)
+ SET(PROTOC_PLUGIN_STYLEGUIDE)
+ ADDINCL(GLOBAL quasar/yandex_io/daemons/local/include)
+}
+
macro _GO_PROTOC_PLUGIN_ARGS_BASE(Name, Tool, Plugins="") {
.CMD=--plugin=protoc-gen-${Name}=${tool:Tool} --${Name}_out=$Plugins$ARCADIA_BUILD_ROOT/$PROTO_NAMESPACE
}
