bluez5: backend-native: Add a ModemManager dependency

Some Linux phones doesn't use oFono but ModemManager to control the modem.
This commit is contained in:
Frédéric Danis 2022-09-06 12:13:14 +02:00 committed by Wim Taymans
parent 05a133f5b5
commit 28533cb615
3 changed files with 12 additions and 0 deletions

View file

@ -10,6 +10,7 @@ cdata.set('HAVE_BLUEZ_5_BACKEND_NATIVE',
get_option('bluez5-backend-hfp-native').allowed())
cdata.set('HAVE_BLUEZ_5_BACKEND_HSP_NATIVE', get_option('bluez5-backend-hsp-native').allowed())
cdata.set('HAVE_BLUEZ_5_BACKEND_HFP_NATIVE', get_option('bluez5-backend-hfp-native').allowed())
cdata.set('HAVE_BLUEZ_5_BACKEND_NATIVE_MM', get_option('bluez5-backend-native-mm').allowed())
cdata.set('HAVE_BLUEZ_5_BACKEND_OFONO', get_option('bluez5-backend-ofono').allowed())
cdata.set('HAVE_BLUEZ_5_BACKEND_HSPHFPD', get_option('bluez5-backend-hsphfpd').allowed())
cdata.set('HAVE_BLUEZ_5_HCI', dependency('bluez', version: '< 6', required: false).found())
@ -38,6 +39,9 @@ if get_option('bluez5-backend-hsp-native').allowed() or get_option('bluez5-backe
if libusb_dep.found()
bluez5_deps += libusb_dep
endif
if mm_dep.found()
bluez5_deps += mm_dep
endif
bluez5_sources += ['backend-native.c']
endif