diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-28 22:30:58 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-05 12:56:32 +0200 |
commit | 18d2e711d87ffd8c6c341757d5810cef1d05dc39 (patch) | |
tree | 8db50e696aa61966f52e94637a03d3b14313d9c7 /classes | |
parent | d4a726ccf6e9ab1272555161ae4eb69ea508652b (diff) | |
download | meta-qt5-18d2e711d87ffd8c6c341757d5810cef1d05dc39.tar.gz |
qmake5_base: add qmake5_base_do_configure which allows to declare QMAKE_VARSUBST_*
* don't export it, let recipe decide where to call it or even if it
should be called (native recipes are not using it)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/qmake5_base.bbclass | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/classes/qmake5_base.bbclass b/classes/qmake5_base.bbclass index 5f83d12d..dd58dacf 100644 --- a/classes/qmake5_base.bbclass +++ b/classes/qmake5_base.bbclass | |||
@@ -91,3 +91,26 @@ EOF | |||
91 | # HostSpec The location where to install host mkspec | 91 | # HostSpec The location where to install host mkspec |
92 | 92 | ||
93 | addtask generate_qt_config_file after do_patch before do_configure | 93 | addtask generate_qt_config_file after do_patch before do_configure |
94 | |||
95 | qmake5_base_do_configure () { | ||
96 | if [ -z "${QMAKE_PROFILES}" ]; then | ||
97 | PROFILES="`ls ${S}/*.pro`" | ||
98 | else | ||
99 | PROFILES="${QMAKE_PROFILES}" | ||
100 | bbnote "qmake using profiles: '${QMAKE_PROFILES}'" | ||
101 | fi | ||
102 | |||
103 | if [ ! -z "${EXTRA_QMAKEVARS_POST}" ]; then | ||
104 | AFTER="-after" | ||
105 | QMAKE_VARSUBST_POST="${EXTRA_QMAKEVARS_POST}" | ||
106 | bbnote "qmake postvar substitution: '${EXTRA_QMAKEVARS_POST}'" | ||
107 | fi | ||
108 | |||
109 | if [ ! -z "${EXTRA_QMAKEVARS_PRE}" ]; then | ||
110 | QMAKE_VARSUBST_PRE="${EXTRA_QMAKEVARS_PRE}" | ||
111 | bbnote "qmake prevar substitution: '${EXTRA_QMAKEVARS_PRE}'" | ||
112 | fi | ||
113 | |||
114 | CMD="${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_DEBUG_OUTPUT} -r $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST" | ||
115 | $CMD || die "Error calling $CMD" | ||
116 | } | ||