summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-06-24 22:04:55 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2020-06-28 00:16:53 +0530
commited457fe08fbd34195749a6076f78011e13a9b34f (patch)
tree6cf23737ae55ae6e32d27307f6dc683fd1b8043e /ext
parent93b202b84ef788d9b7858987baf98b7577b87b1a (diff)
downloadgstreamer-plugins-good-ed457fe08fbd34195749a6076f78011e13a9b34f.tar.gz
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>
Diffstat (limited to 'ext')
-rw-r--r--ext/qt/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/qt/meson.build b/ext/qt/meson.build
index c86e86a55..38b8a2590 100644
--- a/ext/qt/meson.build
+++ b/ext/qt/meson.build
@@ -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.