meson: Use .dylib suffix if darwin
authorJustin Kim <justin.kim@collabora.com>
Mon, 19 Feb 2018 06:45:36 +0000 (15:45 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 21 Feb 2018 15:05:42 +0000 (15:05 +0000)
For Mac OS, GST_EXTRA_MODULE_SUFFIX should be set as '.dylib'.

https://bugzilla.gnome.org/show_bug.cgi?id=793585

meson.build

index 21502ad..1d355c0 100644 (file)
@@ -294,6 +294,10 @@ else
   cdata.set_quoted('DEFAULT_VIDEOSRC', 'videotestsrc')
 endif
 
+if host_system == 'darwin'
+  cdata.set_quoted('GST_EXTRA_MODULE_SUFFIX', '.dylib')
+endif
+
 # Mandatory GST deps
 gst_dep = dependency('gstreamer-1.0', version : gst_req,
   fallback : ['gstreamer', 'gst_dep'])