build: Allow to use libmbim as subproject
This makes it simpler to build ModemManager git Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
committed by
Dan Williams
parent
c6d1d020f7
commit
9cb5a2d090
@@ -4,3 +4,4 @@
|
||||
tags
|
||||
/.vscode
|
||||
/cscope.out
|
||||
subprojects/libmbim
|
||||
|
||||
+10
-1
@@ -259,7 +259,16 @@ config_h.set('WITH_BUILTIN_PLUGINS', enable_builtin_plugins)
|
||||
# MBIM support (enabled by default)
|
||||
enable_mbim = get_option('mbim')
|
||||
if enable_mbim
|
||||
mbim_glib_dep = dependency('mbim-glib', version: '>= 1.32.0')
|
||||
mbim_glib_dep = dependency('mbim-glib', version: '>= 1.32.0',
|
||||
required: not get_option('subproject-fallback'))
|
||||
if not mbim_glib_dep.found() and get_option('subproject-fallback')
|
||||
mbim_glib_proj = subproject('libmbim',
|
||||
default_options: ['man=false',
|
||||
'introspection=false',
|
||||
'bash_completion=false',
|
||||
])
|
||||
mbim_glib_dep = mbim_glib_proj.get_variable('libmbim_glib_dep')
|
||||
endif
|
||||
endif
|
||||
config_h.set('WITH_MBIM', enable_mbim)
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ option('udevdir', type: 'string', value: '', description: 'udev base directory')
|
||||
|
||||
option('examples', type: 'boolean', value: true, description: 'install examples')
|
||||
option('tests', type: 'boolean', value: true, description: 'enable tests')
|
||||
option('subproject-fallback', type: 'boolean', value: false, description: 'allow to use subprojects')
|
||||
|
||||
option('dbus_policy_dir', type: 'string', value: '', description: 'd-bus system policy directory')
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
[wrap-git]
|
||||
directory=libmbim
|
||||
url=https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
|
||||
revision=main
|
||||
|
||||
Reference in New Issue
Block a user