diff options
author | snermolaev <snermolaev@yandex-team.com> | 2024-08-07 07:41:10 +0300 |
---|---|---|
committer | snermolaev <snermolaev@yandex-team.com> | 2024-08-07 07:55:09 +0300 |
commit | e9b0eaca4af5c9b51f48af4f8a24b5483b1e1fde (patch) | |
tree | f92737304b4dfb99e912b03124719e1558be9ef2 /build/conf/proto.conf | |
parent | 0e66090a90e6a55094d0f535599682b4adc04046 (diff) | |
download | ydb-e9b0eaca4af5c9b51f48af4f8a24b5483b1e1fde.tar.gz |
collect .proto files by PROTO_DESCRIPTIONS
479e79ff20f8b8551bc8a5505eb740dc61e7a854
Diffstat (limited to 'build/conf/proto.conf')
-rw-r--r-- | build/conf/proto.conf | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/build/conf/proto.conf b/build/conf/proto.conf index 89870fbe19..6bacb350e0 100644 --- a/build/conf/proto.conf +++ b/build/conf/proto.conf @@ -639,12 +639,12 @@ macro LIST_PROTO(TO="files.proto", Files...) { } # tag:proto -macro _PROTO_DESC_CMD(File) { - .CMD=${cwd;rootdir;input:File} $PROTOC -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE ${pre=-I=:_PROTO__INCLUDE} -I=$ARCADIA_BUILD_ROOT -I=$PROTOBUF_INCLUDE_PATH --descriptor_set_out=${output;suf=.desc:File} --include_source_info $_PROTOC_FLAGS ${input;rootrel:File} ${hide:PROTO_FAKEID} +macro _PROTO_DESC_RAWPROTO_CMD(File) { + .CMD=${cwd;rootdir;input:File} $YMAKE_PYTHON3 ${input:"build/scripts/desc_rawproto_wrapper.py"} --desc-output ${output;suf=.desc:File} --rawproto-output ${output;norel;suf=.${_MODDIR_HASH}.rawproto:File} --proto-file ${input;rootrel:File} -- $PROTOC -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE ${pre=-I=:_PROTO__INCLUDE} -I=$ARCADIA_BUILD_ROOT -I=$PROTOBUF_INCLUDE_PATH --include_source_info $_PROTOC_FLAGS ${hide:PROTO_FAKEID} } -_PROTO_DESC_MERGE_CMD=$YMAKE_PYTHON ${input:"build/scripts/merge_files.py"} $TARGET $AUTO_INPUT ${kv;hide:"p PD"} ${kv;hide:"pc light-cyan"} -_PROTO_DESC_MERGE_PEERS_CMD=$YMAKE_PYTHON ${input:"build/scripts/merge_files.py"} $TARGET $PEERS ${ext=.protodesc:SRCS_GLOBAL} ${kv;hide:"p PD"} ${kv;hide:"pc light-cyan"} +_PROTO_DESC_MERGE_CMD=$YMAKE_PYTHON3 ${input:"build/scripts/merge_files.py"} $TARGET ${ext=.desc:AUTO_INPUT} ${kv;hide:"p PD"} ${kv;hide:"pc light-cyan"} && ${cwd:ARCADIA_BUILD_ROOT} $YMAKE_PYTHON3 ${input:"build/scripts/collect_rawproto.py"} --output ${output;suf=.protosrc:REALPRJNAME} ${rootrel;ext=.rawproto:AUTO_INPUT} +_PROTO_DESC_MERGE_PEERS_CMD=$YMAKE_PYTHON3 ${input:"build/scripts/merge_files.py"} $TARGET $PEERS ${ext=.protodesc:SRCS_GLOBAL} ${kv;hide:"p PD"} ${kv;hide:"pc light-cyan"} && ${cwd:ARCADIA_BUILD_ROOT} $YMAKE_PYTHON3 ${input:"build/scripts/merge_protosrc.py"} --output ${output;suf=.tar:REALPRJNAME} ${rootrel:PEERS} NEED_GOOGLE_PROTO_PEERDIRS=yes @@ -807,7 +807,7 @@ multimodule PROTO_LIBRARY { module DESC_PROTO: _BARE_UNIT { .CMD=_PROTO_DESC_MERGE_CMD .SEM=IGNORED - .EXTS=.desc + .EXTS=.desc .rawproto .NODE_TYPE=Library .IGNORED=GENERATE_ENUM_SERIALIZATION GENERATE_ENUM_SERIALIZATION_WITH_HEADER YMAPS_SPROTO RESOURCE GO_PROTO_PLUGIN GRPC .ALIASES=SRCS=_SRCS_NO_GLOBAL @@ -817,6 +817,7 @@ multimodule PROTO_LIBRARY { DISABLE(_NEED_SBOM_INFO) MODULE_SUFFIX=.self.protodesc SET(MODULE_TYPE LIBRARY) + SET(_MODDIR_HASH ${hash:MODDIR}) _EVLOG_CMDLINE=$_PROTO_DESC_CMDLINE _PROTO_CMDLINE=$_PROTO_DESC_CMDLINE @@ -870,6 +871,6 @@ _CPP_PROTO_EVLOG_CMDLINE=$_CPP_PROTO_EVLOG_CMD($SRC) _CPP_VANILLA_PROTO_CMDLINE=$_CPP_VANILLA_PROTO_CMD($SRC) _JAVA_EVLOG_CMDLINE=$_JAVA_EVLOG_CMD($SRC) _JAVA_PROTO_CMDLINE=$_JAVA_PROTO_CMD($SRC) -_PROTO_DESC_CMDLINE=$_PROTO_DESC_CMD($SRC) +_PROTO_DESC_CMDLINE=$_PROTO_DESC_RAWPROTO_CMD($SRC) _PY_EVLOG_CMDLINE=$_PY_EVLOG_CMD($SRC) _PY_PROTO_CMDLINE=$_PY_PROTO_CMD($SRC) |