diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-05-08 16:04:20 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-05-11 18:43:42 +0200 |
commit | ba302ca3c7f0b6eac9f280e57fcc6f75fb5981f5 (patch) | |
tree | cd2c42a5c72d60a350026a3222c845155830c3fb /eclass | |
parent | dev-python/sip: Backport PEP517 argument passing support (diff) | |
download | gentoo-ba302ca3c7f0b6eac9f280e57fcc6f75fb5981f5.tar.gz gentoo-ba302ca3c7f0b6eac9f280e57fcc6f75fb5981f5.tar.bz2 gentoo-ba302ca3c7f0b6eac9f280e57fcc6f75fb5981f5.zip |
qmake-utils.eclass: Add a function to get qmake args
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/qmake-utils.eclass | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/eclass/qmake-utils.eclass b/eclass/qmake-utils.eclass index 1f09cbd9ca77..a4be44fa65a5 100644 --- a/eclass/qmake-utils.eclass +++ b/eclass/qmake-utils.eclass @@ -60,6 +60,33 @@ qt5_get_plugindir() { echo $(qt5_get_libdir)/qt5/plugins } +# @FUNCTION: qt5_get_qmake_args +# @DESCRIPTION: +# Echoes a multi-line string containing arguments to pass to qmake. +qt5_get_qmake_args() { + cat <<-EOF + QMAKE_AR="$(tc-getAR) cqs" + QMAKE_CC="$(tc-getCC)" + QMAKE_LINK_C="$(tc-getCC)" + QMAKE_LINK_C_SHLIB="$(tc-getCC)" + QMAKE_CXX="$(tc-getCXX)" + QMAKE_LINK="$(tc-getCXX)" + QMAKE_LINK_SHLIB="$(tc-getCXX)" + QMAKE_OBJCOPY="$(tc-getOBJCOPY)" + QMAKE_RANLIB= + QMAKE_STRIP= + QMAKE_CFLAGS="${CFLAGS}" + QMAKE_CFLAGS_RELEASE= + QMAKE_CFLAGS_DEBUG= + QMAKE_CXXFLAGS="${CXXFLAGS}" + QMAKE_CXXFLAGS_RELEASE= + QMAKE_CXXFLAGS_DEBUG= + QMAKE_LFLAGS="${LDFLAGS}" + QMAKE_LFLAGS_RELEASE= + QMAKE_LFLAGS_DEBUG= + EOF +} + # @FUNCTION: eqmake5 # @USAGE: [arguments for qmake] # @DESCRIPTION: |