diff options
Diffstat (limited to 'classes/qmake5_base.bbclass')
| -rw-r--r-- | classes/qmake5_base.bbclass | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/classes/qmake5_base.bbclass b/classes/qmake5_base.bbclass new file mode 100644 index 00000000..fc90429f --- /dev/null +++ b/classes/qmake5_base.bbclass | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | |||
| 2 | # We override this completely to eliminate the -e normally passed in | ||
| 3 | EXTRA_OEMAKE = ' MAKEFLAGS= ' | ||
| 4 | |||
| 5 | export OE_QMAKE_CC="${CC}" | ||
| 6 | export OE_QMAKE_CFLAGS="${CFLAGS}" | ||
| 7 | export OE_QMAKE_CXX="${CXX}" | ||
| 8 | export OE_QMAKE_LDFLAGS="${LDFLAGS}" | ||
| 9 | export OE_QMAKE_AR="${AR} cqs" | ||
| 10 | export OE_QMAKE_STRIP="echo" | ||
| 11 | export OE_QMAKE_RPATH="-Wl,-rpath-link," | ||
| 12 | |||
| 13 | # do not export STRIP to the environment | ||
| 14 | STRIP[unexport] = "1" | ||
| 15 | |||
| 16 | do_generate_qt_config_file() { | ||
| 17 | export QT_CONF_PATH=${WORKDIR}/qt.conf | ||
| 18 | cat > ${WORKDIR}/qt.conf <<EOF | ||
| 19 | [Paths] | ||
| 20 | Prefix = | ||
| 21 | Binaries = ${STAGING_BINDIR_NATIVE} | ||
| 22 | Headers = ${STAGING_INCDIR}/qt5 | ||
| 23 | Plugins = ${STAGING_LIBDIR}/qt5/plugins/ | ||
| 24 | Libraries = ${STAGING_LIBDIR}/qt5-test | ||
| 25 | Mkspecs = ${STAGING_DATADIR}/qt5/mkspecs/ | ||
| 26 | HostData = ${STAGING_DATADIR_NATIVE}/qt5 | ||
| 27 | HostBinaries = ${STAGING_BINDIR_NATIVE}/ | ||
| 28 | EOF | ||
| 29 | } | ||
| 30 | |||
| 31 | addtask generate_qt_config_file after do_patch before do_configure | ||
| 32 | |||
| 33 | #EXPORT_FUNCTIONS do_configure | ||
| 34 | |||
| 35 | #addtask configure after do_unpack do_patch before do_compile | ||
