From f5ed89dc8356b8f4fcaadd3a4524b4e1b88331c8 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 13 May 2019 14:42:28 +0530 Subject: [PATCH] meson: Pass -DGST_STATIC_COMPILATION for static builds This is only needed on Windows when building with MSVC, but it is safe to pass it everywhere. Closes https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/398 --- gst/meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst/meson.build b/gst/meson.build index 145e97a..d29e370 100644 --- a/gst/meson.build +++ b/gst/meson.build @@ -275,7 +275,13 @@ if build_gir )] endif +gst_compile_args = [] +if get_option('default_library') == 'static' + gst_compile_args += ['-DGST_STATIC_COMPILATION'] +endif + gst_dep = declare_dependency(link_with : libgst, + compile_args : gst_compile_args, include_directories : gst_incdirs, dependencies : [glib_dep, gobject_dep, gmodule_dep], # Everything that uses libgst needs this built to compile -- 2.7.4