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

plugin_quirks += files('elanfp.quirk')
plugin_builtins += static_library('fu_plugin_elanfp',
  rustgen.process(
    'fu-elanfp.rs',         # fuzzing
  ),
  sources: [
    'fu-elanfp-plugin.c',
    'fu-elanfp-device.c',
    'fu-elanfp-firmware.c'  # fuzzing
  ],
  include_directories: plugin_incdirs,
  link_with: plugin_libs,
  c_args: cargs,
  dependencies: plugin_deps,
)

device_tests += files('tests/elan-p1515e.json')
