fwupd/plugins/upower/meson.build
Richard Hughes 4d76d18d35 Set the system battery state and level on the FuContext shared state
This allows plugins to set the battery power state of the *machine* which means
we can automatically inhibit devices with FWUPD_DEVICE_FLAG_REQUIRE_AC set.

It also allows to set the BatteryThreshold to 25% for Lenovo hardware, and we
can override other vendors with further quirks as required.

Fixes https://github.com/fwupd/fwupd/issues/3084
2021-04-07 08:05:15 +01:00

33 lines
592 B
Meson

if host_machine.system() == 'linux'
cargs = ['-DG_LOG_DOMAIN="FuPluginUpower"']
install_data(['upower.quirk'],
install_dir: join_paths(datadir, 'fwupd', 'quirks.d'))
shared_module('fu_plugin_upower',
fu_hash,
sources : [
'fu-plugin-upower.c',
],
include_directories : [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
install : true,
install_dir: plugin_dir,
link_with : [
fwupd,
fwupdplugin,
],
c_args : cargs,
dependencies : [
plugin_deps,
],
)
install_data(['upower.conf'],
install_dir: join_paths(sysconfdir, 'fwupd')
)
endif