Fix meson unable to find Qt 6 uic 44/30144/5
authorIndivara Weerasuriya <indivara.weerasuriya@qt.io>
Tue, 30 Jul 2024 10:56:01 +0000 (19:56 +0900)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 20 Nov 2024 13:35:26 +0000 (13:35 +0000)
Change-Id: I22beb7fdaf32c2c56653eb192892b50ae72ed733
Signed-off-by: Indivara Weerasuriya <indivara.weerasuriya@qt.io>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-demo/+/30144
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
classes/meson_qt6_path.bbclass [new file with mode: 0644]

diff --git a/classes/meson_qt6_path.bbclass b/classes/meson_qt6_path.bbclass
new file mode 100644 (file)
index 0000000..adbab9c
--- /dev/null
@@ -0,0 +1,9 @@
+inherit meson pkgconfig qt6-paths
+
+# fix meson cannot find Qt6 uic
+do_configure:prepend () {
+   QT_HOST_LIBEXECS_DIR="$(qmake -query QT_HOST_LIBEXECS)"
+   bbwarn "QT_HOST_LIBEXECS_DIR ${QT_HOST_LIBEXECS_DIR}"
+   export PATH=$PATH:${QT_HOST_LIBEXECS_DIR}
+}
+