diff --git a/data/remotes.d/meson.build b/data/remotes.d/meson.build index 598dd3555..69d3ef97c 100644 --- a/data/remotes.d/meson.build +++ b/data/remotes.d/meson.build @@ -1,9 +1,12 @@ -install_data([ - 'lvfs.conf', - 'lvfs-testing.conf', - ], - install_dir : join_paths(get_option('sysconfdir'), 'fwupd', 'remotes.d') -) +if get_option('enable-lvfs') + install_data([ + 'lvfs.conf', + 'lvfs-testing.conf', + ], + install_dir : join_paths(get_option('sysconfdir'), 'fwupd', 'remotes.d') + ) +endif + install_data('README.md', install_dir : join_paths(get_option('datadir'), 'fwupd', 'remotes.d', 'vendor', 'firmware') ) diff --git a/meson_options.txt b/meson_options.txt index c256cb79f..e7fc34d8a 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -2,6 +2,7 @@ option('enable-doc', type : 'boolean', value : true, description : 'enable devel option('enable-introspection', type : 'boolean', value : true, description : 'generate GObject Introspection data') option('enable-man', type : 'boolean', value : true, description : 'enable man pages') option('enable-tests', type : 'boolean', value : true, description : 'enable tests') +option('enable-lvfs', type : 'boolean', value : true, description : 'enable LVFS remotes') option('enable-colorhug', type : 'boolean', value : true, description : 'enable ColorHug support') option('enable-libelf', type : 'boolean', value : true, description : 'enable libelf support') option('enable-uefi', type : 'boolean', value : true, description : 'enable UEFI support')