• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1faac_dep = cc.find_library('faac', required : get_option('faac'))
2have_faac_h = cc.has_header_symbol('faac.h', 'faacEncOpen')
3if not have_faac_h and get_option('faac').enabled()
4  error('faac plugin enabled: found libfaac, but not faac.h')
5endif
6
7if faac_dep.found() and have_faac_h
8  gstfaac = library('gstfaac',
9    'gstfaac.c',
10    c_args : gst_plugins_bad_args,
11    include_directories : [configinc],
12    dependencies : [gstaudio_dep, gstpbutils_dep, gsttag_dep, faac_dep],
13    install : true,
14    install_dir : plugins_install_dir,
15  )
16  pkgconfig.generate(gstfaac, install_dir : plugins_pkgconfig_install_dir)
17  plugins += [gstfaac]
18endif
19