1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-12-10 16:24:37 +03:00

build: switch over to new rpc generator code

This replaces use of 'rpcgen' with our new python impl of
the RPC code generator. Since the new impl generates code
that matches our style/coding rules, and does not contain
long standing bugs, we no longer need to post-process the
output.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé
2022-12-14 06:58:51 -05:00
parent ac9e6ff649
commit a62486b95f
11 changed files with 52 additions and 139 deletions

View File

@@ -1,3 +1,5 @@
subdir('rpcgen')
if pytest_prog.found()
subdir('tests')
@@ -9,3 +11,6 @@ if pytest_prog.found()
workdir: meson.current_source_dir(),
)
endif
rpcgen_prog = find_program('main.py')
rpcgen_src += files(['main.py'])

View File

@@ -0,0 +1,7 @@
rpcgen_src = files([
'ast.py',
'lexer.py',
'generator.py',
'parser.py',
'visitor.py',
])