summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/meson_qt6_path.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/classes/meson_qt6_path.bbclass b/classes/meson_qt6_path.bbclass
new file mode 100644
index 000000000..adbab9c99
--- /dev/null
+++ b/classes/meson_qt6_path.bbclass
@@ -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}
+}
+