Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorL. E. Segovia <amy@amyspark.me>2023-08-22 03:41:07 +0300
committerL. E. Segovia <amy@amyspark.me>2023-08-22 03:41:07 +0300
commit7f6421d977496063becf2bdd047ef76c32ee78ca (patch)
treec14a75fd933497e319555b036eb164d7edbd8ba6 /meson.build
parenta06793e25a519ecc9be33282a48a089a3136f0d5 (diff)
meson: Tell cargo to prefer static libraries
This fixes most, but not all, of the build errors in Windows when using static libraries. The ones remaining are: - redirection of gstreamer-1.0 towards gstreamer-full-1.0 - Cairo not exporting the C++ stdlib requirement when built statically Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1307>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index b4508a365..12b48c734 100644
--- a/meson.build
+++ b/meson.build
@@ -325,6 +325,15 @@ if get_option('rav1e').allowed() and find_program('nasm', required: false).found
features += 'gst-plugin-rav1e/asm'
endif
+if get_option('default_library') == 'static'
+ extra_env += {
+ # Tell the pkg-config crate to think of all libraries as static
+ 'PKG_CONFIG_ALL_STATIC': '1',
+ # Tell the system-deps crate to process linker flag for static deps
+ 'SYSTEM_DEPS_LINK': 'static'
+ }
+endif
+
foreach plugin_name, details: plugins
plugin_opt = get_option(plugin_name)
if plugin_opt.allowed()