summaryrefslogtreecommitdiff
path: root/ext/openh264
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openh264')
-rw-r--r--ext/openh264/meson.build20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/openh264/meson.build b/ext/openh264/meson.build
new file mode 100644
index 000000000..666887afe
--- /dev/null
+++ b/ext/openh264/meson.build
@@ -0,0 +1,20 @@
+openh264_sources = [
+ 'gstopenh264dec.cpp',
+ 'gstopenh264enc.cpp',
+ 'gstopenh264plugin.c',
+]
+
+openh264_dep = dependency('openh264', version : '>= 1.3.0', required : false)
+
+# FIXME: check if C++ compiler is available via new add_languages() semantics in meson git (~v30)
+if openh264_dep.found()
+ gstopenh264 = library('gstopenh264',
+ openh264_sources,
+ c_args : gst_plugins_bad_args,
+ link_args : noseh_link_args,
+ include_directories : [configinc],
+ dependencies : [gstvideo_dep, openh264_dep],
+ install : true,
+ install_dir : plugins_install_dir,
+ )
+endif