• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1openjpeg_sources = [
2  'gstopenjpeg.c',
3  'gstopenjpegdec.c',
4  'gstopenjpegenc.c',
5]
6
7openjpeg_cargs = []
8
9openjpeg_dep = dependency('libopenjp2', version : '>=2.2',
10                          fallback : ['libopenjp2', 'libopenjp2_dep'],
11                          required : get_option('openjpeg'),
12                          default_options: ['build_codec=false'])
13
14if openjpeg_dep.found()
15  gstopenjpeg = library('gstopenjpeg',
16    openjpeg_sources,
17    c_args : gst_plugins_bad_args + openjpeg_cargs,
18    link_args : noseh_link_args,
19    include_directories : [configinc],
20    dependencies : [gst_dep, gstvideo_dep, openjpeg_dep,
21		    gstcodecparsers_dep, libm],
22    install : true,
23    install_dir : plugins_install_dir,
24  )
25  pkgconfig.generate(gstopenjpeg, install_dir : plugins_pkgconfig_install_dir)
26  plugins += [gstopenjpeg]
27endif
28