diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2016-11-30 22:40:45 -0500 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2016-11-30 22:40:45 -0500 |
commit | c03a4829acf6ef5cf8fa2f272a87212a1c8ab539 (patch) | |
tree | df80e7026bcab22d731b0470b61711e2f42cb5a9 /ext/ttml | |
parent | 4b3baab40a3baa2042985a0fce6421661cbffca2 (diff) | |
download | gstreamer-plugins-bad-c03a4829acf6ef5cf8fa2f272a87212a1c8ab539.tar.gz |
meson/ttml: Add missing math library dependency
This code call 'round' which may require linking against the math library
on some compilers.
Diffstat (limited to 'ext/ttml')
-rw-r--r-- | ext/ttml/meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/ttml/meson.build b/ext/ttml/meson.build index 5657ffb60..891022a63 100644 --- a/ext/ttml/meson.build +++ b/ext/ttml/meson.build @@ -2,6 +2,8 @@ libxml_dep = dependency('libxml-2.0', version : '>= 2.9.2', required : false) pango_dep = dependency('pango', required : false) cairo_dep = dependency('cairo', required : false) pangocairo_dep = dependency('pangocairo', required : false) +cc = meson.get_compiler('c') +m_dep = cc.find_library('m', required : false) if libxml_dep.found() and pango_dep.found() and cairo_dep.found() and pangocairo_dep.found() gstttmlsubs = library('gstttmlsubs', @@ -13,7 +15,7 @@ if libxml_dep.found() and pango_dep.found() and cairo_dep.found() and pangocairo 'gstttmlplugin.c'], c_args : gst_plugins_bad_args, include_directories : [configinc], - dependencies : [gstvideo_dep, libxml_dep, pango_dep, cairo_dep, pangocairo_dep], + dependencies : [gstvideo_dep, libxml_dep, pango_dep, cairo_dep, pangocairo_dep, m_dep], install : true, install_dir : plugins_install_dir, ) |