mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
de07c44183
* Library versioning should not be used for plugins since it will add -{version}.dll suffix (and versioned libraries on Linux with symlink). Then the library file name and plugin init function name mismatch will result in blacklisted plugin. * Don't define BUILDING_GST_CODECS, makes no sense * Don't define G_LOG_DOMAIN, which should be used only for libraries, not plugins * Depends on gstcodecparsers libary, not gstcodecs. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5249>
23 lines
603 B
Meson
23 lines
603 B
Meson
codec2json_sources = files([
|
|
'gstav12json.c',
|
|
'gstvp82json.c',
|
|
'plugin.c',
|
|
])
|
|
|
|
cp_args = [
|
|
'-DGST_USE_UNSTABLE_API',
|
|
]
|
|
|
|
json_dep = dependency('json-glib-1.0', version : '>=1.6.6', fallback : ['json-glib', 'json_glib_dep'], required: get_option('codec2json'))
|
|
|
|
if json_dep.found()
|
|
gstcodec2json = library('gstcodec2json',
|
|
codec2json_sources,
|
|
c_args : gst_plugins_bad_args + cp_args,
|
|
include_directories : [configinc],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
dependencies : [gstvideo_dep, gstcodecparsers_dep, json_dep],
|
|
)
|
|
plugins += [gstcodec2json]
|
|
endif
|