diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-05 19:51:18 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-05 20:02:31 +0200 |
commit | 4804c376049ad5746eb054ab5ed08bc4d8f9fedf (patch) | |
tree | d712208bb3797e2a66bcc8a7505a35fe2373947a /plugins/huawei/mm-plugin-huawei.c | |
parent | bf1da3faea4605a9a1305993b04e9db425561b1d (diff) |
build: new `--without-qmi' configure option
For those who don't care about the QMI support through libqmi-glib, or if you're
stuck with glib 2.30 (libqmi-glib requires 2.32), this configure switch allows
disabling the QMI support completely.
The logic to detect cdc-wdm ports is still in place, but the QMI probing is
never launched at them. Also, all QMI-related objects won't be compiled.
Diffstat (limited to 'plugins/huawei/mm-plugin-huawei.c')
-rw-r--r-- | plugins/huawei/mm-plugin-huawei.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/huawei/mm-plugin-huawei.c b/plugins/huawei/mm-plugin-huawei.c index 98d16694..4bcebdd4 100644 --- a/plugins/huawei/mm-plugin-huawei.c +++ b/plugins/huawei/mm-plugin-huawei.c @@ -25,9 +25,12 @@ #include "mm-serial-enums-types.h" #include "mm-log.h" #include "mm-plugin-huawei.h" -#include "mm-broadband-modem-qmi.h" #include "mm-broadband-modem-huawei.h" +#if defined WITH_QMI +#include "mm-broadband-modem-qmi.h" +#endif + G_DEFINE_TYPE (MMPluginHuawei, mm_plugin_huawei, MM_TYPE_PLUGIN) int mm_plugin_major_version = MM_PLUGIN_MAJOR_VERSION; @@ -424,6 +427,7 @@ create_modem (MMPlugin *self, { propagate_port_mode_results (probes); +#if defined WITH_QMI if (mm_port_probe_list_has_qmi_port (probes)) { mm_dbg ("QMI-powered Huawei modem found..."); return MM_BASE_MODEM (mm_broadband_modem_qmi_new (sysfs_path, @@ -432,6 +436,7 @@ create_modem (MMPlugin *self, vendor, product)); } +#endif return MM_BASE_MODEM (mm_broadband_modem_huawei_new (sysfs_path, drivers, |