diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2018-03-08 20:01:59 +0100 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2018-04-20 18:27:08 +0200 |
commit | 38437d82827de35b34d210d77ce6fb69ac057bea (patch) | |
tree | 328871ed31053459cf4062aa2e530d99b91e4d44 | |
parent | c8525c461fa7f5f68ccfd9c332e6a6bbdd9090d3 (diff) | |
download | gobject-introspection-38437d82827de35b34d210d77ce6fb69ac057bea.tar.gz |
tests: expose variables in meson.build
pygobject uses sources from gi's tests folder to build
libraries to test against, with autotools it worked by
obtaining gidatadir from pkg-config, but this is explicitly
prevented by meson's sandbox when gi is built as a subproject.
-rw-r--r-- | meson.build | 3 | ||||
-rw-r--r-- | tests/meson.build | 18 |
2 files changed, 19 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 0e8b22fc..4c1c135c 100644 --- a/meson.build +++ b/meson.build @@ -79,8 +79,7 @@ subdir('giscanner') subdir('gir') subdir('examples') subdir('docs') -### TODO -### subdir('tests') +subdir('tests') install_data('Makefile.introspection', install_dir: join_paths(get_option('datadir'), 'gobject-introspection-1.0')) install_data('m4/introspection.m4', install_dir: join_paths(get_option('datadir'), 'aclocal')) diff --git a/tests/meson.build b/tests/meson.build new file mode 100644 index 00000000..dcb0fc90 --- /dev/null +++ b/tests/meson.build @@ -0,0 +1,18 @@ +test_regress_sources = files('scanner/regress.c') +test_regress_headers = files('scanner/regress.h') +test_marshalling_sources = files('gimarshallingtests.c') +test_marshalling_headers = files('gimarshallingtests.h') + +test_regress_incdirs = include_directories(['.', 'scanner']) + +installed_sources = [ + 'scanner/regress.c', + 'scanner/regress.h', + 'gimarshallingtests.c', + 'gimarshallingtests.h', + 'gitestmacros.h', +] + +install_data(installed_sources, install_dir: join_paths(get_option('datadir'), 'gobject-introspection-1.0', 'tests')) + +### TODO: actually test |