Add a configure switch for the LVFS remotes

On embedded devices these are not required.
This commit is contained in:
Richard Hughes 2017-08-22 09:05:49 +01:00
parent 3a0d3d5b58
commit d067ed675e
2 changed files with 10 additions and 6 deletions

View File

@ -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')
)

View File

@ -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')