mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
ptp-helper: Don't check for a Rust compiler on unsupported platforms
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4410>
This commit is contained in:
parent
b35d598003
commit
7cba04f2c6
1 changed files with 9 additions and 6 deletions
|
@ -1,14 +1,17 @@
|
|||
# Check PTP support
|
||||
have_rust = add_languages('rust', native : false, required : false)
|
||||
have_ptp = true
|
||||
|
||||
if host_system not in ['linux', 'freebsd', 'openbsd', 'netbsd', 'dragonfly', 'darwin', 'sunos', 'solaris', 'illumos', 'windows']
|
||||
have_ptp = false
|
||||
message('PTP not supported on this OS')
|
||||
endif
|
||||
|
||||
if have_ptp
|
||||
have_rust = add_languages('rust', native : false, required : false)
|
||||
if not have_rust
|
||||
have_ptp = false
|
||||
message('PTP not supported without Rust compiler')
|
||||
endif
|
||||
|
||||
if not ['linux', 'freebsd', 'openbsd', 'netbsd', 'dragonfly', 'darwin', 'sunos', 'solaris', 'illumos', 'windows'].contains(host_system)
|
||||
have_ptp = false
|
||||
message('PTP not supported on this OS')
|
||||
endif
|
||||
|
||||
if have_ptp
|
||||
|
|
Loading…
Reference in a new issue