summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2021-07-29 23:27:11 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-09-07 10:55:43 +0000
commit77d1c243614d385027ca11f75aa5d688b01c2969 (patch)
treedc39670de7b80b887f539480153334c25ea75e88 /test
parentfa19b2b9b1412d3eeb515afe41c55ac414acc982 (diff)
downloadModemManager-77d1c243614d385027ca11f75aa5d688b01c2969.tar.gz
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.
Diffstat (limited to 'test')
-rw-r--r--test/meson.build22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/meson.build b/test/meson.build
new file mode 100644
index 000000000..3e66eed77
--- /dev/null
+++ b/test/meson.build
@@ -0,0 +1,22 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# Copyright (C) 2021 Iñigo Martinez <inigomartinez@gmail.com>
+
+test_units = {
+ 'mmrules': libkerneldevice_dep,
+ 'mmsmsmonitor': libhelpers_dep,
+ 'mmsmspdu': libhelpers_dep,
+ 'mmtty': libport_dep,
+}
+
+if gudev_dep.found()
+ test_units += {'lsudev': gudev_dep}
+endif
+
+foreach test_unit, test_deps: test_units
+ executable(
+ test_unit,
+ test_unit + '.c',
+ include_directories: top_inc,
+ dependencies: test_deps,
+ )
+endforeach