tests: Add a regression test for vapigen metadatadir

https://github.com/mesonbuild/meson/pull/9806
This commit is contained in:
Nirbheek Chauhan 2022-01-13 12:54:50 +05:30 committed by Nirbheek Chauhan
parent bda11fe25d
commit 67bb25b246
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1 @@
Foo.bar nullable

View File

@ -24,7 +24,14 @@ libfoo_gir = gnome.generate_gir(libfoo,
],
)
configure_file(
input: 'foo.metadata',
output: 'Foo-@0@.metadata'.format(libfoo_api_ver),
copy: true
)
libfoo_vapi = gnome.generate_vapi('foo-' + libfoo_api_ver,
metadata_dirs: meson.current_build_dir(),
sources: libfoo_gir[0],
install: true,
)