summaryrefslogtreecommitdiff
path: root/cli
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 /cli
parentfa19b2b9b1412d3eeb515afe41c55ac414acc982 (diff)
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 'cli')
-rw-r--r--cli/meson.build47
1 files changed, 47 insertions, 0 deletions
diff --git a/cli/meson.build b/cli/meson.build
new file mode 100644
index 00000000..12dbeb8a
--- /dev/null
+++ b/cli/meson.build
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# Copyright (C) 2021 Iñigo Martinez <inigomartinez@gmail.com>
+
+sources = files(
+ 'mmcli-bearer.c',
+ 'mmcli.c',
+ 'mmcli-call.c',
+ 'mmcli-common.c',
+ 'mmcli-manager.c',
+ 'mmcli-modem-3gpp.c',
+ 'mmcli-modem-3gpp-profile-manager.c',
+ 'mmcli-modem-3gpp-ussd.c',
+ 'mmcli-modem.c',
+ 'mmcli-modem-cdma.c',
+ 'mmcli-modem-firmware.c',
+ 'mmcli-modem-location.c',
+ 'mmcli-modem-messaging.c',
+ 'mmcli-modem-oma.c',
+ 'mmcli-modem-signal.c',
+ 'mmcli-modem-simple.c',
+ 'mmcli-modem-time.c',
+ 'mmcli-modem-voice.c',
+ 'mmcli-output.c',
+ 'mmcli-sim.c',
+ 'mmcli-sms.c',
+)
+
+deps = [
+ gudev_dep,
+ libmm_glib_dep,
+]
+
+executable(
+ 'mmcli',
+ sources: sources,
+ include_directories: top_inc,
+ dependencies: deps,
+ install: true,
+)
+
+if enable_bash_completion
+ install_data(
+ 'mmcli-completion',
+ install_dir: bash_completion_completionsdir,
+ rename: 'mmcli',
+ )
+endif