summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtwebengine_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qtwebengine_git.bb')
-rw-r--r--recipes-qt/qt5/qtwebengine_git.bb24
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb
index 0d6cd8f4..957931f8 100644
--- a/recipes-qt/qt5/qtwebengine_git.bb
+++ b/recipes-qt/qt5/qtwebengine_git.bb
@@ -13,6 +13,7 @@ DEPENDS += " \
13 ninja-native \ 13 ninja-native \
14 qtwebchannel \ 14 qtwebchannel \
15 qtbase qtdeclarative qtxmlpatterns qtquickcontrols \ 15 qtbase qtdeclarative qtxmlpatterns qtquickcontrols \
16 qtlocation \
16 libdrm fontconfig pixman openssl pango cairo icu pciutils \ 17 libdrm fontconfig pixman openssl pango cairo icu pciutils \
17 libcap \ 18 libcap \
18" 19"
@@ -26,6 +27,21 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'libxscrnsaver', '', d)}"
26DEPENDS += "yasm-native" 27DEPENDS += "yasm-native"
27EXTRA_QMAKEVARS_PRE += "GYP_CONFIG+=use_system_yasm" 28EXTRA_QMAKEVARS_PRE += "GYP_CONFIG+=use_system_yasm"
28 29
30# To use system ffmpeg you need to enable also libwebp, opus, vpx
31# Only depenedencies available in oe-core are enabled by default
32PACKAGECONFIG ??= "libwebp flac libevent libxslt speex"
33PACKAGECONFIG[opus] = "WEBENGINE_CONFIG+=use_system_opus,,libopus"
34PACKAGECONFIG[icu] = "WEBENGINE_CONFIG+=use_system_icu,,icu"
35PACKAGECONFIG[ffmpeg] = "WEBENGINE_CONFIG+=use_system_ffmpeg,,libav"
36PACKAGECONFIG[libwebp] = "WEBENGINE_CONFIG+=use_system_libwebp,,libwebp"
37PACKAGECONFIG[flac] = "WEBENGINE_CONFIG+=use_system_flac,,flac"
38PACKAGECONFIG[libevent] = "WEBENGINE_CONFIG+=use_system_libevent,,libevent"
39PACKAGECONFIG[libxslt] = "WEBENGINE_CONFIG+=use_system_libxslt,,libxslt"
40PACKAGECONFIG[speex] = "WEBENGINE_CONFIG+=use_system_speex,,speex"
41PACKAGECONFIG[vpx] = "WEBENGINE_CONFIG+=use_system_vpx,,libvpx"
42
43EXTRA_QMAKEVARS_PRE += "${EXTRA_OECONF}"
44
29COMPATIBLE_MACHINE = "(-)" 45COMPATIBLE_MACHINE = "(-)"
30COMPATIBLE_MACHINE_x86 = "(.*)" 46COMPATIBLE_MACHINE_x86 = "(.*)"
31COMPATIBLE_MACHINE_x86-64 = "(.*)" 47COMPATIBLE_MACHINE_x86-64 = "(.*)"
@@ -37,6 +53,10 @@ inherit gettext
37inherit pythonnative 53inherit pythonnative
38inherit perlnative 54inherit perlnative
39 55
56# we don't want gettext.bbclass to append --enable-nls
57def gettext_oeconf(d):
58 return ""
59
40require qt5.inc 60require qt5.inc
41require qt5-git.inc 61require qt5-git.inc
42 62
@@ -54,6 +74,10 @@ do_configure() {
54 export CC_host="gcc" 74 export CC_host="gcc"
55 export CXX_host="g++" 75 export CXX_host="g++"
56 export QMAKE_MAKE_ARGS="${EXTRA_OEMAKE}" 76 export QMAKE_MAKE_ARGS="${EXTRA_OEMAKE}"
77 export QMAKE_CACHE_EVAL="${EXTRA_OECONF}"
78
79 # Disable autodetection from sysroot:
80 sed -i 's/packagesExist([^)]*vpx[^)]*):/false:/g; s/config_srtp:/false:/g; s/config_snappy:/false:/g; s/packagesExist(nss):/false:/g; s/packagesExist(minizip, zlib):/false:/g; s/packagesExist(libwebp,libwebpdemux):/false:/g; s/packagesExist(libxml-2.0,libxslt):/false:/g; s/^ *packagesExist($$package):/false:/g' ${S}/tools/qmake/mkspecs/features/configure.prf
57 81
58 # qmake can't find the OE_QMAKE_* variables on it's own so directly passing them as 82 # qmake can't find the OE_QMAKE_* variables on it's own so directly passing them as
59 # arguments here 83 # arguments here