summaryrefslogtreecommitdiff
path: root/ext/x264/meson.build
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2019-01-25 14:36:55 +0200
committerSebastian Dröge <sebastian@centricular.com>2019-05-02 16:35:34 +0300
commitf7e877876ab1c0c6c2bf4c69b4779034286918bd (patch)
tree1e4849c3ec0c1e2d38d209252d9c9b823499de9c /ext/x264/meson.build
parenta2f9d4151bd98f54ec9a6ed004897275ffcde70c (diff)
x264: Link to gmodule in the meson build if extra x264 libraries are provided
We would dynamically load additional x264 libraries then.
Diffstat (limited to 'ext/x264/meson.build')
-rw-r--r--ext/x264/meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/x264/meson.build b/ext/x264/meson.build
index 544721a3..462dd3a0 100644
--- a/ext/x264/meson.build
+++ b/ext/x264/meson.build
@@ -9,13 +9,16 @@ if x264_dep.found()
x264_args = []
if x264_libraries != ''
x264_args += ['-DHAVE_X264_ADDITIONAL_LIBRARIES="@0@"'.format(x264_libraries)]
+ extra_gmodule_dep = [gmodule_dep]
+ else
+ extra_gmodule_dep = []
endif
gstx264 = library('gstx264',
x264_sources,
c_args : ugly_args + x264_args,
include_directories : [configinc],
- dependencies : [gstbase_dep, gstvideo_dep, gstpbutils_dep, x264_dep],
+ dependencies : [gstbase_dep, gstvideo_dep, gstpbutils_dep, x264_dep] + extra_gmodule_dep,
install : true,
install_dir : plugins_install_dir,
)