mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
uname does not exist everywhere
This commit is contained in:
parent
8708f6a606
commit
47844b2771
1 changed files with 11 additions and 9 deletions
|
@ -19,7 +19,8 @@ cc = meson.get_compiler('c')
|
||||||
# Make it possible to use msys2 built zlib which fails
|
# Make it possible to use msys2 built zlib which fails
|
||||||
# when not using the mingw toolchain as it uses unistd.h
|
# when not using the mingw toolchain as it uses unistd.h
|
||||||
if not meson.is_subproject() and cc.get_id() == 'msvc'
|
if not meson.is_subproject() and cc.get_id() == 'msvc'
|
||||||
uname = find_program('uname')
|
uname = find_program('uname', required: false)
|
||||||
|
if uname.found()
|
||||||
ret = run_command(uname, '-o')
|
ret = run_command(uname, '-o')
|
||||||
if ret.returncode() == 0 and ret.stdout().to_lower() == 'msys'
|
if ret.returncode() == 0 and ret.stdout().to_lower() == 'msys'
|
||||||
ret = run_command(uname, '-r')
|
ret = run_command(uname, '-r')
|
||||||
|
@ -32,6 +33,7 @@ if not meson.is_subproject() and cc.get_id() == 'msvc'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# FIXME Remove that check once we have ffmpeg as a gst-libav subproject
|
# FIXME Remove that check once we have ffmpeg as a gst-libav subproject
|
||||||
libavfilter_dep = dependency('libavfilter', version: '>= 6.47.100', required: false)
|
libavfilter_dep = dependency('libavfilter', version: '>= 6.47.100', required: false)
|
||||||
|
|
Loading…
Reference in a new issue