1faad_args = [ ] 2 3have_faad = cc.has_header_symbol('neaacdec.h', 'NeAACDecOpen') 4have_faad_2_7 = have_faad and cc.has_header_symbol('neaacdec.h', 'LATM') 5if have_faad and not have_faad_2_7 and get_option('faad').enabled() 6 message('Found faad2, but too old (< v2.7.0)') 7endif 8 9faad_dep = cc.find_library('faad', required : get_option('faad')) 10 11if faad_dep.found() and have_faad_2_7 12 gstfaad = library('gstfaad', 13 'gstfaad.c', 14 c_args : gst_plugins_bad_args + [ '-DFAAD2_MINOR_VERSION=7', '-DFAAD_IS_NEAAC' ], 15 link_args : noseh_link_args, 16 include_directories : [configinc], 17 dependencies : [gstaudio_dep, gstpbutils_dep, gsttag_dep, faad_dep], 18 install : true, 19 install_dir : plugins_install_dir, 20 ) 21 pkgconfig.generate(gstfaad, install_dir : plugins_pkgconfig_install_dir) 22endif 23