From 48ee17af942ac9860e834c8dec049370e7802a56 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Thu, 28 May 2015 14:58:06 +0200 Subject: qt5: merge .inc and _git.bb files Signed-off-by: Martin Jansa --- recipes-qt/qt5/qtwebengine_git.bb | 72 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) (limited to 'recipes-qt/qt5/qtwebengine_git.bb') diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb index 81c53335..c14a556c 100644 --- a/recipes-qt/qt5/qtwebengine_git.bb +++ b/recipes-qt/qt5/qtwebengine_git.bb @@ -1,5 +1,75 @@ +SUMMARY = "QtWebEngine combines the power of Chromium and Qt" + +LICENSE = "LGPL-3.0 & BSD" +LIC_FILES_CHKSUM = " \ + file://src/core/browser_context_qt.cpp;md5=91895ac1852e1b07202d9716194e8dd8;beginline=1;endline=35 \ + file://src/3rdparty/chromium/LICENSE;md5=537e0b52077bf0a616d0a0c8a79bc9d5 \ + file://LICENSE.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02 \ +" + +DEPENDS += " \ + ninja-native \ + qtbase qtdeclarative qtxmlpatterns qtquickcontrols \ + libdrm fontconfig pixman openssl pango cairo icu pciutils \ + libcap \ +" + +COMPATIBLE_MACHINE = "(-)" +COMPATIBLE_MACHINE_i586 = "(.*)" +COMPATIBLE_MACHINE_x86-64 = "(.*)" +COMPATIBLE_MACHINE_armv6 = "(.*)" +COMPATIBLE_MACHINE_armv7a = "(.*)" + +inherit qmake5 +inherit gettext +inherit pythonnative +inherit perlnative + +require qt5.inc require qt5-git.inc -require ${PN}.inc + +# To avoid trouble start with not separated build directory +SEPB = "${S}" +B = "${SEPB}" + +# Project ERROR: Missing CMake tests. Either create tests in tests/auto/cmake, or disable cmake config file creation with CONFIG-=create_cmake. +EXTRA_QMAKEVARS_POST += "CONFIG-=create_cmake" + +export NINJA_PATH="${STAGING_BINDIR_NATIVE}/ninja" + +do_configure() { + # replace LD with CXX, to workaround a possible gyp inheritssue? + export LD="${CXX}" + export CC="${CC}" + export CXX="${CXX}" + export CC_host="gcc" + export CXX_host="g++" + export QMAKE_MAKE_ARGS="${EXTRA_OEMAKE}" + + # qmake can't find the OE_QMAKE_* variables on it's own so directly passing them as + # arguments here + ${OE_QMAKE_QMAKE} -r ${EXTRA_QMAKEVARS_PRE} QTWEBENGINE_ROOT="${S}" \ + QMAKE_CXX="${OE_QMAKE_CXX}" QMAKE_CC="${OE_QMAKE_CC}" \ + QMAKE_LINK="${OE_QMAKE_LINK}" \ + QMAKE_CFLAGS="${OE_QMAKE_CFLAGS}" \ + QMAKE_CXXFLAGS="${OE_QMAKE_CXXFLAGS}" \ + QMAKE_AR="${OE_QMAKE_AR}" \ + -after ${EXTRA_QMAKEVARS_POST} +} + +do_install_append() { + rmdir ${D}${OE_QMAKE_PATH_PLUGINS}/${BPN} ${D}${OE_QMAKE_PATH_PLUGINS} || true +} +PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" + +# for /usr/share/qt5/qtwebengine_resources.pak +FILES_${PN} += "${OE_QMAKE_PATH_QT_TRANSLATIONS} ${OE_QMAKE_PATH_QT_DATA}" + +RDEPENDS_${PN}-examples += " \ + ${PN}-qmlplugins \ + qtquickcontrols-qmlplugins \ + qtdeclarative-qmlplugins \ +" QT_MODULE_BRANCH = "5.4" QT_MODULE_BRANCH_CHROMIUM = "37.0.2062-based" -- cgit v1.2.3-54-g00ecf