diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-05-08 19:15:04 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-05-10 08:55:54 +0200 |
commit | 5f81a7d2bc3c6dbafbcd9a7ae965ffb51c9d7ab9 (patch) | |
tree | d5081cde09b38f627b224c1cbcb0d298890b2717 /meta-oe/classes/qmake_base.bbclass | |
parent | ea660c06fc6cbe1a23bc82b8ef4797cec9befdfc (diff) | |
download | meta-openembedded-5f81a7d2bc3c6dbafbcd9a7ae965ffb51c9d7ab9.tar.gz |
qmake_base.bbclass: sync with oe-core class
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'meta-oe/classes/qmake_base.bbclass')
-rw-r--r-- | meta-oe/classes/qmake_base.bbclass | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/meta-oe/classes/qmake_base.bbclass b/meta-oe/classes/qmake_base.bbclass index 577c0fab3..654c7c80f 100644 --- a/meta-oe/classes/qmake_base.bbclass +++ b/meta-oe/classes/qmake_base.bbclass | |||
@@ -1,6 +1,6 @@ | |||
1 | 1 | ||
2 | OE_QMAKE_PLATFORM = "${TARGET_OS}-oe-g++" | 2 | OE_QMAKE_PLATFORM = "${TARGET_OS}-oe-g++" |
3 | QMAKESPEC = "${QMAKE_MKSPEC_PATH}/${OE_QMAKE_PLATFORM}" | 3 | QMAKESPEC := "${QMAKE_MKSPEC_PATH}/${OE_QMAKE_PLATFORM}" |
4 | 4 | ||
5 | # We override this completely to eliminate the -e normally passed in | 5 | # We override this completely to eliminate the -e normally passed in |
6 | EXTRA_OEMAKE = ' MAKEFLAGS= ' | 6 | EXTRA_OEMAKE = ' MAKEFLAGS= ' |
@@ -34,6 +34,20 @@ oe_qmake_mkspecs () { | |||
34 | done | 34 | done |
35 | } | 35 | } |
36 | 36 | ||
37 | do_generate_qt_config_file() { | ||
38 | export QT_CONF_PATH=${WORKDIR}/qt.conf | ||
39 | cat > ${WORKDIR}/qt.conf <<EOF | ||
40 | [Paths] | ||
41 | Prefix = ${STAGING_DIR} | ||
42 | Binaries = ${BUILD_SYS}${bindir_native} | ||
43 | Headers = ${MACHINE}${prefix}/include/qt4 | ||
44 | Plugins = ${MACHINE}${prefix}/lib/qt4/plugins/ | ||
45 | Mkspecs = ${MACHINE}${prefix}/share/qt4/mkspecs/ | ||
46 | EOF | ||
47 | } | ||
48 | |||
49 | addtask generate_qt_config_file after do_patch before do_configure | ||
50 | |||
37 | qmake_base_do_configure() { | 51 | qmake_base_do_configure() { |
38 | case ${QMAKESPEC} in | 52 | case ${QMAKESPEC} in |
39 | *linux-oe-g++|*linux-uclibc-oe-g++|*linux-gnueabi-oe-g++|*linux-uclibceabi-oe-g++) | 53 | *linux-oe-g++|*linux-uclibc-oe-g++|*linux-gnueabi-oe-g++|*linux-uclibceabi-oe-g++) |
@@ -42,7 +56,7 @@ qmake_base_do_configure() { | |||
42 | die Unsupported target ${TARGET_OS} for oe-g++ qmake spec | 56 | die Unsupported target ${TARGET_OS} for oe-g++ qmake spec |
43 | ;; | 57 | ;; |
44 | *) | 58 | *) |
45 | oenote Searching for qmake spec file | 59 | bbnote Searching for qmake spec file |
46 | paths="${QMAKE_MKSPEC_PATH}/qws/${TARGET_OS}-${TARGET_ARCH}-g++" | 60 | paths="${QMAKE_MKSPEC_PATH}/qws/${TARGET_OS}-${TARGET_ARCH}-g++" |
47 | paths="${QMAKE_MKSPEC_PATH}/${TARGET_OS}-g++ $paths" | 61 | paths="${QMAKE_MKSPEC_PATH}/${TARGET_OS}-g++ $paths" |
48 | 62 | ||
@@ -58,7 +72,7 @@ qmake_base_do_configure() { | |||
58 | ;; | 72 | ;; |
59 | esac | 73 | esac |
60 | 74 | ||
61 | oenote "using qmake spec in ${QMAKESPEC}, using profiles '${QMAKE_PROFILES}'" | 75 | bbnote "using qmake spec in ${QMAKESPEC}, using profiles '${QMAKE_PROFILES}'" |
62 | 76 | ||
63 | if [ -z "${QMAKE_PROFILES}" ]; then | 77 | if [ -z "${QMAKE_PROFILES}" ]; then |
64 | PROFILES="`ls *.pro`" | 78 | PROFILES="`ls *.pro`" |
@@ -73,15 +87,15 @@ qmake_base_do_configure() { | |||
73 | if [ ! -z "${EXTRA_QMAKEVARS_POST}" ]; then | 87 | if [ ! -z "${EXTRA_QMAKEVARS_POST}" ]; then |
74 | AFTER="-after" | 88 | AFTER="-after" |
75 | QMAKE_VARSUBST_POST="${EXTRA_QMAKEVARS_POST}" | 89 | QMAKE_VARSUBST_POST="${EXTRA_QMAKEVARS_POST}" |
76 | oenote "qmake postvar substitution: ${EXTRA_QMAKEVARS_POST}" | 90 | bbnote "qmake postvar substitution: ${EXTRA_QMAKEVARS_POST}" |
77 | fi | 91 | fi |
78 | 92 | ||
79 | if [ ! -z "${EXTRA_QMAKEVARS_PRE}" ]; then | 93 | if [ ! -z "${EXTRA_QMAKEVARS_PRE}" ]; then |
80 | QMAKE_VARSUBST_PRE="${EXTRA_QMAKEVARS_PRE}" | 94 | QMAKE_VARSUBST_PRE="${EXTRA_QMAKEVARS_PRE}" |
81 | oenote "qmake prevar substitution: ${EXTRA_QMAKEVARS_PRE}" | 95 | bbnote "qmake prevar substitution: ${EXTRA_QMAKEVARS_PRE}" |
82 | fi | 96 | fi |
83 | 97 | ||
84 | #oenote "Calling '${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST'" | 98 | #bbnote "Calling '${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST'" |
85 | unset QMAKESPEC || true | 99 | unset QMAKESPEC || true |
86 | ${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST || die "Error calling ${OE_QMAKE_QMAKE} on $PROFILES" | 100 | ${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST || die "Error calling ${OE_QMAKE_QMAKE} on $PROFILES" |
87 | } | 101 | } |