2023-01-04 09:35:20 +00:00
|
|
|
codec2json_sources = files([
|
2023-01-11 14:20:21 +00:00
|
|
|
'gstav12json.c',
|
2023-01-04 09:35:20 +00:00
|
|
|
'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,
|
2023-08-25 13:27:10 +00:00
|
|
|
dependencies : [gstvideo_dep, gstcodecparsers_dep, json_dep],
|
2023-01-04 09:35:20 +00:00
|
|
|
)
|
|
|
|
plugins += [gstcodec2json]
|
|
|
|
endif
|