diff options
author | Martin Blanchard <tchaik@gmx.com> | 2018-06-02 17:45:30 +0100 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2019-08-05 13:17:56 -0700 |
commit | dabb83a2e217694220a55c2019a081365a4a1288 (patch) | |
tree | dbf8bc0f074db21657464eb6e4531bb6ad0f218b /tests/testing-util | |
parent | dd795bd071d9cec755979a3942682a331c429360 (diff) | |
download | libpeas-dabb83a2e217694220a55c2019a081365a4a1288.tar.gz |
Port to meson build system
The meson build system focuses on speed an ease of use,
which helps speeding up the software development.
https://bugzilla.gnome.org/show_bug.cgi?id=793916
https://gitlab.gnome.org/GNOME/libpeas/issues/26
Closes #26
Diffstat (limited to 'tests/testing-util')
-rw-r--r-- | tests/testing-util/meson.build | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/testing-util/meson.build b/tests/testing-util/meson.build new file mode 100644 index 0000000..890ddb8 --- /dev/null +++ b/tests/testing-util/meson.build @@ -0,0 +1,42 @@ +libtesting_util_name = 'testing-util' +libtesting_util_string = '@0@-@1@'.format(libtesting_util_name, api_version) + +libtesting_util_public_h = [ + 'testing-util.h', +] + +libtesting_util_c = [ + 'testing-util.c', +] + +libtesting_util_deps = [ + glib_dep, + introspection_dep, + libpeas_dep, +] + +libtesting_util_c_args = [ + '-DHAVE_CONFIG_H', + '-DBUILDDIR="@0@"'.format(builddir), + '-DSRCDIR="@0@"'.format(srcdir), +] + +libtesting_util_link_args = [ + '-export-dynamic', +] + +libtesting_util_lib = library( + libtesting_util_string, + libtesting_util_c, + include_directories: rootdir, + dependencies: libtesting_util_deps, + c_args: libtesting_util_c_args, + link_args: libtesting_util_link_args, + install: false, +) + +libtesting_util_dep = declare_dependency( + link_with: libtesting_util_lib, + include_directories: include_directories('.'), + dependencies: libtesting_util_deps, +) |