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.
This commit is contained in:
Iñigo Martínez
2021-09-07 10:55:43 +00:00
committed by Aleksander Morgado
parent fa19b2b9b1
commit 77d1c24361
35 changed files with 2725 additions and 0 deletions
+47
View File
@@ -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