2016-08-12 15:51:45 +00:00
|
|
|
openjpeg_sources = [
|
|
|
|
'gstopenjpeg.c',
|
|
|
|
'gstopenjpegdec.c',
|
|
|
|
'gstopenjpegenc.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
openjpeg_cargs = []
|
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
if get_option('openjpeg').disabled()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2020-05-14 15:13:00 +00:00
|
|
|
openjpeg_dep = dependency('libopenjp2', version : '>=2.2',
|
|
|
|
fallback : ['libopenjp2', 'libopenjp2_dep'],
|
|
|
|
required : get_option('openjpeg'))
|
2016-08-12 15:51:45 +00:00
|
|
|
|
|
|
|
if openjpeg_dep.found()
|
|
|
|
gstopenjpeg = library('gstopenjpeg',
|
|
|
|
openjpeg_sources,
|
|
|
|
c_args : gst_plugins_bad_args + openjpeg_cargs,
|
|
|
|
link_args : noseh_link_args,
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gst_dep, gstvideo_dep, openjpeg_dep,
|
2020-03-24 13:15:30 +00:00
|
|
|
gstcodecparsers_dep, libm],
|
2016-08-12 15:51:45 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-04-24 18:05:30 +00:00
|
|
|
pkgconfig.generate(gstopenjpeg, install_dir : plugins_pkgconfig_install_dir)
|
2018-10-22 09:30:45 +00:00
|
|
|
plugins += [gstopenjpeg]
|
2016-08-12 15:51:45 +00:00
|
|
|
endif
|