Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

th/build_meson_on_travis #54

Merged
merged 9 commits into from Jan 10, 2018
8 changes: 4 additions & 4 deletions meson.build
Expand Up @@ -240,9 +240,9 @@ endif

enable_ifcfg_rh = get_option('ifcfg_rh') or (distro == 'redhat')
enable_ifupdown = get_option('ifupdown') or (distro == 'debian')
enable_ibft = get_option('ibft') or enable_ifcfg_rh

enable_config_plugin_ibft = get_option('config_plugin_ibft')
config_h.set10('WITH_SETTINGS_PLUGIN_IBFT', enable_config_plugin_ibft)
config_h.set10('WITH_SETTINGS_PLUGIN_IBFT', enable_ibft)

config_plugins_default = get_option('config_plugins_default')
if config_plugins_default == ''
Expand All @@ -256,7 +256,7 @@ if config_plugins_default == ''
config_plugins += ['ifupdown']
endif

if enable_config_plugin_ibft
if enable_ibft
config_plugins += ['ibft']
endif

Expand Down Expand Up @@ -981,7 +981,7 @@ output += ' libnm-glib: ' + enable_libnm_glib.to_string() + '\n'
output += ' nmcli: ' + enable_nmcli.to_string() + '\n'
output += ' nmtui: ' + enable_nmtui.to_string() + '\n'
output += '\nConfiguration_plugins (main.plugins=' + config_plugins_default + ')\n'
output += ' ibft: ' + enable_config_plugin_ibft.to_string() + '\n'
output += ' ibft: ' + enable_ibft.to_string() + '\n'
output += ' ifcfg-rh: ' + enable_ifcfg_rh.to_string() + '\n'
output += ' ifupdown: ' + enable_ifupdown.to_string() + '\n'
output += '\nHandlers for /etc/resolv.conf:\n'
Expand Down
2 changes: 1 addition & 1 deletion meson_options.txt
Expand Up @@ -44,7 +44,7 @@ option('bluez5_dun', type: 'boolean', value: false, description: 'enable Bluez5

# configuration plugins
option('config_plugins_default', type: 'string', value: '', description: 'Default configuration option for main.plugins setting, used as fallback if the configuration option is unset')
option('config_plugin_ibft', type: 'boolean', value: true, description: 'enable ibft configuration plugin')
option('ibft', type: 'boolean', value: false, description: 'enable ibft configuration plugin')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a couple whitespaces in front of type that would be nice to remove.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the white space is intentional, to vertically align with the neighbouring lines, that do something similar.

option('ifcfg_rh', type: 'boolean', value: false, description: 'enable ifcfg-rh configuration plugin (Fedora/RHEL)')
option('ifupdown', type: 'boolean', value: false, description: 'enable ifupdown configuration plugin (Debian/Ubuntu)')

Expand Down
8 changes: 4 additions & 4 deletions src/settings/plugins/meson.build
@@ -1,5 +1,5 @@
if enable_tests
subdir('keyfile/tests')
if enable_ibft
subdir('ibft')
endif

if enable_ifcfg_rh
Expand All @@ -10,6 +10,6 @@ if enable_ifupdown
subdir('ifupdown')
endif

if enable_config_plugin_ibft
subdir('ibft')
if enable_tests
subdir('keyfile/tests')
endif