From 2e335f44f276c1455f27bd522b639b9c99dec2cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Mart=C3=ADnez?= Date: Mon, 17 May 2021 15:10:57 +0200 Subject: build: Fix QMI over MBIM and QRTR auto support meson port dropped the auto support for QMI over MBIM and QRTR. The auto support has been recovered by checking libraries in the system. Fixes #66 --- meson.build | 14 ++++++++------ meson_options.txt | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/meson.build b/meson.build index e9e1620f..f1d1b193 100644 --- a/meson.build +++ b/meson.build @@ -181,16 +181,18 @@ endif config_h.set('QMI_USERNAME_ENABLED', enable_qmi_username) # MBIM QMUX service support -enable_mbim_qmux = get_option('mbim_qmux') -if enable_mbim_qmux - mbim_glib_dep = dependency('mbim-glib', version: '>= 1.18.0') +enable_mbim_qmux = false +if get_option('mbim_qmux') + mbim_glib_dep = dependency('mbim-glib', version: '>= 1.18.0', required: false) + enable_mbim_qmux = mbim_glib_dep.found() endif config_h.set('MBIM_QMUX_ENABLED', enable_mbim_qmux) # QRTR support -enable_qrtr = get_option('qrtr') -if enable_qrtr - qrtr_glib_dep = dependency('qrtr-glib', version: '>= 1.0.0') +enable_qrtr = false +if get_option('qrtr') + qrtr_glib_dep = dependency('qrtr-glib', version: '>= 1.0.0', required: false) + enable_qrtr = qrtr_glib_dep.found() endif config_h.set10('QMI_QRTR_SUPPORTED', enable_qrtr) diff --git a/meson_options.txt b/meson_options.txt index 71e4c5ec..6f7cb628 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -2,10 +2,10 @@ option('collection', type: 'combo', choices: ['minimal', 'basic', 'full'], value option('firmware_update', type: 'boolean', value: true, description: 'enable compilation of `qmi-firmware-update') -option('mbim_qmux', type: 'boolean', value: false, description: 'enable support for QMI over MBIM QMUX service') +option('mbim_qmux', type: 'boolean', value: true, description: 'enable support for QMI over MBIM QMUX service') option('mm_runtime_check', type: 'boolean', value: true, description: 'build ModemManager runtime check support') option('qmi_username', type: 'string', value: '', description: 'user allowed to access QMI devices') -option('qrtr', type: 'boolean', value: false, description: 'enable support for QRTR protocol') +option('qrtr', type: 'boolean', value: true, description: 'enable support for QRTR protocol') option('udev', type: 'boolean', value: true, description: 'build udev support') option('udevdir', type: 'string', value: '', description: 'where udev base directory is') -- cgit v1.2.1