meson: host_system is 'ios' when building for iOS
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 16 Aug 2018 21:24:00 +0000 (02:54 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Thu, 16 Aug 2018 21:25:43 +0000 (02:55 +0530)
The cross file sets this value, and we use 'ios' in Cerbero.

libs/gst/helpers/meson.build
meson.build

index 71adc212facccb0ee69e16df872bcb10d78d5283..891ea55c8786440687f08d8bb7d58830137b5ebd 100644 (file)
@@ -27,13 +27,9 @@ if host_system == 'android'
   message('PTP not supported on Android because of permissions.')
 elif host_system == 'windows'
   message('PTP not supported on Windows, not ported yet.')
-elif host_system == 'darwin'
-  if cc.has_header('MobileCoreServices/MobileCoreServices.h')
-    message('PTP not supported on iOS because of permissions.')
-  else
-    have_ptp = true
-  endif
-elif ['linux', 'netbsd', 'freebsd', 'openbsd', 'kfreebsd', 'dragonfly', 'solaris'].contains(host_system)
+elif host_system == 'ios'
+  message('PTP not supported on iOS because of permissions.')
+elif ['linux', 'darwin', 'netbsd', 'freebsd', 'openbsd', 'kfreebsd', 'dragonfly', 'solaris'].contains(host_system)
   message('PTP supported on ' + host_system + '.')
   have_ptp = true
 endif
index 3b50130cea80ee485f22edb0539f3013be39f73a..fa699ed46d096f5c676968641007177655838346 100644 (file)
@@ -108,7 +108,7 @@ else
   cdata.set('MEMORY_ALIGNMENT', mem_align_opt.to_int())
 endif
 
-if host_system == 'darwin'
+if ['darwin', 'ios'].contains(host_system)
   cdata.set_quoted('GST_EXTRA_MODULE_SUFFIX', '.dylib')
 endif