diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2018-03-06 15:59:52 +0700 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2018-03-13 11:12:30 +0000 |
commit | 542bb05b1be51a76ced5566b3f59fd5e3e58fa03 (patch) | |
tree | 36aa7c5d2d1fee5e726b6901196e5320555016df /json-glib/tests | |
parent | 450b5d04e505298c3fc9fbe6108469ac2d2fd44d (diff) | |
download | json-glib-542bb05b1be51a76ced5566b3f59fd5e3e58fa03.tar.gz |
Refresh the build system
We should use more idiomatic Meson:
- improve the coding style
- ensure that the `json_glib_dep` dependency object also includes
the introspection data, if enabled
- add a separate option for the man page generation
- ensure that json-glib can be used as a subproject
Diffstat (limited to 'json-glib/tests')
-rw-r--r-- | json-glib/tests/meson.build | 52 |
1 files changed, 29 insertions, 23 deletions
diff --git a/json-glib/tests/meson.build b/json-glib/tests/meson.build index a80e8ce..881d902 100644 --- a/json-glib/tests/meson.build +++ b/json-glib/tests/meson.build @@ -26,29 +26,35 @@ install_data(test_data, install_dir: installed_test_bindir) foreach t: tests installed_test = '@0@.test'.format(t) - data = custom_target(installed_test, - output: installed_test, - command: [ - python3, - gen_installed_test, - '--testdir=@0@'.format(installed_test_bindir), - '--testname=@0@'.format(t), - '--outdir=@OUTDIR@', - '--outfile=@0@'.format(installed_test), - ], - install: true, - install_dir: installed_test_datadir) + data = custom_target( + installed_test, + output: installed_test, + command: [ + python3, + gen_installed_test, + '--testdir=@0@'.format(installed_test_bindir), + '--testname=@0@'.format(t), + '--outdir=@OUTDIR@', + '--outfile=@0@'.format(installed_test), + ], + install: true, + install_dir: installed_test_datadir, + ) - exe = executable(t, '@0@.c'.format(t), - c_args: json_c_args, - install: true, - install_dir: installed_test_bindir, - dependencies: [ json_glib_dep, ]) + exe = executable( + t, '@0@.c'.format(t), + c_args: json_c_args, + install: true, + install_dir: installed_test_bindir, + dependencies: [ json_glib_dep, ], + ) - test(t, exe, - args: [ '--tap', '-k' ], - env: [ - 'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()), - 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()), - ]) + test( + t, exe, + args: [ '--tap', '-k' ], + env: [ + 'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()), + 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()), + ], + ) endforeach |