2 OE_QMAKE_PLATFORM = "${TARGET_OS}-oe-g++"
3 QMAKESPEC = "${QMAKE_MKSPEC_PATH}/${OE_QMAKE_PLATFORM}"
5 # We override this completely to eliminate the -e normally passed in
6 EXTRA_OEMAKE = ' MAKEFLAGS= '
8 export OE_QMAKE_CC="${CC}"
9 export OE_QMAKE_CFLAGS="${CFLAGS}"
10 export OE_QMAKE_CXX="${CXX}"
11 export OE_QMAKE_LDFLAGS="${LDFLAGS}"
12 export OE_QMAKE_AR="${AR}"
13 export OE_QMAKE_STRIP="echo"
14 export OE_QMAKE_RPATH="-Wl,-rpath-link,"
16 # do not export STRIP to the environment
19 # default to qte2 via bb.conf, inherit qt3x11 to configure for qt3x11
22 mkdir -p mkspecs/${OE_QMAKE_PLATFORM}
23 for f in ${QMAKE_MKSPEC_PATH}/${OE_QMAKE_PLATFORM}/*; do
26 if [ -f mkspecs/${OE_QMAKE_PLATFORM}/$lnk ]; then
27 ln -s $lnk mkspecs/${OE_QMAKE_PLATFORM}/`basename $f`
29 cp $f mkspecs/${OE_QMAKE_PLATFORM}/
32 cp $f mkspecs/${OE_QMAKE_PLATFORM}/
37 qmake_base_do_configure() {
39 *linux-oe-g++|*linux-uclibc-oe-g++|*linux-gnueabi-oe-g++|*linux-uclibceabi-oe-g++)
42 die Unsupported target ${TARGET_OS} for oe-g++ qmake spec
45 oenote Searching for qmake spec file
46 paths="${QMAKE_MKSPEC_PATH}/qws/${TARGET_OS}-${TARGET_ARCH}-g++"
47 paths="${QMAKE_MKSPEC_PATH}/${TARGET_OS}-g++ $paths"
49 if (echo "${TARGET_ARCH}"|grep -q 'i.86'); then
50 paths="${QMAKE_MKSPEC_PATH}/qws/${TARGET_OS}-x86-g++ $paths"
61 oenote "using qmake spec in ${QMAKESPEC}, using profiles '${QMAKE_PROFILES}'"
63 if [ -z "${QMAKE_PROFILES}" ]; then
66 PROFILES="${QMAKE_PROFILES}"
69 if [ -z "$PROFILES" ]; then
70 die "QMAKE_PROFILES not set and no profiles found in $PWD"
73 if [ ! -z "${EXTRA_QMAKEVARS_POST}" ]; then
75 QMAKE_VARSUBST_POST="${EXTRA_QMAKEVARS_POST}"
76 oenote "qmake postvar substitution: ${EXTRA_QMAKEVARS_POST}"
79 if [ ! -z "${EXTRA_QMAKEVARS_PRE}" ]; then
80 QMAKE_VARSUBST_PRE="${EXTRA_QMAKEVARS_PRE}"
81 oenote "qmake prevar substitution: ${EXTRA_QMAKEVARS_PRE}"
84 #oenote "Calling '${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST'"
85 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"
89 EXPORT_FUNCTIONS do_configure
91 addtask configure after do_unpack do_patch before do_compile