Browse Source

feat c35: `protobuf` plugin

a11ax 1 year ago
parent
commit
599d36e522
2 changed files with 3 additions and 2 deletions
  1. 1 1
      build/conf/project_specific/uservices.conf
  2. 2 1
      build/plugins/uservices.py

+ 1 - 1
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...) {

+ 2 - 1
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)