build,meson: Improve plugins option set
Improved the way the plugins are set to allow a smaller summary.
This commit is contained in:

committed by
Aleksander Morgado

parent
85a99ae028
commit
bbc157688d
87
meson.build
87
meson.build
@@ -265,7 +265,9 @@ enable_vapi = get_option('vapi')
|
|||||||
# gtkdoc support
|
# gtkdoc support
|
||||||
enable_gtk_doc = get_option('gtk_doc')
|
enable_gtk_doc = get_option('gtk_doc')
|
||||||
|
|
||||||
plugins_shared = {
|
enable_plugins = not get_option('auto_features').disabled()
|
||||||
|
|
||||||
|
plugins_shared_reqs = {
|
||||||
'foxconn': enable_mbim,
|
'foxconn': enable_mbim,
|
||||||
'icera': true,
|
'icera': true,
|
||||||
'novatel': true,
|
'novatel': true,
|
||||||
@@ -275,7 +277,7 @@ plugins_shared = {
|
|||||||
'xmm': true,
|
'xmm': true,
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins_options = {
|
plugins_options_reqs = {
|
||||||
'altair-lte': [],
|
'altair-lte': [],
|
||||||
'anydata': [],
|
'anydata': [],
|
||||||
'broadmobi': [],
|
'broadmobi': [],
|
||||||
@@ -317,23 +319,28 @@ plugins_options = {
|
|||||||
'zte': ['icera'],
|
'zte': ['icera'],
|
||||||
}
|
}
|
||||||
|
|
||||||
disable_all_plugins = get_option('plugin_disable_all')
|
plugins_shared = {}
|
||||||
|
foreach plugin_name, _: plugins_shared_reqs
|
||||||
|
plugins_shared += {plugin_name: false}
|
||||||
|
endforeach
|
||||||
|
|
||||||
enable_plugins = []
|
plugins_options = {}
|
||||||
enable_plugins_shared = []
|
foreach plugin_name, plugin_reqs: plugins_options_reqs
|
||||||
if not disable_all_plugins
|
plugin_opt = get_option('plugin_' + plugin_name.underscorify())
|
||||||
foreach plugin_name, plugin_shared_reqs: plugins_options
|
plugin_enabled = not plugin_opt.disabled()
|
||||||
if get_option('plugin_' + plugin_name.underscorify())
|
if plugin_enabled
|
||||||
enable_plugins += [plugin_name]
|
foreach plugin_req: plugin_reqs
|
||||||
foreach plugin_req: plugin_shared_reqs
|
if plugins_shared_reqs[plugin_req]
|
||||||
assert(plugins_shared[plugin_req], '@0@ required @1@ but is not available'.format(plugin_name, plugin_req))
|
plugins_shared += {plugin_req: true}
|
||||||
if not enable_plugins_shared.contains(plugin_req)
|
else
|
||||||
enable_plugins_shared += [plugin_req]
|
assert(plugin_opt.enabled(), '@0@ required @1@ but is not available'.format(plugin_name, plugin_req))
|
||||||
|
plugin_enabled = false
|
||||||
|
break
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
endif
|
endif
|
||||||
|
plugins_options += {plugin_name: plugin_enabled}
|
||||||
endforeach
|
endforeach
|
||||||
endif
|
|
||||||
|
|
||||||
version_conf = {
|
version_conf = {
|
||||||
'MM_MAJOR_VERSION': mm_major_version,
|
'MM_MAJOR_VERSION': mm_major_version,
|
||||||
@@ -397,57 +404,9 @@ summary({
|
|||||||
'at command via dbus': enable_at_command_via_dbus,
|
'at command via dbus': enable_at_command_via_dbus,
|
||||||
}, section: 'Features')
|
}, section: 'Features')
|
||||||
|
|
||||||
summary({
|
summary(plugins_shared, section: 'Shared utils')
|
||||||
'foxconn': enable_plugins_shared.contains('foxconn'),
|
|
||||||
'icera': enable_plugins_shared.contains('icera'),
|
|
||||||
'novatel': enable_plugins_shared.contains('novatel'),
|
|
||||||
'option': enable_plugins_shared.contains('option'),
|
|
||||||
'sierra': enable_plugins_shared.contains('sierra'),
|
|
||||||
'telit': enable_plugins_shared.contains('telit'),
|
|
||||||
'xmm': enable_plugins_shared.contains('xmm'),
|
|
||||||
}, section: 'Shared utils')
|
|
||||||
|
|
||||||
summary({
|
summary(plugins_options, section: 'Plugins')
|
||||||
'altair-lte': enable_plugins.contains('altair-lte'),
|
|
||||||
'anydata': enable_plugins.contains('anydata'),
|
|
||||||
'broadmobi': enable_plugins.contains('broadmobi'),
|
|
||||||
'cinterion': enable_plugins.contains('cinterion'),
|
|
||||||
'dell': enable_plugins.contains('dell'),
|
|
||||||
'dlink': enable_plugins.contains('dlink'),
|
|
||||||
'fibocom': enable_plugins.contains('fibocom'),
|
|
||||||
'foxconn': enable_plugins.contains('foxconn'),
|
|
||||||
'generic': enable_plugins.contains('generic'),
|
|
||||||
'gosuncn': enable_plugins.contains('gosuncn'),
|
|
||||||
'haier': enable_plugins.contains('haier'),
|
|
||||||
'huawei': enable_plugins.contains('huawei'),
|
|
||||||
'iridium': enable_plugins.contains('iridium'),
|
|
||||||
'linktop': enable_plugins.contains('linktop'),
|
|
||||||
'longcheer': enable_plugins.contains('longcheer'),
|
|
||||||
'mbm': enable_plugins.contains('mbm'),
|
|
||||||
'motorola': enable_plugins.contains('motorola'),
|
|
||||||
'mtk': enable_plugins.contains('mtk'),
|
|
||||||
'nokia': enable_plugins.contains('nokia'),
|
|
||||||
'nokia-icera': enable_plugins.contains('nokia-icera'),
|
|
||||||
'novatel': enable_plugins.contains('novatel'),
|
|
||||||
'novatel-lte': enable_plugins.contains('novatel-lte'),
|
|
||||||
'option': enable_plugins.contains('option'),
|
|
||||||
'option-hso': enable_plugins.contains('option-hso'),
|
|
||||||
'pantech': enable_plugins.contains('pantech'),
|
|
||||||
'qcom-soc': enable_plugins.contains('qcom-soc'),
|
|
||||||
'quectel': enable_plugins.contains('quectel'),
|
|
||||||
'samsung': enable_plugins.contains('samsung'),
|
|
||||||
'sierra': enable_plugins.contains('sierra'),
|
|
||||||
'sierra-legacy': enable_plugins.contains('sierra-legacy'),
|
|
||||||
'simtech': enable_plugins.contains('simtech'),
|
|
||||||
'telit': enable_plugins.contains('telit'),
|
|
||||||
'thuraya': enable_plugins.contains('thuraya'),
|
|
||||||
'tplink': enable_plugins.contains('tplink'),
|
|
||||||
'ublox': enable_plugins.contains('ublox'),
|
|
||||||
'via': enable_plugins.contains('via'),
|
|
||||||
'wavecom': enable_plugins.contains('wavecom'),
|
|
||||||
'x22x': enable_plugins.contains('x22x'),
|
|
||||||
'zte': enable_plugins.contains('zte'),
|
|
||||||
}, section: 'Plugins')
|
|
||||||
|
|
||||||
summary({
|
summary({
|
||||||
'gobject introspection': enable_gir,
|
'gobject introspection': enable_gir,
|
||||||
|
@@ -20,75 +20,73 @@ option('qrtr', type: 'feature', value: 'auto', description: 'enable QRTR support
|
|||||||
|
|
||||||
option('dist_version', type: 'string', value: '', description: 'define the custom version (like distribution package name and revision')
|
option('dist_version', type: 'string', value: '', description: 'define the custom version (like distribution package name and revision')
|
||||||
|
|
||||||
option('plugin_disable_all', type: 'boolean', value: false, description: 'disable all plugin support')
|
option('plugin_generic', type: 'feature', value: 'auto', description: 'enable generic plugin support')
|
||||||
|
option('plugin_altair_lte', type: 'feature', value: 'auto', description: 'enable altair lte plugin support')
|
||||||
option('plugin_generic', type: 'boolean', value: true, description: 'enable generic plugin support')
|
option('plugin_anydata', type: 'feature', value: 'auto', description: 'enable anydata plugin support')
|
||||||
option('plugin_altair_lte', type: 'boolean', value: true, description: 'enable altair lte plugin support')
|
option('plugin_broadmobi', type: 'feature', value: 'auto', description: 'enable broadmobi plugin support')
|
||||||
option('plugin_anydata', type: 'boolean', value: true, description: 'enable anydata plugin support')
|
option('plugin_cinterion', type: 'feature', value: 'auto', description: 'enable cinterion plugin support')
|
||||||
option('plugin_broadmobi', type: 'boolean', value: true, description: 'enable broadmobi plugin support')
|
|
||||||
option('plugin_cinterion', type: 'boolean', value: true, description: 'enable cinterion plugin support')
|
|
||||||
|
|
||||||
# shared_sierra, shared_novatel, shared_xmm, shared_telit, shared_foxonn
|
# shared_sierra, shared_novatel, shared_xmm, shared_telit, shared_foxonn
|
||||||
option('plugin_dell', type: 'boolean', value: true, description: 'enable dell plugin support')
|
option('plugin_dell', type: 'feature', value: 'auto', description: 'enable dell plugin support')
|
||||||
|
|
||||||
option('plugin_dlink', type: 'boolean', value: true, description: 'enable dlink plugin support')
|
option('plugin_dlink', type: 'feature', value: 'auto', description: 'enable dlink plugin support')
|
||||||
|
|
||||||
# shared_xmm
|
# shared_xmm
|
||||||
option('plugin_fibocom', type: 'boolean', value: true, description: 'enable fibocom plugin support')
|
option('plugin_fibocom', type: 'feature', value: 'auto', description: 'enable fibocom plugin support')
|
||||||
|
|
||||||
# shared_foxconn
|
# shared_foxconn
|
||||||
option('plugin_foxconn', type: 'boolean', value: true, description: 'enable foxconn plugin support')
|
option('plugin_foxconn', type: 'feature', value: 'auto', description: 'enable foxconn plugin support')
|
||||||
option('plugin_gosuncn', type: 'boolean', value: true, description: 'enable gosuncn plugin support')
|
option('plugin_gosuncn', type: 'feature', value: 'auto', description: 'enable gosuncn plugin support')
|
||||||
option('plugin_haier', type: 'boolean', value: true, description: 'enable haier plugin support')
|
option('plugin_haier', type: 'feature', value: 'auto', description: 'enable haier plugin support')
|
||||||
option('plugin_huawei', type: 'boolean', value: true, description: 'enable huawei plugin support')
|
option('plugin_huawei', type: 'feature', value: 'auto', description: 'enable huawei plugin support')
|
||||||
option('plugin_iridium', type: 'boolean', value: true, description: 'enable iridium plugin support')
|
option('plugin_iridium', type: 'feature', value: 'auto', description: 'enable iridium plugin support')
|
||||||
option('plugin_linktop', type: 'boolean', value: true, description: 'enable linktop plugin support')
|
option('plugin_linktop', type: 'feature', value: 'auto', description: 'enable linktop plugin support')
|
||||||
option('plugin_longcheer', type: 'boolean', value: true, description: 'enable longcheer plugin support')
|
option('plugin_longcheer', type: 'feature', value: 'auto', description: 'enable longcheer plugin support')
|
||||||
option('plugin_mbm', type: 'boolean', value: true, description: 'enable mbm plugin support')
|
option('plugin_mbm', type: 'feature', value: 'auto', description: 'enable mbm plugin support')
|
||||||
option('plugin_motorola', type: 'boolean', value: true, description: 'enable motorola plugin support')
|
option('plugin_motorola', type: 'feature', value: 'auto', description: 'enable motorola plugin support')
|
||||||
option('plugin_mtk', type: 'boolean', value: true, description: 'enable mtk plugin support')
|
option('plugin_mtk', type: 'feature', value: 'auto', description: 'enable mtk plugin support')
|
||||||
option('plugin_nokia', type: 'boolean', value: true, description: 'enable nokia plugin support')
|
option('plugin_nokia', type: 'feature', value: 'auto', description: 'enable nokia plugin support')
|
||||||
|
|
||||||
# shared_icera
|
# shared_icera
|
||||||
option('plugin_nokia_icera', type: 'boolean', value: true, description: 'enable nokia icera plugin support')
|
option('plugin_nokia_icera', type: 'feature', value: 'auto', description: 'enable nokia icera plugin support')
|
||||||
|
|
||||||
# shared_novatel
|
# shared_novatel
|
||||||
option('plugin_novatel', type: 'boolean', value: true, description: 'enable novatel plugin support')
|
option('plugin_novatel', type: 'feature', value: 'auto', description: 'enable novatel plugin support')
|
||||||
option('plugin_novatel_lte', type: 'boolean', value: true, description: 'enable novatel lte plugin support')
|
option('plugin_novatel_lte', type: 'feature', value: 'auto', description: 'enable novatel lte plugin support')
|
||||||
|
|
||||||
# shared_option
|
# shared_option
|
||||||
option('plugin_option', type: 'boolean', value: true, description: 'enable option plugin support')
|
option('plugin_option', type: 'feature', value: 'auto', description: 'enable option plugin support')
|
||||||
|
|
||||||
# shared_option
|
# shared_option
|
||||||
option('plugin_option_hso', type: 'boolean', value: true, description: 'enable option hso plugin support')
|
option('plugin_option_hso', type: 'feature', value: 'auto', description: 'enable option hso plugin support')
|
||||||
option('plugin_pantech', type: 'boolean', value: true, description: 'enable pantech plugin support')
|
option('plugin_pantech', type: 'feature', value: 'auto', description: 'enable pantech plugin support')
|
||||||
|
|
||||||
option('plugin_qcom_soc', type: 'boolean', value: true, description: 'enable qcom soc plugin support')
|
option('plugin_qcom_soc', type: 'feature', value: 'auto', description: 'enable qcom soc plugin support')
|
||||||
option('plugin_quectel', type: 'boolean', value: true, description: 'enable quectel plugin support')
|
option('plugin_quectel', type: 'feature', value: 'auto', description: 'enable quectel plugin support')
|
||||||
|
|
||||||
# shared_icera
|
# shared_icera
|
||||||
option('plugin_samsung', type: 'boolean', value: true, description: 'enable samsung plugin support')
|
option('plugin_samsung', type: 'feature', value: 'auto', description: 'enable samsung plugin support')
|
||||||
|
|
||||||
# shared_icera, shared_sierra
|
# shared_icera, shared_sierra
|
||||||
option('plugin_sierra_legacy', type: 'boolean', value: true, description: 'enable sierra legacy plugin support')
|
option('plugin_sierra_legacy', type: 'feature', value: 'auto', description: 'enable sierra legacy plugin support')
|
||||||
|
|
||||||
# shared_xmm
|
# shared_xmm
|
||||||
option('plugin_sierra', type: 'boolean', value: true, description: 'enable sierra plugin support')
|
option('plugin_sierra', type: 'feature', value: 'auto', description: 'enable sierra plugin support')
|
||||||
option('plugin_simtech', type: 'boolean', value: true, description: 'enable simtech plugin support')
|
option('plugin_simtech', type: 'feature', value: 'auto', description: 'enable simtech plugin support')
|
||||||
|
|
||||||
# shared_telit
|
# shared_telit
|
||||||
option('plugin_telit', type: 'boolean', value: true, description: 'enable telit plugin support')
|
option('plugin_telit', type: 'feature', value: 'auto', description: 'enable telit plugin support')
|
||||||
option('plugin_thuraya', type: 'boolean', value: true, description: 'enable thuraya plugin support')
|
option('plugin_thuraya', type: 'feature', value: 'auto', description: 'enable thuraya plugin support')
|
||||||
option('plugin_tplink', type: 'boolean', value: true, description: 'enable tplink plugin support')
|
option('plugin_tplink', type: 'feature', value: 'auto', description: 'enable tplink plugin support')
|
||||||
option('plugin_ublox', type: 'boolean', value: true, description: 'enable ublox plugin support')
|
option('plugin_ublox', type: 'feature', value: 'auto', description: 'enable ublox plugin support')
|
||||||
option('plugin_via', type: 'boolean', value: true, description: 'enable via plugin support')
|
option('plugin_via', type: 'feature', value: 'auto', description: 'enable via plugin support')
|
||||||
option('plugin_wavecom', type: 'boolean', value: true, description: 'enable wavecom plugin support')
|
option('plugin_wavecom', type: 'feature', value: 'auto', description: 'enable wavecom plugin support')
|
||||||
option('plugin_x22x', type: 'boolean', value: true, description: 'enable x22x plugin support')
|
option('plugin_x22x', type: 'feature', value: 'auto', description: 'enable x22x plugin support')
|
||||||
|
|
||||||
# shared_icera
|
# shared_icera
|
||||||
option('plugin_zte', type: 'boolean', value: true, description: 'enable zte plugin support')
|
option('plugin_zte', type: 'feature', value: 'auto', description: 'enable zte plugin support')
|
||||||
|
|
||||||
option('qcdm_standalone', type: 'boolean', value: true, description: 'enable standalone qdcm')
|
option('qcdm_standalone', type: 'feature', value: 'auto', description: 'enable standalone qdcm')
|
||||||
|
|
||||||
option('introspection', type: 'feature', value: 'auto', description: 'build introspection support')
|
option('introspection', type: 'feature', value: 'auto', description: 'build introspection support')
|
||||||
option('vapi', type: 'boolean', value: false, description: 'build vala bindings')
|
option('vapi', type: 'boolean', value: false, description: 'build vala bindings')
|
||||||
|
@@ -49,7 +49,7 @@ plugins_deps = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
# Common Foxconn modem support library (MBIM only)
|
# Common Foxconn modem support library (MBIM only)
|
||||||
if enable_plugins_shared.contains('foxconn')
|
if plugins_shared['foxconn']
|
||||||
foxconn_inc = include_directories('foxconn')
|
foxconn_inc = include_directories('foxconn')
|
||||||
|
|
||||||
sources = files(
|
sources = files(
|
||||||
@@ -69,7 +69,7 @@ if enable_plugins_shared.contains('foxconn')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# common icera support
|
# common icera support
|
||||||
if enable_plugins_shared.contains('icera')
|
if plugins_shared['icera']
|
||||||
icera_inc = include_directories('icera')
|
icera_inc = include_directories('icera')
|
||||||
|
|
||||||
common_c_args = '-DMM_MODULE_NAME="shared-icera"'
|
common_c_args = '-DMM_MODULE_NAME="shared-icera"'
|
||||||
@@ -89,7 +89,7 @@ if enable_plugins_shared.contains('icera')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# common novatel support
|
# common novatel support
|
||||||
if enable_plugins_shared.contains('novatel')
|
if plugins_shared['novatel']
|
||||||
novatel_inc = include_directories('novatel')
|
novatel_inc = include_directories('novatel')
|
||||||
|
|
||||||
sources = files(
|
sources = files(
|
||||||
@@ -105,7 +105,7 @@ if enable_plugins_shared.contains('novatel')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# common option support
|
# common option support
|
||||||
if enable_plugins_shared.contains('option')
|
if plugins_shared['option']
|
||||||
sources = files(
|
sources = files(
|
||||||
'option/mm-broadband-modem-option.c',
|
'option/mm-broadband-modem-option.c',
|
||||||
'option/mm-shared.c',
|
'option/mm-shared.c',
|
||||||
@@ -120,7 +120,7 @@ if enable_plugins_shared.contains('option')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# common sierra support
|
# common sierra support
|
||||||
if enable_plugins_shared.contains('sierra')
|
if plugins_shared['sierra']
|
||||||
sierra_inc = include_directories('sierra')
|
sierra_inc = include_directories('sierra')
|
||||||
|
|
||||||
common_c_args = '-DMM_MODULE_NAME="shared-sierra"'
|
common_c_args = '-DMM_MODULE_NAME="shared-sierra"'
|
||||||
@@ -142,7 +142,7 @@ if enable_plugins_shared.contains('sierra')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# common telit support
|
# common telit support
|
||||||
if enable_plugins_shared.contains('telit')
|
if plugins_shared['telit']
|
||||||
telit_inc = include_directories('telit')
|
telit_inc = include_directories('telit')
|
||||||
|
|
||||||
common_c_args = '-DMM_MODULE_NAME="shared-telit"'
|
common_c_args = '-DMM_MODULE_NAME="shared-telit"'
|
||||||
@@ -186,7 +186,7 @@ if enable_plugins_shared.contains('telit')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# common xmm support
|
# common xmm support
|
||||||
if enable_plugins_shared.contains('xmm')
|
if plugins_shared['xmm']
|
||||||
xmm_inc = include_directories('xmm')
|
xmm_inc = include_directories('xmm')
|
||||||
|
|
||||||
common_c_args = '-DMM_MODULE_NAME="shared-xmm"'
|
common_c_args = '-DMM_MODULE_NAME="shared-xmm"'
|
||||||
@@ -210,7 +210,7 @@ if enable_plugins_shared.contains('xmm')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: altair lte
|
# plugin: altair lte
|
||||||
if enable_plugins.contains('altair-lte')
|
if plugins_options['altair-lte']
|
||||||
common_c_args = '-DMM_MODULE_NAME="altair-lte"'
|
common_c_args = '-DMM_MODULE_NAME="altair-lte"'
|
||||||
|
|
||||||
sources = files(
|
sources = files(
|
||||||
@@ -228,7 +228,7 @@ if enable_plugins.contains('altair-lte')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: anydata
|
# plugin: anydata
|
||||||
if enable_plugins.contains('anydata')
|
if plugins_options['anydata']
|
||||||
sources = files(
|
sources = files(
|
||||||
'anydata/mm-broadband-modem-anydata.c',
|
'anydata/mm-broadband-modem-anydata.c',
|
||||||
'anydata/mm-plugin-anydata.c',
|
'anydata/mm-plugin-anydata.c',
|
||||||
@@ -241,7 +241,7 @@ if enable_plugins.contains('anydata')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: broadmobi
|
# plugin: broadmobi
|
||||||
if enable_plugins.contains('broadmobi')
|
if plugins_options['broadmobi']
|
||||||
c_args = [
|
c_args = [
|
||||||
'-DMM_MODULE_NAME="broadmobi"',
|
'-DMM_MODULE_NAME="broadmobi"',
|
||||||
'-DTESTUDEVRULESDIR_BROADMOBI="@0@"'.format(plugins_dir / 'broadmobi'),
|
'-DTESTUDEVRULESDIR_BROADMOBI="@0@"'.format(plugins_dir / 'broadmobi'),
|
||||||
@@ -256,7 +256,7 @@ if enable_plugins.contains('broadmobi')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: cinterion (previously siemens)
|
# plugin: cinterion (previously siemens)
|
||||||
if enable_plugins.contains('cinterion')
|
if plugins_options['cinterion']
|
||||||
common_c_args = [
|
common_c_args = [
|
||||||
'-DMM_MODULE_NAME="cinterion"',
|
'-DMM_MODULE_NAME="cinterion"',
|
||||||
'-DTESTUDEVRULESDIR_CINTERION="@0@"'.format(plugins_dir / 'cinterion'),
|
'-DTESTUDEVRULESDIR_CINTERION="@0@"'.format(plugins_dir / 'cinterion'),
|
||||||
@@ -288,7 +288,7 @@ if enable_plugins.contains('cinterion')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: dell
|
# plugin: dell
|
||||||
if enable_plugins.contains('dell')
|
if plugins_options['dell']
|
||||||
incs = plugins_incs + [
|
incs = plugins_incs + [
|
||||||
foxconn_inc,
|
foxconn_inc,
|
||||||
novatel_inc,
|
novatel_inc,
|
||||||
@@ -311,7 +311,7 @@ if enable_plugins.contains('dell')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: dlink
|
# plugin: dlink
|
||||||
if enable_plugins.contains('dlink')
|
if plugins_options['dlink']
|
||||||
c_args = [
|
c_args = [
|
||||||
'-DMM_MODULE_NAME="d-link"',
|
'-DMM_MODULE_NAME="d-link"',
|
||||||
'-DTESTUDEVRULESDIR_DLINK="@0@"'.format(plugins_dir / 'dlink'),
|
'-DTESTUDEVRULESDIR_DLINK="@0@"'.format(plugins_dir / 'dlink'),
|
||||||
@@ -326,7 +326,7 @@ if enable_plugins.contains('dlink')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: fibocom
|
# plugin: fibocom
|
||||||
if enable_plugins.contains('fibocom')
|
if plugins_options['fibocom']
|
||||||
c_args = [
|
c_args = [
|
||||||
'-DMM_MODULE_NAME="fibocom"',
|
'-DMM_MODULE_NAME="fibocom"',
|
||||||
'-DTESTUDEVRULESDIR_FIBOCOM="@0@"'.format(plugins_dir / 'fibocom'),
|
'-DTESTUDEVRULESDIR_FIBOCOM="@0@"'.format(plugins_dir / 'fibocom'),
|
||||||
@@ -341,7 +341,7 @@ if enable_plugins.contains('fibocom')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: foxconn
|
# plugin: foxconn
|
||||||
if enable_plugins.contains('foxconn')
|
if plugins_options['foxconn']
|
||||||
foxconn_dir = plugins_dir / 'foxconn'
|
foxconn_dir = plugins_dir / 'foxconn'
|
||||||
|
|
||||||
c_args = [
|
c_args = [
|
||||||
@@ -364,7 +364,7 @@ if enable_plugins.contains('foxconn')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: generic
|
# plugin: generic
|
||||||
if enable_plugins.contains('generic')
|
if plugins_options['generic']
|
||||||
# FIXME
|
# FIXME
|
||||||
'''
|
'''
|
||||||
15/16 test-service-generic FAIL 0.02s killed by signal 5 SIGTRAP
|
15/16 test-service-generic FAIL 0.02s killed by signal 5 SIGTRAP
|
||||||
@@ -391,7 +391,7 @@ if enable_plugins.contains('generic')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: gosuncn
|
# plugin: gosuncn
|
||||||
if enable_plugins.contains('gosuncn')
|
if plugins_options['gosuncn']
|
||||||
c_args = [
|
c_args = [
|
||||||
'-DMM_MODULE_NAME="gosuncn"',
|
'-DMM_MODULE_NAME="gosuncn"',
|
||||||
'-DTESTUDEVRULESDIR_GOSUNCN="@0@"'.format(plugins_dir / 'gosuncn'),
|
'-DTESTUDEVRULESDIR_GOSUNCN="@0@"'.format(plugins_dir / 'gosuncn'),
|
||||||
@@ -406,7 +406,7 @@ if enable_plugins.contains('gosuncn')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: haier
|
# plugin: haier
|
||||||
if enable_plugins.contains('haier')
|
if plugins_options['haier']
|
||||||
c_args = [
|
c_args = [
|
||||||
'-DMM_MODULE_NAME="haier"',
|
'-DMM_MODULE_NAME="haier"',
|
||||||
'-DTESTUDEVRULESDIR_HAIER="@0@"'.format(plugins_dir / 'haier'),
|
'-DTESTUDEVRULESDIR_HAIER="@0@"'.format(plugins_dir / 'haier'),
|
||||||
@@ -421,7 +421,7 @@ if enable_plugins.contains('haier')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: huawei
|
# plugin: huawei
|
||||||
if enable_plugins.contains('huawei')
|
if plugins_options['huawei']
|
||||||
huawei_inc = include_directories('huawei')
|
huawei_inc = include_directories('huawei')
|
||||||
|
|
||||||
common_c_args = ['-DTESTUDEVRULESDIR_HUAWEI="@0@"'.format(plugins_dir / 'huawei')]
|
common_c_args = ['-DTESTUDEVRULESDIR_HUAWEI="@0@"'.format(plugins_dir / 'huawei')]
|
||||||
@@ -464,7 +464,7 @@ if enable_plugins.contains('huawei')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: iridium
|
# plugin: iridium
|
||||||
if enable_plugins.contains('iridium')
|
if plugins_options['iridium']
|
||||||
sources = files(
|
sources = files(
|
||||||
'iridium/mm-bearer-iridium.c',
|
'iridium/mm-bearer-iridium.c',
|
||||||
'iridium/mm-broadband-modem-iridium.c',
|
'iridium/mm-broadband-modem-iridium.c',
|
||||||
@@ -479,7 +479,7 @@ if enable_plugins.contains('iridium')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: linktop
|
# plugin: linktop
|
||||||
if enable_plugins.contains('linktop')
|
if plugins_options['linktop']
|
||||||
common_c_args = '-DMM_MODULE_NAME="linktop"'
|
common_c_args = '-DMM_MODULE_NAME="linktop"'
|
||||||
|
|
||||||
sources = files(
|
sources = files(
|
||||||
@@ -496,7 +496,7 @@ if enable_plugins.contains('linktop')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: longcheer (and rebranded dongles)
|
# plugin: longcheer (and rebranded dongles)
|
||||||
if enable_plugins.contains('longcheer')
|
if plugins_options['longcheer']
|
||||||
sources = files(
|
sources = files(
|
||||||
'longcheer/mm-broadband-modem-longcheer.c',
|
'longcheer/mm-broadband-modem-longcheer.c',
|
||||||
'longcheer/mm-plugin-longcheer.c',
|
'longcheer/mm-plugin-longcheer.c',
|
||||||
@@ -516,7 +516,7 @@ if enable_plugins.contains('longcheer')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: ericsson mbm
|
# plugin: ericsson mbm
|
||||||
if enable_plugins.contains('mbm')
|
if plugins_options['mbm']
|
||||||
common_c_args = ['-DTESTUDEVRULESDIR_MBM="@0@"'.format(plugins_dir / 'mbm')]
|
common_c_args = ['-DTESTUDEVRULESDIR_MBM="@0@"'.format(plugins_dir / 'mbm')]
|
||||||
|
|
||||||
sources = files(
|
sources = files(
|
||||||
@@ -537,7 +537,7 @@ if enable_plugins.contains('mbm')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: motorola
|
# plugin: motorola
|
||||||
if enable_plugins.contains('motorola')
|
if plugins_options['motorola']
|
||||||
sources = files(
|
sources = files(
|
||||||
'motorola/mm-broadband-modem-motorola.c',
|
'motorola/mm-broadband-modem-motorola.c',
|
||||||
'motorola/mm-plugin-motorola.c',
|
'motorola/mm-plugin-motorola.c',
|
||||||
@@ -550,7 +550,7 @@ if enable_plugins.contains('motorola')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: mtk
|
# plugin: mtk
|
||||||
if enable_plugins.contains('mtk')
|
if plugins_options['mtk']
|
||||||
sources = files(
|
sources = files(
|
||||||
'mtk/mm-broadband-modem-mtk.c',
|
'mtk/mm-broadband-modem-mtk.c',
|
||||||
'mtk/mm-plugin-mtk.c',
|
'mtk/mm-plugin-mtk.c',
|
||||||
@@ -570,7 +570,7 @@ if enable_plugins.contains('mtk')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: nokia
|
# plugin: nokia
|
||||||
if enable_plugins.contains('nokia')
|
if plugins_options['nokia']
|
||||||
sources = files(
|
sources = files(
|
||||||
'nokia/mm-broadband-modem-nokia.c',
|
'nokia/mm-broadband-modem-nokia.c',
|
||||||
'nokia/mm-plugin-nokia.c',
|
'nokia/mm-plugin-nokia.c',
|
||||||
@@ -584,7 +584,7 @@ if enable_plugins.contains('nokia')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: nokia (icera)
|
# plugin: nokia (icera)
|
||||||
if enable_plugins.contains('nokia-icera')
|
if plugins_options['nokia-icera']
|
||||||
c_args = [
|
c_args = [
|
||||||
'-DMM_MODULE_NAME="nokia-icera"',
|
'-DMM_MODULE_NAME="nokia-icera"',
|
||||||
'-DTESTUDEVRULESDIR_NOKIA_ICERA="@0@"'.format(plugins_dir / 'nokia'),
|
'-DTESTUDEVRULESDIR_NOKIA_ICERA="@0@"'.format(plugins_dir / 'nokia'),
|
||||||
@@ -599,7 +599,7 @@ if enable_plugins.contains('nokia-icera')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: novatel non-lte
|
# plugin: novatel non-lte
|
||||||
if enable_plugins.contains('novatel')
|
if plugins_options['novatel']
|
||||||
plugins += {'plugin-novatel': {
|
plugins += {'plugin-novatel': {
|
||||||
'plugin': true,
|
'plugin': true,
|
||||||
'module': {'sources': files('novatel/mm-plugin-novatel.c'), 'include_directories': plugins_incs, 'c_args': '-DMM_MODULE_NAME="novatel"'},
|
'module': {'sources': files('novatel/mm-plugin-novatel.c'), 'include_directories': plugins_incs, 'c_args': '-DMM_MODULE_NAME="novatel"'},
|
||||||
@@ -607,7 +607,7 @@ if enable_plugins.contains('novatel')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: novatel lte
|
# plugin: novatel lte
|
||||||
if enable_plugins.contains('novatel-lte')
|
if plugins_options['novatel-lte']
|
||||||
sources = files(
|
sources = files(
|
||||||
'novatel/mm-plugin-novatel-lte.c',
|
'novatel/mm-plugin-novatel-lte.c',
|
||||||
'novatel/mm-broadband-modem-novatel-lte.c',
|
'novatel/mm-broadband-modem-novatel-lte.c',
|
||||||
@@ -622,7 +622,7 @@ if enable_plugins.contains('novatel-lte')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: option
|
# plugin: option
|
||||||
if enable_plugins.contains('option')
|
if plugins_options['option']
|
||||||
plugins += {'plugin-option': {
|
plugins += {'plugin-option': {
|
||||||
'plugin': true,
|
'plugin': true,
|
||||||
'module': {'sources': files('option/mm-plugin-option.c'), 'include_directories': plugins_incs, 'c_args': '-DMM_MODULE_NAME="option"'},
|
'module': {'sources': files('option/mm-plugin-option.c'), 'include_directories': plugins_incs, 'c_args': '-DMM_MODULE_NAME="option"'},
|
||||||
@@ -630,7 +630,7 @@ if enable_plugins.contains('option')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: option hso
|
# plugin: option hso
|
||||||
if enable_plugins.contains('option-hso')
|
if plugins_options['option-hso']
|
||||||
sources = files(
|
sources = files(
|
||||||
'option/mm-plugin-hso.c',
|
'option/mm-plugin-hso.c',
|
||||||
'option/mm-broadband-bearer-hso.c',
|
'option/mm-broadband-bearer-hso.c',
|
||||||
@@ -644,7 +644,7 @@ if enable_plugins.contains('option-hso')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: pantech
|
# plugin: pantech
|
||||||
if enable_plugins.contains('pantech')
|
if plugins_options['pantech']
|
||||||
sources = files(
|
sources = files(
|
||||||
'pantech/mm-broadband-modem-pantech.c',
|
'pantech/mm-broadband-modem-pantech.c',
|
||||||
'pantech/mm-plugin-pantech.c',
|
'pantech/mm-plugin-pantech.c',
|
||||||
@@ -658,7 +658,7 @@ if enable_plugins.contains('pantech')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: qcom-soc
|
# plugin: qcom-soc
|
||||||
if enable_plugins.contains('qcom-soc')
|
if plugins_options['qcom-soc']
|
||||||
sources = files(
|
sources = files(
|
||||||
'qcom-soc/mm-broadband-modem-qmi-qcom-soc.c',
|
'qcom-soc/mm-broadband-modem-qmi-qcom-soc.c',
|
||||||
'qcom-soc/mm-plugin-qcom-soc.c',
|
'qcom-soc/mm-plugin-qcom-soc.c',
|
||||||
@@ -678,7 +678,7 @@ if enable_plugins.contains('qcom-soc')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: quectel
|
# plugin: quectel
|
||||||
if enable_plugins.contains('quectel')
|
if plugins_options['quectel']
|
||||||
common_c_args = ['-DTESTUDEVRULESDIR_QUECTEL="@0@"'.format(plugins_dir / 'quectel')]
|
common_c_args = ['-DTESTUDEVRULESDIR_QUECTEL="@0@"'.format(plugins_dir / 'quectel')]
|
||||||
|
|
||||||
sources = files(
|
sources = files(
|
||||||
@@ -706,7 +706,7 @@ if enable_plugins.contains('quectel')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: samsung
|
# plugin: samsung
|
||||||
if enable_plugins.contains('samsung')
|
if plugins_options['samsung']
|
||||||
sources = files(
|
sources = files(
|
||||||
'samsung/mm-broadband-modem-samsung.c',
|
'samsung/mm-broadband-modem-samsung.c',
|
||||||
'samsung/mm-plugin-samsung.c',
|
'samsung/mm-plugin-samsung.c',
|
||||||
@@ -719,7 +719,7 @@ if enable_plugins.contains('samsung')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: sierra (legacy)
|
# plugin: sierra (legacy)
|
||||||
if enable_plugins.contains('sierra-legacy')
|
if plugins_options['sierra-legacy']
|
||||||
sources = files(
|
sources = files(
|
||||||
'sierra/mm-broadband-modem-sierra-icera.c',
|
'sierra/mm-broadband-modem-sierra-icera.c',
|
||||||
'sierra/mm-plugin-sierra-legacy.c',
|
'sierra/mm-plugin-sierra-legacy.c',
|
||||||
@@ -732,7 +732,7 @@ if enable_plugins.contains('sierra-legacy')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: sierra (new QMI or MBIM modems)
|
# plugin: sierra (new QMI or MBIM modems)
|
||||||
if enable_plugins.contains('sierra')
|
if plugins_options['sierra']
|
||||||
plugins += {'plugin-sierra': {
|
plugins += {'plugin-sierra': {
|
||||||
'plugin': true,
|
'plugin': true,
|
||||||
'module': {'sources': files('sierra/mm-plugin-sierra.c'), 'include_directories': plugins_incs + [xmm_inc], 'c_args': '-DMM_MODULE_NAME="sierra"'},
|
'module': {'sources': files('sierra/mm-plugin-sierra.c'), 'include_directories': plugins_incs + [xmm_inc], 'c_args': '-DMM_MODULE_NAME="sierra"'},
|
||||||
@@ -742,7 +742,7 @@ if enable_plugins.contains('sierra')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: simtech
|
# plugin: simtech
|
||||||
if enable_plugins.contains('simtech')
|
if plugins_options['simtech']
|
||||||
common_c_args = ['-DTESTUDEVRULESDIR_SIMTECH="@0@"'.format(plugins_dir / 'simtech')]
|
common_c_args = ['-DTESTUDEVRULESDIR_SIMTECH="@0@"'.format(plugins_dir / 'simtech')]
|
||||||
|
|
||||||
sources = files(
|
sources = files(
|
||||||
@@ -766,7 +766,7 @@ if enable_plugins.contains('simtech')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: telit
|
# plugin: telit
|
||||||
if enable_plugins.contains('telit')
|
if plugins_options['telit']
|
||||||
c_args = [
|
c_args = [
|
||||||
'-DMM_MODULE_NAME="telit"',
|
'-DMM_MODULE_NAME="telit"',
|
||||||
'-DTESTUDEVRULESDIR_TELIT="@0@"'.format(plugins_dir / 'telit'),
|
'-DTESTUDEVRULESDIR_TELIT="@0@"'.format(plugins_dir / 'telit'),
|
||||||
@@ -781,7 +781,7 @@ if enable_plugins.contains('telit')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: thuraya xt
|
# plugin: thuraya xt
|
||||||
if enable_plugins.contains('thuraya')
|
if plugins_options['thuraya']
|
||||||
common_c_args = ['-DMM_MODULE_NAME="thuraya"']
|
common_c_args = ['-DMM_MODULE_NAME="thuraya"']
|
||||||
|
|
||||||
sources = files(
|
sources = files(
|
||||||
@@ -798,7 +798,7 @@ if enable_plugins.contains('thuraya')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: tplink
|
# plugin: tplink
|
||||||
if enable_plugins.contains('tplink')
|
if plugins_options['tplink']
|
||||||
c_args = [
|
c_args = [
|
||||||
'-DMM_MODULE_NAME="tp-link"',
|
'-DMM_MODULE_NAME="tp-link"',
|
||||||
'-DTESTUDEVRULESDIR_TPLINK="@0@"'.format(plugins_dir / 'tplink'),
|
'-DTESTUDEVRULESDIR_TPLINK="@0@"'.format(plugins_dir / 'tplink'),
|
||||||
@@ -813,7 +813,7 @@ if enable_plugins.contains('tplink')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: u-blox
|
# plugin: u-blox
|
||||||
if enable_plugins.contains('ublox')
|
if plugins_options['ublox']
|
||||||
ublox_inc = include_directories('ublox')
|
ublox_inc = include_directories('ublox')
|
||||||
|
|
||||||
common_c_args = '-DMM_MODULE_NAME="u-blox"'
|
common_c_args = '-DMM_MODULE_NAME="u-blox"'
|
||||||
@@ -855,7 +855,7 @@ if enable_plugins.contains('ublox')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: via
|
# plugin: via
|
||||||
if enable_plugins.contains('via')
|
if plugins_options['via']
|
||||||
sources = files(
|
sources = files(
|
||||||
'via/mm-broadband-modem-via.c',
|
'via/mm-broadband-modem-via.c',
|
||||||
'via/mm-plugin-via.c',
|
'via/mm-plugin-via.c',
|
||||||
@@ -868,7 +868,7 @@ if enable_plugins.contains('via')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: wavecom (now sierra airlink)
|
# plugin: wavecom (now sierra airlink)
|
||||||
if enable_plugins.contains('wavecom')
|
if plugins_options['wavecom']
|
||||||
sources = files(
|
sources = files(
|
||||||
'wavecom/mm-broadband-modem-wavecom.c',
|
'wavecom/mm-broadband-modem-wavecom.c',
|
||||||
'wavecom/mm-plugin-wavecom.c',
|
'wavecom/mm-plugin-wavecom.c',
|
||||||
@@ -881,7 +881,7 @@ if enable_plugins.contains('wavecom')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: alcatel/TCT/JRD x220D and possibly others
|
# plugin: alcatel/TCT/JRD x220D and possibly others
|
||||||
if enable_plugins.contains('x22x')
|
if plugins_options['x22x']
|
||||||
sources = files(
|
sources = files(
|
||||||
'x22x/mm-broadband-modem-x22x.c',
|
'x22x/mm-broadband-modem-x22x.c',
|
||||||
'x22x/mm-plugin-x22x.c',
|
'x22x/mm-plugin-x22x.c',
|
||||||
@@ -901,7 +901,7 @@ if enable_plugins.contains('x22x')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# plugin: zte
|
# plugin: zte
|
||||||
if enable_plugins.contains('zte')
|
if plugins_options['zte']
|
||||||
sources = files(
|
sources = files(
|
||||||
'zte/mm-broadband-modem-zte.c',
|
'zte/mm-broadband-modem-zte.c',
|
||||||
'zte/mm-broadband-modem-zte-icera.c',
|
'zte/mm-broadband-modem-zte-icera.c',
|
||||||
|
Reference in New Issue
Block a user