2012-11-15 19:38:27 +00:00
|
|
|
require qt5.inc
|
|
|
|
|
|
|
|
SRC_URI += " \
|
2013-04-03 12:13:27 +00:00
|
|
|
file://0001-Add-linux-oe-g-platform.patch \
|
|
|
|
file://0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \
|
|
|
|
file://0003-Add-external-hostbindir-option.patch \
|
|
|
|
file://0004-qmake-is-already-built-in-qtbase-native.patch \
|
|
|
|
file://0005-Allow-building-a-separate-qmake-for-the-target.patch \
|
|
|
|
file://0006-qt_functions-temporary-remove-isEmpty-check.patch \
|
2012-11-15 19:38:27 +00:00
|
|
|
"
|
|
|
|
|
2013-04-05 17:50:23 +00:00
|
|
|
DEPENDS += "qtbase-native virtual/libgl freetype jpeg libpng zlib openssl glib-2.0 ${ICU} udev"
|
2012-12-12 05:19:48 +00:00
|
|
|
|
2012-12-02 18:04:53 +00:00
|
|
|
# to provide xcb/xcb_icccm.h, xcb/xcb_image.h, xcb/xcb_keysyms.h and dbus/dbus.h
|
2013-03-30 03:04:20 +00:00
|
|
|
XCB_DEPENDS += "xcb-util-wm xcb-util-image xcb-util-keysyms dbus"
|
2012-12-12 05:09:18 +00:00
|
|
|
# reenable when we switch to "-qt-xcb" and build of
|
2013-03-30 03:04:20 +00:00
|
|
|
# DEPENDS += "${XCB_DEPENDS}"
|
|
|
|
# QT_MODULE_FLAGS = "-qt-xcb"
|
2012-12-12 05:09:18 +00:00
|
|
|
# src/platformsupport/glxconvenience/ is resolved to be before build of
|
|
|
|
# src/plugins/platforms/xcb/
|
2012-11-15 19:38:27 +00:00
|
|
|
|
2012-12-12 05:09:18 +00:00
|
|
|
QT_MODULE_FLAGS = "-no-xcb"
|
2012-11-18 17:02:52 +00:00
|
|
|
|
2012-11-15 19:38:27 +00:00
|
|
|
INC_PR = "r0"
|
|
|
|
|
|
|
|
QT_BASE_NAME = "qt5"
|
|
|
|
QT_DIR_NAME = "qt5"
|
|
|
|
|
|
|
|
# Qt uses atomic instructions not supported in thumb mode
|
|
|
|
ARM_INSTRUCTION_SET = "arm"
|
|
|
|
|
|
|
|
inherit qmake5
|
2012-12-12 05:19:48 +00:00
|
|
|
|
2013-04-03 12:13:27 +00:00
|
|
|
|
|
|
|
#do_generate_qt_config_file() {
|
|
|
|
# cat > ${WORKDIR}/qt.conf <<EOF
|
|
|
|
#[Paths]
|
|
|
|
#Binaries = ${bindir}
|
|
|
|
#Libraries = ${libdir}
|
|
|
|
#Prefix = ${prefix}
|
|
|
|
#Headers = ${includedir}/${QT_DIR_NAME}
|
|
|
|
#Data = ${datadir}/${QT_DIR_NAME}
|
|
|
|
#ArchData = ${libdir}/${QT_DIR_NAME}
|
|
|
|
#Documentation = ${docdir}/${QT_DIR_NAME}
|
|
|
|
#HostSpec = ${QMAKE_MKSPEC_PATH_NATIVE}
|
|
|
|
##HostData = ${S}
|
|
|
|
#TargetSpec = ${S}
|
|
|
|
#ExternalHostBinaries = ${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}
|
|
|
|
#EOF
|
|
|
|
#}
|
2012-12-12 05:19:48 +00:00
|
|
|
|
2013-03-30 03:04:20 +00:00
|
|
|
# qtbase is exception, we need to use mkspecs from ${S}
|
2013-04-03 12:13:27 +00:00
|
|
|
# QMAKE_MKSPEC_PATH = "${S}/mkspecs"
|
|
|
|
QMAKE_MKSPEC_PATH = "${B}"
|
2012-12-15 00:39:59 +00:00
|
|
|
|
2013-03-30 03:04:20 +00:00
|
|
|
do_configure_append() {
|
2013-04-03 12:13:27 +00:00
|
|
|
if [ ! -e ${B}/bin/qmake ]; then
|
|
|
|
mkdir ${B}/bin
|
|
|
|
ln -sf ${OE_QMAKE_QMAKE} ${B}/bin/qmake
|
2013-04-03 19:52:54 +00:00
|
|
|
fi
|
2013-04-03 12:13:27 +00:00
|
|
|
|
|
|
|
${S}/configure -v \
|
2012-12-12 05:19:48 +00:00
|
|
|
-opensource -confirm-license \
|
2013-04-03 12:13:27 +00:00
|
|
|
-sysroot ${STAGING_DIR_TARGET} \
|
|
|
|
-no-gcc-sysroot \
|
2012-12-12 05:19:48 +00:00
|
|
|
-prefix ${prefix} \
|
2013-04-03 12:13:27 +00:00
|
|
|
-bindir ${bindir}/${QT_DIR_NAME} \
|
|
|
|
-libdir ${libdir}/${QT_DIR_NAME} \
|
|
|
|
-datadir ${datadir}/${QT_DIR_NAME} \
|
2012-12-12 05:19:48 +00:00
|
|
|
-sysconfdir ${sysconfdir}/${QT_DIR_NAME} \
|
|
|
|
-docdir ${docdir}/${QT_DIR_NAME} \
|
|
|
|
-headerdir ${includedir}/${QT_DIR_NAME} \
|
|
|
|
-plugindir ${libdir}/${QT_DIR_NAME}/plugins \
|
|
|
|
-importdir ${libdir}/${QT_DIR_NAME}/imports \
|
|
|
|
-translationdir ${datadir}/${QT_DIR_NAME}/translations \
|
|
|
|
-examplesdir ${bindir}/${QT_DIR_NAME}/examples \
|
2013-04-03 12:13:27 +00:00
|
|
|
-external-hostbindir ${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME} \
|
2013-03-30 03:04:20 +00:00
|
|
|
-platform ${OE_QMAKESPEC} \
|
2013-04-03 12:13:27 +00:00
|
|
|
-xplatform linux-oe-g++ \
|
2012-12-12 05:19:48 +00:00
|
|
|
${QT_CONFIG_FLAGS}
|
|
|
|
|
2013-04-03 12:13:27 +00:00
|
|
|
${OE_QMAKE_QMAKE} -r -d ${S}
|
2012-12-12 05:19:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_compile_append() {
|
|
|
|
# Build qmake for the target arch
|
|
|
|
cd ${S}/qmake
|
|
|
|
${OE_QMAKE_QMAKE}
|
|
|
|
oe_runmake CC="${CC}" CXX="${CXX}"
|
|
|
|
cd ${S}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install_append() {
|
|
|
|
### Fix up the binaries to the right location
|
|
|
|
### TODO: FIX
|
|
|
|
install -d ${D}${bindir}/
|
|
|
|
mv ${D}/${STAGING_BINDIR_NATIVE}/* ${D}${bindir}/
|
|
|
|
rm -rf ${D}/${STAGING_BINDIR_NATIVE}/
|
|
|
|
|
|
|
|
# Install the right arch qmake
|
|
|
|
rm ${D}/${bindir}/qmake
|
|
|
|
install -m 0755 bin/qmake2 ${D}${bindir}/qmake
|
|
|
|
}
|
2012-12-12 18:11:06 +00:00
|
|
|
|
|
|
|
PACKAGES =. "${PN}-fonts "
|
|
|
|
FILES_${PN}-fonts = "${libdir}/fonts"
|