mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-14 09:36:53 +00:00
42 lines
759 B
Meson
42 lines
759 B
Meson
if get_option('plugin_gpio')
|
|
if not get_option('gudev')
|
|
error('gudev is required for plugin_gpio')
|
|
endif
|
|
if not have_linux_gpio
|
|
error('linux/gpio.h (with API v2) is required for plugin_gpio')
|
|
endif
|
|
cargs = ['-DG_LOG_DOMAIN="FuPluginGpio"']
|
|
|
|
install_data([
|
|
'gpio.quirk',
|
|
],
|
|
install_dir: join_paths(datadir, 'fwupd', 'quirks.d')
|
|
)
|
|
|
|
shared_module('fu_plugin_gpio',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-plugin-gpio.c',
|
|
'fu-gpio-device.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
install : true,
|
|
install_dir: plugin_dir,
|
|
c_args : [
|
|
cargs,
|
|
'-DLOCALSTATEDIR="' + localstatedir + '"',
|
|
],
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
],
|
|
)
|
|
endif
|