From: Tim-Philipp Müller Date: Mon, 17 Dec 2018 00:11:16 +0000 (+0000) Subject: meson: build openexr plugin X-Git-Tag: 1.19.3~507^2~3697 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79d8855d879b3ec7b6f1e851b2a4dd05f572eccc;p=platform%2Fupstream%2Fgstreamer.git meson: build openexr plugin --- diff --git a/ext/meson.build b/ext/meson.build index 57386a6..f1e8af7 100644 --- a/ext/meson.build +++ b/ext/meson.build @@ -35,7 +35,7 @@ subdir('neon') subdir('ofa') subdir('openal') subdir('opencv') -#subdir('openexr') +subdir('openexr') subdir('openh264') subdir('openjpeg') #subdir('openni2') diff --git a/ext/openexr/meson.build b/ext/openexr/meson.build new file mode 100644 index 0000000..7f4bab7 --- /dev/null +++ b/ext/openexr/meson.build @@ -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 diff --git a/meson_options.txt b/meson_options.txt index f880fce..51dd528 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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')