[PATCH v2 2/5] qt-utils.eclass: New function qt_get_qmldir

Andreas Sturmlechner <[email protected]> Sat, 11 Jul 2026 11:56:25 +0200
Newsgroups gmane.linux.gentoo.devel
Message-ID <[email protected]>
--nextPartS9iF79t3RFuq1Pts1O273w
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Andreas Sturmlechner <[email protected]>
To: [email protected], [email protected]
Subject: [PATCH v2 2/5] qt-utils.eclass: New function qt_get_qmldir
Date: Sat, 11 Jul 2026 11:56:25 +0200
Message-ID: <[email protected]>
In-Reply-To: <[email protected]>
References: <[email protected]>
MIME-Version: 1.0

[PATCH v2 2/5] qt-utils.eclass: New function qt_get_qmldir

Signed-off-by: Andreas Sturmlechner <[email protected]>
---
 eclass/qt-utils.eclass | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/eclass/qt-utils.eclass b/eclass/qt-utils.eclass
index d5dda9d1b318..6ec027db0e7a 100644
--- a/eclass/qt-utils.eclass
+++ b/eclass/qt-utils.eclass
@@ -98,6 +98,15 @@ qt_get_plugindir() {
 	echo "$(_qt_get_archdatadir "$@")/plugins"
 }
 
+# @FUNCTION: qt_get_qmldir
+# @USAGE: <qt_maj_ver>
+# @DESCRIPTION:
+# Echoes the directory where Qt Qml imports are installed.
+qt_get_qmldir() {
+	_qt_get_check_func_call "$@"
+	echo "$(_qt_get_archdatadir "$@")/qml"
+}
+
 # @FUNCTION: qt6_get_bindir
 # @DESCRIPTION:
 # Echoes the directory where Qt6 binaries are installed.
-- 
2.55.0


--nextPartS9iF79t3RFuq1Pts1O273w
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQIvBAABCgCZFiEE34gXUSooizdYNDu3S5FW4z0PgBkFAmpSE0obFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRERjg4MTc1MTJBMjg4QjM3NTgzNDNC
Qjc0QjkxNTZFMzNEMEY4MDE5AAoJEEuRVuM9D4AZQWUL/RuESllKPiyrVcsC2gzr
Qk+sD4pWHttdKm8CdUoBciE0s4St2XB/kuAZwexKowabSnmcd6NujPxr6NxTYD+O
yxxV89rUl7hjAzr7xyedWtBTxowMIT3h5XfvdtxpwyrlhnwpYy+FyZe5pST0PtOH
I5HwNJ6Gef2doDHRljsi4WjqU0lkthJ2gdS/zSTTCx5/rrOZ/lYHS93Elitf5m9E
S7b1eH80dJ8oP/uGyC99SNQZBgSIrW6cn5DePHrYUv34THOYyziuEwAdHgBsu+85
IHtZMcMOuu9BwDPaCCXxDLumU3lMHr5MWaS+Ts9OXYvn+LFsccVW6JTlPhiVWu+z
iDfjGnrlJohvrN5dutMMRr6Fk2YyhinRi0iRRzSqmOcTdn955OXta824reMnLtJ7
4Fu3+QdllGMSDjERTkVqEx+KzAo++YhiaBMrgHwyF72LwgEiJVe97p7IFqrQQ4PR
h3Du7Cu/SvmCufAC1D3Hd98VwREvEkaU3UbbTWcFckheNg==
=gCmR
-----END PGP SIGNATURE-----

--nextPartS9iF79t3RFuq1Pts1O273w--