1 |
commit: c31705a9434bafd51a899315a9c67c48334193f2 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 8 19:11:17 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 11 16:43:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c31705a9 |
7 |
|
8 |
qmake-utils.eclass: Reuse qt5_get_qmake_args in eqmake5 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
eclass/qmake-utils.eclass | 28 +++++----------------------- |
13 |
1 file changed, 5 insertions(+), 23 deletions(-) |
14 |
|
15 |
diff --git a/eclass/qmake-utils.eclass b/eclass/qmake-utils.eclass |
16 |
index a4be44fa65a5..a86ce1fbabb8 100644 |
17 |
--- a/eclass/qmake-utils.eclass |
18 |
+++ b/eclass/qmake-utils.eclass |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2021 Gentoo Authors |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
# @ECLASS: qmake-utils.eclass |
25 |
@@ -102,28 +102,10 @@ eqmake5() { |
26 |
|
27 |
ebegin "Running qmake" |
28 |
|
29 |
- "$(qt5_get_bindir)"/qmake \ |
30 |
- -makefile \ |
31 |
- QMAKE_AR="$(tc-getAR) cqs" \ |
32 |
- QMAKE_CC="$(tc-getCC)" \ |
33 |
- QMAKE_LINK_C="$(tc-getCC)" \ |
34 |
- QMAKE_LINK_C_SHLIB="$(tc-getCC)" \ |
35 |
- QMAKE_CXX="$(tc-getCXX)" \ |
36 |
- QMAKE_LINK="$(tc-getCXX)" \ |
37 |
- QMAKE_LINK_SHLIB="$(tc-getCXX)" \ |
38 |
- QMAKE_OBJCOPY="$(tc-getOBJCOPY)" \ |
39 |
- QMAKE_RANLIB= \ |
40 |
- QMAKE_STRIP= \ |
41 |
- QMAKE_CFLAGS="${CFLAGS}" \ |
42 |
- QMAKE_CFLAGS_RELEASE= \ |
43 |
- QMAKE_CFLAGS_DEBUG= \ |
44 |
- QMAKE_CXXFLAGS="${CXXFLAGS}" \ |
45 |
- QMAKE_CXXFLAGS_RELEASE= \ |
46 |
- QMAKE_CXXFLAGS_DEBUG= \ |
47 |
- QMAKE_LFLAGS="${LDFLAGS}" \ |
48 |
- QMAKE_LFLAGS_RELEASE= \ |
49 |
- QMAKE_LFLAGS_DEBUG= \ |
50 |
- "$@" |
51 |
+ local -a args |
52 |
+ mapfile -t args <<<"$(qt5_get_qmake_args)" |
53 |
+ # NB: we're passing literal quotes in but qmake doesn't seem to mind |
54 |
+ "$(qt5_get_bindir)"/qmake -makefile "${args[@]}" "$@" |
55 |
|
56 |
if ! eend $? ; then |
57 |
echo |