mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
qt: Only check for moc-qt5/moc in PATH if not cross-compiling
This is an extra check that's only needed for working around Linux distribution packaging. `moc` is not required in the cross file. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/640>
This commit is contained in:
parent
93b202b84e
commit
ed457fe08f
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ qt5qml_dep = dependency('qt5', modules : ['Core', 'Gui', 'Qml', 'Quick'],
|
|||
# that it's installed.
|
||||
# We don't do this check on other OSes because they need to be able to simply
|
||||
# point the `QMAKE` env var to `qmake` to build against a particular Qt5.
|
||||
if host_system == 'linux'
|
||||
if host_system == 'linux' and not meson.is_cross_build()
|
||||
moc = find_program('moc-qt5', 'moc', required : qt5_option)
|
||||
else
|
||||
# We only check if `moc` was found, and then discard it, so we can fake it.
|
||||
|
|
Loading…
Reference in a new issue