ptp: Add GNU Hurd to the list of supported platforms and fix the Solaris name
authorSebastian Dröge <sebastian@centricular.com>
Fri, 3 Jul 2020 08:45:36 +0000 (11:45 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 3 Jul 2020 08:45:36 +0000 (11:45 +0300)
https://mesonbuild.com/Reference-tables.html#operating-system-names has
the table of all supported names right now.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/583

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/554>

libs/gst/helpers/meson.build

index f706ab0..9e5a4ae 100644 (file)
@@ -29,9 +29,11 @@ elif host_system == 'windows'
   message('PTP not supported on Windows, not ported yet.')
 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)
+elif ['linux', 'darwin', 'netbsd', 'freebsd', 'openbsd', 'kfreebsd', 'dragonfly', 'sunos', 'gnu'].contains(host_system)
   message('PTP supported on ' + host_system + '.')
   have_ptp = true
+else
+  message('PTP not supported on ' + host_system + ', not ported yet.')
 endif
 
 if have_ptp