voaac_sources = ['gstvoaac.c', 'gstvoaacenc.c']

voaac_dep = dependency('vo-aacenc', required : get_option('voaacenc'))

if voaac_dep.found()
  gstbz2 = library('gstvoaacenc',
    voaac_sources,
    c_args : gst_plugins_bad_args,
    link_args : noseh_link_args,
    include_directories : [configinc],
    dependencies : [gstbase_dep, gstpbutils_dep, gstaudio_dep, voaac_dep],
    install : true,
    install_dir : plugins_install_dir,
  )
  pkgconfig.generate(gstbz2, install_dir : plugins_pkgconfig_install_dir)
endif
