2020-06-27 04:37:39 +00:00
|
|
|
codecs_sources = files(
|
2020-01-31 22:54:57 +00:00
|
|
|
'gsth264decoder.c',
|
|
|
|
'gsth264picture.c',
|
|
|
|
'gsth265decoder.c',
|
|
|
|
'gsth265picture.c',
|
|
|
|
'gstvp9decoder.c',
|
|
|
|
'gstvp9picture.c',
|
2020-03-29 13:23:23 +00:00
|
|
|
'gstvp8decoder.c',
|
|
|
|
'gstvp8picture.c',
|
2020-12-18 13:25:08 +00:00
|
|
|
'gstmpeg2decoder.c',
|
|
|
|
'gstmpeg2picture.c',
|
2021-01-19 06:59:45 +00:00
|
|
|
'gstav1decoder.c',
|
|
|
|
'gstav1picture.c',
|
2021-03-27 06:32:59 +00:00
|
|
|
'gstvp9statefulparser.c',
|
2023-09-02 16:46:41 +00:00
|
|
|
'gstcodecpicture.c',
|
2020-06-27 04:37:39 +00:00
|
|
|
)
|
2020-01-31 22:54:57 +00:00
|
|
|
|
2020-06-27 04:37:39 +00:00
|
|
|
codecs_headers = files(
|
2020-01-31 22:54:57 +00:00
|
|
|
'gsth264decoder.h',
|
|
|
|
'gsth264picture.h',
|
|
|
|
'gsth265decoder.h',
|
|
|
|
'gsth265picture.h',
|
|
|
|
'gstvp9decoder.h',
|
|
|
|
'gstvp9picture.h',
|
2020-03-29 13:23:23 +00:00
|
|
|
'gstvp8decoder.h',
|
|
|
|
'gstvp8picture.h',
|
2020-12-18 13:25:08 +00:00
|
|
|
'gstmpeg2decoder.h',
|
|
|
|
'gstmpeg2picture.h',
|
2021-01-19 06:59:45 +00:00
|
|
|
'gstav1decoder.h',
|
|
|
|
'gstav1picture.h',
|
2021-03-27 06:32:59 +00:00
|
|
|
'gstvp9statefulparser.h',
|
2023-09-02 16:46:41 +00:00
|
|
|
'gstcodecpicture.h',
|
2020-06-27 04:37:39 +00:00
|
|
|
)
|
2020-01-31 22:54:57 +00:00
|
|
|
|
|
|
|
cp_args = [
|
|
|
|
'-DGST_USE_UNSTABLE_API',
|
|
|
|
'-DBUILDING_GST_CODECS',
|
2021-10-01 14:31:18 +00:00
|
|
|
'-DG_LOG_DOMAIN="GStreamer-Codecs"'
|
2020-01-31 22:54:57 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
gstcodecs = library('gstcodecs-' + api_version,
|
|
|
|
codecs_sources,
|
|
|
|
c_args : gst_plugins_bad_args + cp_args,
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
|
|
|
darwin_versions : osxversion,
|
|
|
|
install : true,
|
|
|
|
dependencies : [gstvideo_dep, gstcodecparsers_dep],
|
|
|
|
)
|
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
library_def = {'lib': gstcodecs}
|
|
|
|
pkg_name = 'gstreamer-codecs-1.0'
|
2020-04-08 12:47:37 +00:00
|
|
|
gen_sources = []
|
|
|
|
if build_gir
|
2020-06-27 04:39:00 +00:00
|
|
|
gir = {
|
|
|
|
'sources' : codecs_sources + codecs_headers,
|
|
|
|
'namespace' : 'GstCodecs',
|
|
|
|
'nsversion' : api_version,
|
|
|
|
'identifier_prefix' : 'Gst',
|
|
|
|
'symbol_prefix' : 'gst',
|
|
|
|
'export_packages' : pkg_name,
|
|
|
|
'includes' : ['Gst-1.0', 'GstVideo-1.0'],
|
|
|
|
'install' : true,
|
|
|
|
'extra_args' : gir_init_section + ['-DGST_USE_UNSTABLE_API'] +
|
2020-04-08 12:47:37 +00:00
|
|
|
['--c-include=gst/codecs/gsth264decoder.h',
|
|
|
|
'--c-include=gst/codecs/gsth265decoder.h',
|
2020-03-29 13:23:23 +00:00
|
|
|
'--c-include=gst/codecs/gstvp9decoder.h',
|
|
|
|
'--c-include=gst/codecs/gstvp8decoder.h',
|
2020-12-18 13:25:08 +00:00
|
|
|
'--c-include=gst/codecs/gstmpeg2decoder.h',
|
2020-03-29 13:23:23 +00:00
|
|
|
],
|
2020-06-27 04:39:00 +00:00
|
|
|
'dependencies' : [gstvideo_dep, gstcodecparsers_dep]
|
|
|
|
}
|
|
|
|
library_def += {'gir': [gir]}
|
|
|
|
if not static_build
|
|
|
|
codecs_gir = gnome.generate_gir(gstcodecs, kwargs: gir)
|
2022-08-31 18:15:16 +00:00
|
|
|
library_def += {'gir_targets': library_def.get('gir_targets', []) + [codecs_gir]}
|
2020-06-27 04:39:00 +00:00
|
|
|
gen_sources += codecs_gir
|
|
|
|
endif
|
2020-04-08 12:47:37 +00:00
|
|
|
endif
|
2022-09-01 15:51:48 +00:00
|
|
|
gst_libraries += [[pkg_name, library_def]]
|
2020-04-08 12:47:37 +00:00
|
|
|
|
2020-01-31 22:54:57 +00:00
|
|
|
gstcodecs_dep = declare_dependency(link_with : gstcodecs,
|
|
|
|
include_directories : [libsinc],
|
2020-04-08 12:47:37 +00:00
|
|
|
sources: gen_sources,
|
2020-01-31 22:54:57 +00:00
|
|
|
dependencies : [gstvideo_dep, gstcodecparsers_dep])
|
2022-08-31 18:15:16 +00:00
|
|
|
meson.override_dependency(pkg_name, gstcodecs_dep)
|