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

plugin_quirks += files('aver-hid.quirk')
plugin_builtins += static_library('fu_plugin_aver_hid',
  rustgen.process('fu-aver-hid.rs'),
  sources: [
    'fu-aver-hid-device.c',
    'fu-aver-safeisp-device.c',
    'fu-aver-hid-plugin.c',
  ],
  include_directories: plugin_incdirs,
  link_with: plugin_libs,
  c_args: cargs,
  dependencies: plugin_deps,
)

device_tests += files(
  'tests/aver-fone540.json',
)
