rpcgen: Reformat meson files

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Andrea Bolognani 2023-11-29 17:44:13 +01:00
parent 233e74e3bf
commit a12e13bdc3
3 changed files with 28 additions and 28 deletions

View File

@ -4,14 +4,14 @@ if tests_enabled[0]
subdir('tests') subdir('tests')
if pytest_prog.found() if pytest_prog.found()
test( test(
'rpcgen-pytest', 'rpcgen-pytest',
python3_prog, python3_prog,
args: [ '-mpytest' ] + rpcgen_tests, args: [ '-mpytest' ] + rpcgen_tests,
env: runutf8, env: runutf8,
workdir: meson.current_source_dir(), workdir: meson.current_source_dir(),
suite: 'script', suite: 'script',
) )
endif endif
endif endif

View File

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

View File

@ -1,24 +1,24 @@
rpcgen_tests = files([ rpcgen_tests = files([
'test_generator.py', 'test_generator.py',
'test_lexer.py', 'test_lexer.py',
'test_parser.py', 'test_parser.py',
]) ])
test_demo = executable( test_demo = executable(
'test_demo', 'test_demo',
[ 'test_demo.c' ], [ 'test_demo.c' ],
c_args: [ c_args: [
'-Dabs_srcdir="@0@"'.format(meson.current_source_dir()), '-Dabs_srcdir="@0@"'.format(meson.current_source_dir()),
] + cc_flags_relaxed_frame_limit, ] + cc_flags_relaxed_frame_limit,
dependencies: [ dependencies: [
xdr_dep, glib_dep xdr_dep, glib_dep
], ],
) )
test( test(
'test_demo', 'test_demo',
test_demo, test_demo,
workdir: meson.current_source_dir(), workdir: meson.current_source_dir(),
suite: 'bin', suite: 'bin',
) )