commit: 39366055b71b842f4637a1e9ed137ad00c0b78ac Author: Jimi Huotari <chiitoo <AT> gentoo <DOT> org> AuthorDate: Tue Nov 16 20:21:52 2021 +0000 Commit: Jimi Huotari <chiitoo <AT> gentoo <DOT> org> CommitDate: Wed Nov 17 06:08:11 2021 +0000 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=39366055
qmake-utils.eclass: Preliminary qt6_get_*dir support Rebased changes from patch by Andreas Sturmlechner [1]. 1. https://github.com/gentoo/qt/pull/224 Closes: https://github.com/gentoo/qt/pull/224 Thanks-to: Andreas Sturmlechner <asturm <AT> gentoo.org> Signed-off-by: Jimi Huotari <chiitoo <AT> gentoo.org> eclass/qmake-utils.eclass | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/eclass/qmake-utils.eclass b/eclass/qmake-utils.eclass index 1f09cbd9..345c574a 100644 --- a/eclass/qmake-utils.eclass +++ b/eclass/qmake-utils.eclass @@ -60,6 +60,42 @@ qt5_get_plugindir() { echo $(qt5_get_libdir)/qt5/plugins } +# @FUNCTION: qt6_get_bindir +# @DESCRIPTION: +# Echoes the directory where Qt6 binaries are installed. +# EPREFIX is already prepended to the returned path. +qt6_get_bindir() { + echo ${EPREFIX}$(qt6_get_libdir)/qt6/bin +} + +# @FUNCTION: qt6_get_headerdir +# @DESCRIPTION: +# Echoes the directory where Qt6 headers are installed. +qt6_get_headerdir() { + echo /usr/include/qt6 +} + +# @FUNCTION: qt6_get_libdir +# @DESCRIPTION: +# Echoes the directory where Qt6 libraries are installed. +qt6_get_libdir() { + echo /usr/$(get_libdir) +} + +# @FUNCTION: qt6_get_mkspecsdir +# @DESCRIPTION: +# Echoes the directory where Qt6 mkspecs are installed. +qt6_get_mkspecsdir() { + echo $(qt6_get_libdir)/qt6/mkspecs +} + +# @FUNCTION: qt6_get_plugindir +# @DESCRIPTION: +# Echoes the directory where Qt6 plugins are installed. +qt6_get_plugindir() { + echo $(qt6_get_libdir)/qt6/plugins +} + # @FUNCTION: eqmake5 # @USAGE: [arguments for qmake] # @DESCRIPTION:
