mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-13 04:15:41 +00:00

Interestingly, this increases the `fwupd` binary size by ~30kb but reduces the installed size of /usr/share/fwupd/quirks.d by ~330kb.
35 lines
704 B
Meson
35 lines
704 B
Meson
if get_option('plugin_flashrom').enabled() or \
|
|
(get_option('plugin_flashrom').auto() and libflashrom.found())
|
|
cargs = ['-DG_LOG_DOMAIN="FuPluginFlashrom"']
|
|
|
|
plugin_quirks += join_paths(meson.current_source_dir(), 'flashrom.quirk')
|
|
|
|
shared_module('fu_plugin_flashrom',
|
|
fu_hash,
|
|
sources: [
|
|
'fu-flashrom-device.c',
|
|
'fu-plugin-flashrom.c',
|
|
'fu-flashrom-cmos.c',
|
|
],
|
|
include_directories: [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
install: true,
|
|
install_dir: plugin_dir,
|
|
link_with: [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
c_args: [
|
|
cargs,
|
|
'-DLOCALSTATEDIR="' + localstatedir + '"',
|
|
],
|
|
dependencies: [
|
|
plugin_deps,
|
|
libflashrom,
|
|
],
|
|
)
|
|
endif
|