fwupd/plugins/powerd/meson.build
Richard Hughes 3291bd40ce Make Upower and powerd support optional
In some cases you really know that the daemon is never going to exist.
2021-11-27 18:46:27 +00:00

27 lines
501 B
Meson

if get_option('plugin_powerd') and host_machine.system() == 'linux' and gio.version().version_compare('>=2.58')
cargs = ['-DG_LOG_DOMAIN="FuPluginPowerd"']
shared_module('fu_plugin_powerd',
fu_hash,
sources : [
'fu-plugin-powerd.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,
],
)
endif