diff options
author | a11ax <[email protected]> | 2023-03-20 12:21:00 +0300 |
---|---|---|
committer | a11ax <[email protected]> | 2023-03-20 12:21:00 +0300 |
commit | 83aaec98b9d45bd6b2d47c30d9769d7aa16dd715 (patch) | |
tree | 2e46caffc4d8d6d3dfeeb4d2e13bd20127d38576 /build/plugins/uservices.py | |
parent | 2fd2059e8afc19056e9760d045a316323300a514 (diff) |
fix plugins/ya_make: NOAUTO for codegen files going into join
Diffstat (limited to 'build/plugins/uservices.py')
-rw-r--r-- | build/plugins/uservices.py | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/build/plugins/uservices.py b/build/plugins/uservices.py index 9a8deb18d48..12eec99a76d 100644 --- a/build/plugins/uservices.py +++ b/build/plugins/uservices.py @@ -2,25 +2,35 @@ 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.endswith('.cpp'): + 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:]: - try: + 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 - unit.on_move([f + '.usrv', 'OUT', f, 'CPP_DEPS'] + deps) + unit.on_move([f + '.usrv', mode, f, 'CPP_DEPS'] + deps) |