mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-23 17:14:23 +00:00
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:
parent
5f63dac35e
commit
ca6e5d4a78
3 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ if nunit_console.found()
|
||||||
# 'PipelineTests',
|
# 'PipelineTests',
|
||||||
'SdpTests'
|
'SdpTests'
|
||||||
]
|
]
|
||||||
lib = library(test, test + '.cs', 'TestBase.cs',
|
lib = shared_library(test, test + '.cs', 'TestBase.cs',
|
||||||
cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114'],
|
cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114'],
|
||||||
dependencies: [gst_sharp_dep, nunit_dep])
|
dependencies: [gst_sharp_dep, nunit_dep])
|
||||||
test(test, nunit_console, args: [lib.full_path()], env: testsenv)
|
test(test, nunit_console, args: [lib.full_path()], env: testsenv)
|
||||||
|
|
|
@ -4,7 +4,7 @@ metadata = files(pkg + '.metadata')
|
||||||
|
|
||||||
subdir('generated')
|
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'],
|
cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-unsafe'],
|
||||||
link_with: gst_sharp,
|
link_with: gst_sharp,
|
||||||
dependencies: [glib_sharp_dep, gio_sharp_dep])
|
dependencies: [glib_sharp_dep, gio_sharp_dep])
|
||||||
|
|
|
@ -34,7 +34,7 @@ sources = [
|
||||||
|
|
||||||
subdir('generated')
|
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'],
|
cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-unsafe'],
|
||||||
dependencies: [glib_sharp_dep, gio_sharp_dep])
|
dependencies: [glib_sharp_dep, gio_sharp_dep])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue