aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnermolaev <snermolaev@yandex-team.com>2023-09-26 08:13:06 +0300
committersnermolaev <snermolaev@yandex-team.com>2023-09-26 08:49:37 +0300
commit5363dc114f5e705104b320f2900b54e24bdfad8d (patch)
tree4a0d071fca2f8a82cb09e1cd8bb2508c07428d10
parent24b21d7db6f163c0085a81ba9674e488ed20d3a4 (diff)
downloadydb-5363dc114f5e705104b320f2900b54e24bdfad8d.tar.gz
move uservices.py to build/internal/plugins
-rw-r--r--build/plugins/uservices.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/build/plugins/uservices.py b/build/plugins/uservices.py
deleted file mode 100644
index 35b7f6fdea2..00000000000
--- a/build/plugins/uservices.py
+++ /dev/null
@@ -1,38 +0,0 @@
-import json
-import ymake
-
-
-def on_process_usrv_files(unit, *args):
- mode = None
- if args[0] == 'NO_DEPS':
- for f in args[1:]:
- if f == 'OUT_NOAUTO':
- mode = f
- continue
- if mode is not None:
- unit.on_move([f + '.usrv', mode, f])
- elif f.endswith('.cpp'):
- unit.on_move([f + '.usrv', 'OUT', f])
- else:
- unit.on_move([f + '.usrv', 'OUT_NOAUTO', f])
- return
-
- deps_file = unit.resolve(unit.resolve_arc_path(args[0]))
- try:
- all_deps = json.load(open(deps_file, 'r'))
- except Exception as e:
- ymake.report_configure_error('Malformed dependencies JSON `{}`: {}'.format(args[0], e.__repr__()))
- return
- mode = 'OUT'
- for f in args[1:]:
- if f == 'OUT_NOAUTO':
- mode = f
- continue
- try:
- deps = all_deps[f]
- except KeyError:
- ymake.report_configure_error('Dependencies for {} not found in {}'.format(f, args[0]))
- unit.on_usrv_mv_with_deps([f])
- return
- deps_type = 'OUTPUT_INCLUDES' if f.endswith('.proto') else 'CPP_DEPS'
- unit.on_move([f + '.usrv', mode, f, deps_type] + deps)