summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-08-15 19:44:17 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-08-15 19:44:17 +0530
commit546dd512e8e321bcfa12fb19aaa98050c9ffddf8 (patch)
tree177a4aa5976ea74b49a2f604a9d976666318376b
parent2a452f2a5dee43fee594b74b15cf94d9a45c6b32 (diff)
meson: Define HAVE_OSX on macOS and iOS
Needed by the shm, ladspa, and lv2 plugins. Same as Autotools.
-rw-r--r--meson.build9
1 files changed, 3 insertions, 6 deletions
diff --git a/meson.build b/meson.build
index 501ae60b8..f75b2de1c 100644
--- a/meson.build
+++ b/meson.build
@@ -201,7 +201,6 @@ check_functions = [
# check token HAVE_OPENSLES
# check token HAVE_OPUS
# check token HAVE_ORC
-# check token HAVE_OSX
# check token HAVE_OSX_VIDEO
['HAVE_PIPE2', 'pipe2'],
# check token HAVE_PNG
@@ -333,16 +332,14 @@ cdata.set_quoted('GST_PACKAGE_ORIGIN', get_option('package-origin'))
host_system = host_machine.system()
if host_system == 'linux'
cdata.set_quoted('DEFAULT_VIDEOSRC', 'v4l2src')
-elif host_system == 'osx'
+elif host_system == 'darwin'
cdata.set_quoted('DEFAULT_VIDEOSRC', 'avfvideosrc')
+ cdata.set_quoted('GST_EXTRA_MODULE_SUFFIX', '.dylib')
+ cdata.set('HAVE_OSX', 1)
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'])