host_machine.system() == 'linux' or subdir_done()

cargs = ['-DG_LOG_DOMAIN="FuPluginParadeLspcon"']
plugins += {meson.current_source_dir().split('/')[-1]: true}

plugin_quirks += files('parade-lspcon.quirk')
plugin_builtins += static_library('fu_plugin_parade_lspcon',
  rustgen.process(
    'fu-parade-lspcon.rs',
  ),
  sources: [
    'fu-parade-lspcon-device.c',
    'fu-parade-lspcon-plugin.c',
  ],
  include_directories: plugin_incdirs,
  link_with: plugin_libs,
  c_args: [
    cargs,
    '-DLOCALSTATEDIR="' + localstatedir + '"',
  ],
  dependencies: plugin_deps,
)
