diff options
author | Stéphane Cerveau <scerveau@igalia.com> | 2023-03-15 12:48:57 +0100 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2023-03-29 16:15:51 +0000 |
commit | f3688cf286be5776e04204b742a176926079983f (patch) | |
tree | 51357ff8ae6389fa1700e2cf9741d940cc45a613 | |
parent | b3225773d38495cc2149f68d95c15cf62a9801ae (diff) | |
download | libnice-f3688cf286be5776e04204b742a176926079983f.tar.gz |
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.
-rw-r--r-- | meson.build | 1 | ||||
-rw-r--r-- | tests/meson.build | 6 |
2 files changed, 6 insertions, 1 deletions
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() |