From ca6e5d4a785a43229c8e23fa750049794945560b Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 24 Mar 2018 10:30:40 -0400 Subject: [PATCH] Meson: Use shared_library() because static build of C# is not supported When gstreamer-sharp is used as a subproject (e.g. gst-build) and the master project is built with default-library=both, gstreamer-sharp should still only build shared libraries instead of failing to configure. https://bugzilla.gnome.org/show_bug.cgi?id=794656 --- Tests/meson.build | 2 +- ges/meson.build | 2 +- sources/meson.build | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/meson.build b/Tests/meson.build index 5bf0361139..70e59e37f0 100644 --- a/Tests/meson.build +++ b/Tests/meson.build @@ -26,7 +26,7 @@ if nunit_console.found() # 'PipelineTests', 'SdpTests' ] - lib = library(test, test + '.cs', 'TestBase.cs', + lib = shared_library(test, test + '.cs', 'TestBase.cs', cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114'], dependencies: [gst_sharp_dep, nunit_dep]) test(test, nunit_console, args: [lib.full_path()], env: testsenv) diff --git a/ges/meson.build b/ges/meson.build index b7a70acadb..092b72d8b7 100644 --- a/ges/meson.build +++ b/ges/meson.build @@ -4,7 +4,7 @@ metadata = files(pkg + '.metadata') subdir('generated') -ges_sharp = library(pkg + '-sharp', ges_generate_files, +ges_sharp = shared_library(pkg + '-sharp', ges_generate_files, cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-unsafe'], link_with: gst_sharp, dependencies: [glib_sharp_dep, gio_sharp_dep]) diff --git a/sources/meson.build b/sources/meson.build index 43149d4f3d..2eea17268a 100644 --- a/sources/meson.build +++ b/sources/meson.build @@ -34,7 +34,7 @@ sources = [ subdir('generated') -gst_sharp = library('gstreamer-sharp', gst_generate_files, sources, +gst_sharp = shared_library('gstreamer-sharp', gst_generate_files, sources, cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-unsafe'], dependencies: [glib_sharp_dep, gio_sharp_dep])