fwupd/plugins/redfish/meson.build
Gary Lin 2e0e179298 redfish: Read options from redfish.conf
This commit adds redfish.conf to configure the IP and username/password
in case those are not available in SMBIOS and the EFI variables.

Since we can configure the IP in the conf file, the environment
variable, FWUPD_REDFISH_URI, is removed.

Signed-off-by: Gary Lin <glin@suse.com>
2018-08-06 06:19:56 +01:00

54 lines
1.0 KiB
Meson

cargs = ['-DG_LOG_DOMAIN="FuPluginRedfish"']
shared_module('fu_plugin_redfish',
sources : [
'fu-plugin-redfish.c',
'fu-redfish-client.c',
'fu-redfish-common.c',
],
include_directories : [
include_directories('../..'),
include_directories('../../src'),
include_directories('../../libfwupd'),
],
install : true,
install_dir: plugin_dir,
c_args : cargs,
dependencies : [
plugin_deps,
efivar,
json_glib,
],
)
install_data(['redfish.conf'],
install_dir: join_paths(sysconfdir, 'fwupd')
)
if get_option('tests')
e = executable(
'redfish-self-test',
sources : [
'fu-self-test.c',
'fu-redfish-client.c',
'fu-redfish-common.c',
],
include_directories : [
include_directories('../..'),
include_directories('../../src'),
include_directories('../../libfwupd'),
],
dependencies : [
plugin_deps,
efivar,
json_glib,
],
link_with : [
fwupd,
libfwupdprivate,
],
c_args : cargs
)
test('redfish-self-test', e)
endif