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
This commit is contained in:
Xavier Claessens 2018-03-24 10:30:40 -04:00 committed by Thibault Saunier
parent 5f63dac35e
commit ca6e5d4a78
3 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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])

View file

@ -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])