summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2018-03-24 10:30:40 -0400
committerThibault Saunier <tsaunier@igalia.com>2018-03-24 11:37:22 -0300
commitca6e5d4a785a43229c8e23fa750049794945560b (patch)
tree5f42649e109b866ca655a1dee9d735ba529a7e71
parent5f63dac35ec4b5c71c2e91efa92edf2976953318 (diff)
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
-rw-r--r--Tests/meson.build2
-rw-r--r--ges/meson.build2
-rw-r--r--sources/meson.build2
3 files changed, 3 insertions, 3 deletions
diff --git a/Tests/meson.build b/Tests/meson.build
index 5bf0361..70e59e3 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 b7a70ac..092b72d 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 43149d4..2eea172 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])