meson: build openexr plugin

This commit is contained in:
Tim-Philipp Müller 2018-12-17 00:11:16 +00:00 committed by Sebastian Dröge
parent c23a1dc2b6
commit 79d8855d87
3 changed files with 18 additions and 1 deletions

View file

@ -35,7 +35,7 @@ subdir('neon')
subdir('ofa')
subdir('openal')
subdir('opencv')
#subdir('openexr')
subdir('openexr')
subdir('openh264')
subdir('openjpeg')
#subdir('openni2')

16
ext/openexr/meson.build Normal file
View file

@ -0,0 +1,16 @@
openexr_dep = dependency('OpenEXR', required: get_option('openexr'))
if openexr_dep.found()
openexr_extra_cpp_args = cxx.get_supported_arguments(['-std=c++98'])
gstopenexr = library('gstopenexr',
'gstopenexr.c',
'gstopenexrdec.cpp',
c_args: gst_plugins_bad_args,
cpp_args: gst_plugins_bad_args + openexr_extra_cpp_args,
link_args: noseh_link_args,
include_directories: [configinc, libsinc],
dependencies: [gstvideo_dep, openexr_dep],
install: true,
install_dir: plugins_install_dir,
)
pkgconfig.generate(gstopenexr, install_dir: plugins_pkgconfig_install_dir)
endif

View file

@ -120,6 +120,7 @@ option('nvdec', type : 'feature', value : 'auto', description : 'NVIDIA GPU deco
option('nvenc', type : 'feature', value : 'auto', description : 'NVIDIA GPU encoder plugin')
option('ofa', type : 'feature', value : 'auto', description : 'Open Fingerprint Architecture library plugin')
option('openal', type : 'feature', value : 'auto', description : 'OpenAL plugin')
option('openexr', type : 'feature', value : 'auto', description : 'OpenEXR plugin')
option('openh264', type : 'feature', value : 'auto', description : 'H.264 video codec plugin')
option('openjpeg', type : 'feature', value : 'auto', description : 'JPEG2000 image codec plugin')
option('opensles', type : 'feature', value : 'auto', description : 'OpenSL ES audio source/sink plugin')