if not libssl_dep.found()
  error('fish plugin requires openssl')
endif

# Run tests
subdir('tests')

fishlim_sources = [
  'dh1080.c',
  'fish.c',
  'utils.c',
  'irc.c',
  'keystore.c',
  'plugin_zoitechat.c'
]

shared_module('fishlim', fishlim_sources,
  dependencies: [libgio_dep, gtk_dep, zoitechat_plugin_dep, libssl_dep],
  c_args: ['-DOPENSSL_API_COMPAT=0x10100000L'],
  install: true,
  install_dir: plugindir,
  name_prefix: '',
  vs_module_defs: 'fishlim.def',
)
