Files
meta-qt5/recipes-qt/qt5/qtwebengine_git.bb
Martin Jansa 3f5430de74 qtwebengine: fix build with newer glibc-2.22
* netdb.h staged by glibc-2.22 recipe defines struct addrinfo inside
  __USE_XOPEN2K unlike other versions which are using __USE_POSIX
* fixes:
  | ../../../src/3rdparty/chromium/third_party/boringssl/src/crypto/bio/socket_helper.c: In function 'bio_ip_and_port_to_socket_and_addr':
  | ../../../src/3rdparty/chromium/third_party/boringssl/src/crypto/bio/socket_helper.c:40:19: error: storage size of 'hint' isn't known
  |    struct addrinfo hint, *result, *cur;
  |                    ^
  | ../../../src/3rdparty/chromium/third_party/boringssl/src/crypto/bio/socket_helper.c:58:36: error: dereferencing pointer to incomplete type
  |    for (cur = result; cur; cur = cur->ai_next) {
  |                                     ^

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-08 16:13:58 +02:00

93 lines
3.0 KiB
BlitzBasic

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=5fe719c44250955a5d5f8fb15fc8b1da;beginline=1;endline=35 \
file://src/3rdparty/chromium/LICENSE;md5=537e0b52077bf0a616d0a0c8a79bc9d5 \
file://LICENSE.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
"
DEPENDS += " \
ninja-native \
qtwebchannel \
qtbase qtdeclarative qtxmlpatterns qtquickcontrols \
libdrm fontconfig pixman openssl pango cairo icu pciutils \
libcap \
"
COMPATIBLE_MACHINE = "(-)"
COMPATIBLE_MACHINE_x86 = "(.*)"
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
# 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_CHROMIUM = "40.0.2214-based"
SRC_URI += " \
${QT_GIT}/qtwebengine-chromium.git;name=chromium;branch=${QT_MODULE_BRANCH_CHROMIUM};destsuffix=git/src/3rdparty \
file://0001-functions.prf-Don-t-match-QMAKE_EXT_CPP-or-QMAKE_EXT.patch \
file://0002-functions.prf-Make-sure-we-only-use-the-file-name-to.patch \
file://0003-functions.prf-allow-build-for-linux-oe-g-platform.patch \
file://0004-Generate-usable-qmake_extras.gypi.patch \
file://0001-chromium-base.gypi-include-atomicops_internals_x86_g.patch \
file://0002-chromium-third_party-boringssl-Demand-for-newer-POSI.patch \
"
SRCREV_qtwebengine = "c6573119006014ff7bc0efb2da16ea35d302a1ec"
SRCREV_chromium = "41a1a031cd69e187a9608359ffe56652dcaaa6c5"
SRCREV = "${SRCREV_qtwebengine}"
SRCREV_FORMAT = "qtwebengine"
S = "${WORKDIR}/git"