meson: build openexr plugin
authorTim-Philipp Müller <tim@centricular.com>
Mon, 17 Dec 2018 00:11:16 +0000 (00:11 +0000)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 17 Dec 2018 09:12:53 +0000 (09:12 +0000)
ext/meson.build
ext/openexr/meson.build [new file with mode: 0644]
meson_options.txt

index 57386a6..f1e8af7 100644 (file)
@@ -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 (file)
index 0000000..7f4bab7
--- /dev/null
@@ -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
index f880fce..51dd528 100644 (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')