diff options
author | dimdim11 <dimdim11@yandex-team.com> | 2024-10-02 05:49:50 +0300 |
---|---|---|
committer | dimdim11 <dimdim11@yandex-team.com> | 2024-10-02 05:59:11 +0300 |
commit | f16f882b5f629a7b2be69e4209dd9913076c7168 (patch) | |
tree | 611f546f02c80cba46aca7b8af71f22bff8150ee /build/conf | |
parent | 2972a2c2936e555e1cddf0c069c6da6406bd1d1c (diff) | |
download | ydb-f16f882b5f629a7b2be69e4209dd9913076c7168.tar.gz |
Add semantic and protoc_extra_outs for deps.pb.h
Add semantic for deps.pb.h
commit_hash:fb9944288736e5ca8162baf88ca903bd896de7b0
Diffstat (limited to 'build/conf')
-rw-r--r-- | build/conf/proto.conf | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build/conf/proto.conf b/build/conf/proto.conf index 7fd77916e8..b53adb1256 100644 --- a/build/conf/proto.conf +++ b/build/conf/proto.conf @@ -45,6 +45,8 @@ CPP_PROTO_SUFFIXES=.pb.h .pb.cc CPP_PROTO_PLUGINS= CPP_PROTO_NO_DBGINFO=no +PROTOC_EXTRA_OUTS_SEM= + # tag:proto tag:cpp-specific CPP_EV_OPTS=--plugin=protoc-gen-event2cpp=${tool:"tools/event2cpp"} --event2cpp_out=$ARCADIA_BUILD_ROOT -I=$ARCADIA_ROOT/library/cpp/eventlog CPP_EV_OUTS= @@ -208,8 +210,9 @@ macro WITH_KOTLIN_GRPC() { # tag:proto tag:cpp-specific macro _ADD_CPP_PROTO_OUT(Suf) { - .SEM=append_target_property PROTOC_EXTRA_OUTS $Suf && protoc_extra_outs $Suf ${output;hide;suf=.o:Suf} $_ADD_SEM_PROP_IF_NON_EMPTY(PROTO_NAMESPACE $PROTO_NAMESPACE) + .SEM=append_target_property PROTOC_EXTRA_OUTS $Suf ${output;hide;suf=.o:Suf} $_ADD_SEM_PROP_IF_NON_EMPTY(PROTO_NAMESPACE $PROTO_NAMESPACE) SET_APPEND(CPP_PROTO_OUTS \${output;norel;nopath;noext;suf=$Suf:File}) + SET_APPEND(PROTOC_EXTRA_OUTS_SEM && protoc_extra_outs $Suf) # XXX fix variable expansion in plugins SET(CPP_PROTO_SUFFIXES $CPP_PROTO_SUFFIXES $Suf) @@ -387,6 +390,7 @@ macro YT_ORM_PROTO_YSON(OUT_OPTS[], Files...) { _SEM_CPP_PROTO_CMD=target_proto_messages PRIVATE ${input:File} \ && target_options-privates-ITEM && target_options-privates-option target_proto_messages && target_options-privates-args ${input:File} \ $CPP_PROTO_OUTS_SEM ${output;hide;suf=${OBJ_SUF}.pb.o:File} $DEFAULT_PROTOC_TOOLS \ + $PROTOC_EXTRA_OUTS_SEM \ && set_global_flags COMMON_PROTOC_FLAGS \ && platform_vars-COMMON_PROTOC_FLAGS "" \ && target_proto_outs --cpp_out=$ARCADIA_BUILD_ROOT/$PROTO_NAMESPACE $PROTOC_STYLEGUIDE_OUT \ |