libqmi: add optional features
authorAleksander Morgado <aleksander@aleksander.es>
Wed, 6 Sep 2017 21:28:34 +0000 (23:28 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 6 Sep 2017 21:48:24 +0000 (23:48 +0200)
commit5cb40de7ee09338f1e7db03915447434485959cd
treee33088f825ab996b8ca76c011db0f07df8a9d769
parente1c06945eea337ec7f941563d3e0e5f3d7212331
libqmi: add optional features

The libqmi library and tools come with several optional features that
may be enabled or disabled during build.

This patch adds support to automatically enable or disable them based
on the presence of the required dependencies for each:
 * QMI-over-MBIM is enabled if libmbim is selected.
 * udev support in qmi-firmware-update is enabled if libgudev is
   selected.
 * MM runtime check in qmi-firmware-update is enabled if ModemManager
   is selected (but we don't build-depend on it, the runtime check is
   done using plain glib2 DBus operations).

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libqmi/libqmi.mk