From 77d1c243614d385027ca11f75aa5d688b01c2969 Mon Sep 17 00:00:00 2001 From: Iñigo Martínez Date: Thu, 29 Jul 2021 23:27:11 +0200 Subject: build: Port to meson meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools. --- tools/tests/meson.build | 30 ++++++++++++++++++++++++++++++ tools/tests/services/meson.build | 8 ++++++++ 2 files changed, 38 insertions(+) create mode 100644 tools/tests/meson.build create mode 100644 tools/tests/services/meson.build (limited to 'tools') diff --git a/tools/tests/meson.build b/tools/tests/meson.build new file mode 100644 index 00000000..deed6c3e --- /dev/null +++ b/tools/tests/meson.build @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2021 Iñigo Martinez + +test_conf = { + 'abs_top_builddir': build_root, + 'abs_top_srcdir': source_root, +} + +subdir('services') + +test_wrapper = configure_file( + input: 'test-wrapper.sh.in', + output: '@BASENAME@', + configuration: test_conf, +) + +# common +if enable_gir + test_unit = 'test-stub' + + exe = executable( + test_unit, + test_unit + '.c', + include_directories: [top_inc, src_inc], + dependencies: libmm_glib_dep, + c_args: '-DTEST_SERVICES="@0@"'.format(meson.current_build_dir() / 'services'), + ) + + test(test_unit, exe) +endif diff --git a/tools/tests/services/meson.build b/tools/tests/services/meson.build new file mode 100644 index 00000000..a17a471d --- /dev/null +++ b/tools/tests/services/meson.build @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2021 Iñigo Martinez + +configure_file( + input: 'org.freedesktop.ModemManager1.service.in', + output: '@BASENAME@', + configuration: test_conf, +) -- cgit v1.2.3-70-g09d2