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

if bluez.allowed()
  plugin_quirks += files('test-ble.quirk')
endif

plugin_builtins += static_library('fu_plugin_test',
  sources: [
    'fu-test-device.c',
    'fu-test-plugin.c',
  ],
  include_directories: plugin_incdirs,
  link_with: plugin_libs,
  c_args: cargs,
  dependencies: plugin_deps,
)

if bluez.allowed()
plugin_builtins += static_library('fu_plugin_test_ble',
  sources: [
    'fu-test-ble-plugin.c',
    'fu-test-ble-device.c',
  ],
  include_directories: plugin_incdirs,
  link_with: plugin_libs,
  c_args: cargs,
  dependencies: plugin_deps,
)
endif
