2018-12-24 14:05:55 +00:00
|
|
|
openal_dep = dependency('openal', method: 'pkg-config', version: '>= 1.14', required: get_option('openal'))
|
2018-12-17 00:00:11 +00:00
|
|
|
|
2025-01-13 17:10:31 +00:00
|
|
|
openal_sources = [
|
|
|
|
'gstopenal.c',
|
|
|
|
'gstopenalelement.c',
|
|
|
|
'gstopenalsink.c',
|
|
|
|
'gstopenalsrc.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
openal_headers = [
|
|
|
|
'gstopenalelements.h',
|
|
|
|
'gstopenalsink.h',
|
|
|
|
'gstopenalsrc.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
doc_sources = []
|
|
|
|
foreach s: openal_sources + openal_headers
|
|
|
|
doc_sources += meson.current_source_dir() / s
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
plugin_sources += {
|
|
|
|
'openal': pathsep.join(doc_sources)
|
|
|
|
}
|
|
|
|
|
2018-12-17 00:00:11 +00:00
|
|
|
if openal_dep.found()
|
|
|
|
gstopenal = library('gstopenal',
|
2025-01-13 17:10:31 +00:00
|
|
|
openal_sources,
|
2018-12-17 00:00:11 +00:00
|
|
|
c_args: gst_plugins_bad_args,
|
2018-12-17 10:30:27 +00:00
|
|
|
include_directories: [configinc, libsinc],
|
2018-12-17 00:00:11 +00:00
|
|
|
dependencies: [gstaudio_dep, openal_dep],
|
|
|
|
install: true,
|
|
|
|
install_dir: plugins_install_dir,
|
|
|
|
)
|
2019-05-29 10:28:00 +00:00
|
|
|
plugins += [gstopenal]
|
2018-12-17 00:00:11 +00:00
|
|
|
endif
|