From f3688cf286be5776e04204b742a176926079983f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Wed, 15 Mar 2023 12:48:57 +0100 Subject: meson: do not build gst test in static mode In the case of gstreamer test, the symbol gst_init_static_plugins needed by gstreamer will be available at the end of the build with gstreamer-full library. --- meson.build | 1 + tests/meson.build | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index e0d2ac1..6a733b7 100644 --- a/meson.build +++ b/meson.build @@ -30,6 +30,7 @@ gst_req = '>= 1.0.0' nice_datadir = join_paths(get_option('prefix'), get_option('datadir')) cc = meson.get_compiler('c') +static_build = get_option('default_library') == 'static' syslibs = [] diff --git a/tests/meson.build b/tests/meson.build index ce2e2d6..c161503 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -68,7 +68,11 @@ foreach tname : nice_tests endif endforeach -if gst_dep.found() +# FIXME: The GStreamer test needs nicesrc and nicesink plugins to run. libnice might be part of the GStreamer build. +# In this case, in static mode (gstreamer-full), the test should be built after gstreamer-full to initialize +# properly the plugins (gstreamer and libnice ones) with gst_init_static_plugins. +# That's the reason the test is now disabled in static mode. +if gst_dep.found() and not static_build gst_check = dependency('gstreamer-check-1.0', required: get_option('gstreamer'), fallback : ['gstreamer', 'gst_check_dep']) if gst_check.found() -- cgit v1.2.1