2020-06-27 04:37:39 +00:00
|
|
|
badaudio_sources = files('gstnonstreamaudiodecoder.c', 'gstplanaraudioadapter.c')
|
|
|
|
badaudio_headers = files('gstnonstreamaudiodecoder.h', 'audio-bad-prelude.h', 'gstplanaraudioadapter.h')
|
2016-08-12 15:51:45 +00:00
|
|
|
install_headers(badaudio_headers, subdir : 'gstreamer-1.0/gst/audio')
|
|
|
|
|
|
|
|
|
|
|
|
gstbadaudio = library('gstbadaudio-' + api_version,
|
|
|
|
badaudio_sources,
|
2021-10-01 14:31:18 +00:00
|
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_AUDIO_BAD', '-DG_LOG_DOMAIN="GStreamer-AudioBad"'],
|
2016-08-12 15:51:45 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-31 09:07:46 +00:00
|
|
|
darwin_versions : osxversion,
|
2016-08-12 15:51:45 +00:00
|
|
|
install : true,
|
2017-12-02 16:01:25 +00:00
|
|
|
dependencies : [gstaudio_dep, gstbase_dep],
|
2016-08-12 15:51:45 +00:00
|
|
|
)
|
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
library_def = {'lib': gstbadaudio}
|
|
|
|
pkg_name = 'gstreamer-bad-audio-1.0'
|
2018-04-07 20:33:47 +00:00
|
|
|
pkgconfig.generate(gstbadaudio,
|
|
|
|
libraries : [gst_dep, gstbase_dep],
|
|
|
|
variables : pkgconfig_variables,
|
|
|
|
subdirs : pkgconfig_subdirs,
|
2020-06-27 04:39:00 +00:00
|
|
|
name : pkg_name,
|
2018-04-07 20:33:47 +00:00
|
|
|
description : 'Bad audio library for GStreamer elements',
|
|
|
|
)
|
2021-09-13 20:53:12 +00:00
|
|
|
gen_sources = []
|
2020-06-27 04:39:00 +00:00
|
|
|
|
2019-05-31 23:42:06 +00:00
|
|
|
if build_gir
|
2020-06-27 04:39:00 +00:00
|
|
|
gir = {
|
|
|
|
'sources' : badaudio_sources + badaudio_headers,
|
|
|
|
'namespace' : 'GstBadAudio',
|
|
|
|
'nsversion' : api_version,
|
|
|
|
'identifier_prefix' : 'Gst',
|
|
|
|
'symbol_prefix' : 'gst',
|
|
|
|
'export_packages' : pkg_name,
|
|
|
|
'includes' : ['Gst-1.0', 'GstAudio-1.0', 'GstBase-1.0'],
|
|
|
|
'install' : true,
|
|
|
|
'extra_args' : gir_init_section + ['-DGST_USE_UNSTABLE_API'],
|
|
|
|
'dependencies' : [gstbase_dep, gstaudio_dep]
|
|
|
|
}
|
|
|
|
library_def += {'gir': [gir]}
|
|
|
|
if not static_build
|
|
|
|
audio_gir = gnome.generate_gir(gstbadaudio, kwargs: gir)
|
|
|
|
gen_sources += audio_gir
|
|
|
|
endif
|
2019-05-31 23:42:06 +00:00
|
|
|
endif
|
2020-06-27 04:39:00 +00:00
|
|
|
libraries += [[pkg_name, library_def]]
|
2021-09-13 20:53:12 +00:00
|
|
|
|
|
|
|
gstbadaudio_dep = declare_dependency(link_with : gstbadaudio,
|
|
|
|
include_directories : [libsinc],
|
|
|
|
sources: gen_sources,
|
|
|
|
dependencies : [gstaudio_dep, gstbase_dep])
|
|
|
|
|
|
|
|
meson.override_dependency(pkg_name, gstbadaudio_dep)
|