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
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