2025-01-13 17:10:31 +00:00
|
|
|
faac_sources = [
|
|
|
|
'gstfaac.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
faac_headers = [
|
|
|
|
'gstfaac.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
doc_sources = []
|
|
|
|
foreach s: faac_sources + faac_headers
|
|
|
|
doc_sources += meson.current_source_dir() / s
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
plugin_sources += {
|
|
|
|
'faac': pathsep.join(doc_sources)
|
|
|
|
}
|
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
faac_dep = cc.find_library('faac', required : get_option('faac'))
|
|
|
|
have_faac_h = cc.has_header_symbol('faac.h', 'faacEncOpen')
|
|
|
|
if not have_faac_h and get_option('faac').enabled()
|
|
|
|
error('faac plugin enabled: found libfaac, but not faac.h')
|
|
|
|
endif
|
2016-08-12 15:51:45 +00:00
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
if faac_dep.found() and have_faac_h
|
2016-08-12 15:51:45 +00:00
|
|
|
gstfaac = library('gstfaac',
|
2025-01-13 17:10:31 +00:00
|
|
|
faac_sources,
|
2016-08-12 15:51:45 +00:00
|
|
|
c_args : gst_plugins_bad_args,
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstaudio_dep, gstpbutils_dep, gsttag_dep, faac_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-10-22 09:30:45 +00:00
|
|
|
plugins += [gstfaac]
|
2016-08-12 15:51:45 +00:00
|
|
|
endif
|