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