diff options
| -rw-r--r-- | recipes-qt/qt5/qtwebengine_git.bb | 24 |
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)}" | |||
| 26 | DEPENDS += "yasm-native" | 27 | DEPENDS += "yasm-native" |
| 27 | EXTRA_QMAKEVARS_PRE += "GYP_CONFIG+=use_system_yasm" | 28 | EXTRA_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 | ||
| 32 | PACKAGECONFIG ??= "libwebp flac libevent libxslt speex" | ||
| 33 | PACKAGECONFIG[opus] = "WEBENGINE_CONFIG+=use_system_opus,,libopus" | ||
| 34 | PACKAGECONFIG[icu] = "WEBENGINE_CONFIG+=use_system_icu,,icu" | ||
| 35 | PACKAGECONFIG[ffmpeg] = "WEBENGINE_CONFIG+=use_system_ffmpeg,,libav" | ||
| 36 | PACKAGECONFIG[libwebp] = "WEBENGINE_CONFIG+=use_system_libwebp,,libwebp" | ||
| 37 | PACKAGECONFIG[flac] = "WEBENGINE_CONFIG+=use_system_flac,,flac" | ||
| 38 | PACKAGECONFIG[libevent] = "WEBENGINE_CONFIG+=use_system_libevent,,libevent" | ||
| 39 | PACKAGECONFIG[libxslt] = "WEBENGINE_CONFIG+=use_system_libxslt,,libxslt" | ||
| 40 | PACKAGECONFIG[speex] = "WEBENGINE_CONFIG+=use_system_speex,,speex" | ||
| 41 | PACKAGECONFIG[vpx] = "WEBENGINE_CONFIG+=use_system_vpx,,libvpx" | ||
| 42 | |||
| 43 | EXTRA_QMAKEVARS_PRE += "${EXTRA_OECONF}" | ||
| 44 | |||
| 29 | COMPATIBLE_MACHINE = "(-)" | 45 | COMPATIBLE_MACHINE = "(-)" |
| 30 | COMPATIBLE_MACHINE_x86 = "(.*)" | 46 | COMPATIBLE_MACHINE_x86 = "(.*)" |
| 31 | COMPATIBLE_MACHINE_x86-64 = "(.*)" | 47 | COMPATIBLE_MACHINE_x86-64 = "(.*)" |
| @@ -37,6 +53,10 @@ inherit gettext | |||
| 37 | inherit pythonnative | 53 | inherit pythonnative |
| 38 | inherit perlnative | 54 | inherit perlnative |
| 39 | 55 | ||
| 56 | # we don't want gettext.bbclass to append --enable-nls | ||
| 57 | def gettext_oeconf(d): | ||
| 58 | return "" | ||
| 59 | |||
| 40 | require qt5.inc | 60 | require qt5.inc |
| 41 | require qt5-git.inc | 61 | require 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 |
