aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora11ax <a11ax@yandex-team.com>2023-06-20 22:27:45 +0300
committera11ax <a11ax@yandex-team.com>2023-06-20 22:27:45 +0300
commit599d36e52278e1aef748053f8a7c4a92a4e3c75b (patch)
tree9be04151fc23a8c18caeac43c7c2c2a3e4fb9508
parente4d010e117a157f40e16b53a1294e6d7b9d3f089 (diff)
downloadydb-599d36e52278e1aef748053f8a7c4a92a4e3c75b.tar.gz
feat c35: `protobuf` plugin
-rw-r--r--build/conf/project_specific/uservices.conf2
-rw-r--r--build/plugins/uservices.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/build/conf/project_specific/uservices.conf b/build/conf/project_specific/uservices.conf
index 5bb931744c..92f69e10ea 100644
--- a/build/conf/project_specific/uservices.conf
+++ b/build/conf/project_specific/uservices.conf
@@ -1,5 +1,5 @@
macro _MOVE(Src, OUT="", OUT_NOAUTO="", CPP_DEPS[], OUTPUT_INCLUDES[]) {
- .CMD=$MOVE_FILE ${input:Src} ${output;norel:OUT} ${output;noauto;norel:OUT_NOAUTO} ${induced_deps=h+cpp;hide:CPP_DEPS} ${output_includes;hide:OUTPUT_INCLUDES} ${kv;hide:"p MV"} ${kv;hide:"pc light-cyan"}
+ .CMD=$MOVE_FILE ${input:Src} ${output;norel:OUT} ${output;noauto;norel:OUT_NOAUTO} ${induced_deps=h+cpp;hide:CPP_DEPS} ${output_include;hide:OUTPUT_INCLUDES} ${kv;hide:"p MV"} ${kv;hide:"pc light-cyan"}
}
macro USRV_BUILD(FROM="Please specify generated .tar-file as FROM", DEPS_FILE="NO_DEPS", OUT_NOAUTO[], Files...) {
diff --git a/build/plugins/uservices.py b/build/plugins/uservices.py
index 69dffd325e..35b7f6fdea 100644
--- a/build/plugins/uservices.py
+++ b/build/plugins/uservices.py
@@ -34,4 +34,5 @@ def on_process_usrv_files(unit, *args):
ymake.report_configure_error('Dependencies for {} not found in {}'.format(f, args[0]))
unit.on_usrv_mv_with_deps([f])
return
- unit.on_move([f + '.usrv', mode, f, 'CPP_DEPS'] + deps)
+ deps_type = 'OUTPUT_INCLUDES' if f.endswith('.proto') else 'CPP_DEPS'
+ unit.on_move([f + '.usrv', mode, f, deps_type] + deps)