summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2017-11-13 14:22:12 +0100
committerSamuli Piippo <samuli.piippo@qt.io>2017-11-23 08:40:22 +0000
commitaf9c256fc4e99ec4692b4b95bffa85018bd8c767 (patch)
treeb4da6a9f88b7de8427ce77ab928ad2e6aceee713
parent604db3572f4d912634c82bb93487b374fc2afd18 (diff)
downloadmeta-qt5-af9c256fc4e99ec4692b4b95bffa85018bd8c767.tar.gz
Update configure step for webengine
WebEngine configuration uses new configure system and WEBENGINE_CONF configuration variable is no longer in use. It also uses GN instead of GYP. Change-Id: I84bb866ea2ab85f519320ff3915fa99f238f653f Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
-rw-r--r--recipes-qt/qt5/qtwebengine_git.bb51
1 files changed, 20 insertions, 31 deletions
diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb
index 0fe17b78..f6318e15 100644
--- a/recipes-qt/qt5/qtwebengine_git.bb
+++ b/recipes-qt/qt5/qtwebengine_git.bb
@@ -29,12 +29,7 @@ DEPENDS += " \
29 29
30DEPENDS_append_libc-musl = " libexecinfo" 30DEPENDS_append_libc-musl = " libexecinfo"
31 31
32EXTRA_QMAKEVARS_PRE += "GYP_CONFIG+=use_system_yasm \ 32EXTRA_QMAKEVARS_CONFIGURE += "-feature-webengine-system-ninja -no-feature-webengine-system-gn"
33 GYP_CONFIG+=generate_character_data=0 \
34 GYP_CONFIG+=use_allocator=none \
35 GYP_CONFIG+=use_experimental_allocator_shim=false \
36"
37EXTRA_QMAKEVARS_CONFIGURE += "-feature-system-ninja -no-feature-system-gn"
38 33
39# chromium/third_party/openh264/openh264.gyp adds 34# chromium/third_party/openh264/openh264.gyp adds
40# -Wno-format to openh264_cflags_add 35# -Wno-format to openh264_cflags_add
@@ -44,21 +39,26 @@ EXTRA_QMAKEVARS_CONFIGURE += "-feature-system-ninja -no-feature-system-gn"
44# http://errors.yoctoproject.org/Errors/Details/150333/ 39# http://errors.yoctoproject.org/Errors/Details/150333/
45SECURITY_STRINGFORMAT = "" 40SECURITY_STRINGFORMAT = ""
46 41
47# To use system ffmpeg you need to enable also libwebp, opus, vpx 42# To use system ffmpeg you need to enable also libwebp, opus, vpx
48# Only depenedencies available in oe-core are enabled by default 43# Only depenedencies available in oe-core are enabled by default
49PACKAGECONFIG ??= "libwebp flac libevent libxslt speex" 44PACKAGECONFIG ??= "libwebp libevent libpng"
50PACKAGECONFIG[opus] = "WEBENGINE_CONFIG+=use_system_opus,,libopus" 45PACKAGECONFIG[icu] = "-feature-webengine-system-icu,-no-feature-webengine-system-icu,icu"
51PACKAGECONFIG[icu] = "WEBENGINE_CONFIG+=use_system_icu,,icu" 46PACKAGECONFIG[ffmpeg] = "-feature-webengine-system-ffmpeg,-no-feature-webengine-system-ffmpeg,libav"
52PACKAGECONFIG[ffmpeg] = "WEBENGINE_CONFIG+=use_system_ffmpeg,,libav" 47PACKAGECONFIG[webrtc] = "-feature-webengine-webrtc,-no-feature-webengine-webrtc,libvpx"
53PACKAGECONFIG[libwebp] = "WEBENGINE_CONFIG+=use_system_libwebp,,libwebp" 48PACKAGECONFIG[libwebp] = "-feature-webengine-system-libwebp,-no-feature-webengine-system-libwebp,libwebp"
54PACKAGECONFIG[flac] = "WEBENGINE_CONFIG+=use_system_flac,,flac" 49PACKAGECONFIG[opus] = "-feature-webengine-system-opus,-no-feature-webengine-system-opus,libopus"
55PACKAGECONFIG[libevent] = "WEBENGINE_CONFIG+=use_system_libevent,,libevent" 50PACKAGECONFIG[libvpx] = "-feature-webengine-system-libvpx,-no-feature-webengine-system-libvpx,libvpx"
56PACKAGECONFIG[libxslt] = "WEBENGINE_CONFIG+=use_system_libxslt,,libxslt" 51PACKAGECONFIG[libevent] = "-feature-webengine-system-libevent,-no-feature-webengine-system-libevent,libevent"
57PACKAGECONFIG[speex] = "WEBENGINE_CONFIG+=use_system_speex,,speex" 52PACKAGECONFIG[libpng] = "-feature-webengine-system-png,-no-feature-webengine-system-png,libpng"
58PACKAGECONFIG[vpx] = "WEBENGINE_CONFIG+=use_system_vpx,,libvpx" 53PACKAGECONFIG[harfbuzz] = "-feature-webengine-system-harfbuzz,-no-feature-webengine-system-harfbuzz,harfbuzz"
59PACKAGECONFIG[webrtc] = "WEBENGINE_CONFIG+=use_webrtc,,libvpx" 54PACKAGECONFIG[glib] = "-feature-webengine-system-glib,-no-feature-webengine-system-glib,glib"
60 55PACKAGECONFIG[zlib] = "-feature-webengine-system-zlib,-no-feature-webengine-system-zlib,zlib"
61EXTRA_QMAKEVARS_PRE += "${PACKAGECONFIG_CONFARGS}" 56PACKAGECONFIG[protobuf] = "-feature-webengine-system-protobuf,-no-feature-webengine-system-protobuf,protobuf"
57PACKAGECONFIG[jasoncpp] = "-feature-webengine-system-jsoncpp,-no-feature-webengine-system-jsoncpp,jasoncpp"
58PACKAGECONFIG[libxml2] = "-feature-webengine-system-libxml2,-no-feature-webengine-system-libxml2,libxml2"
59PACKAGECONFIG[minizip] = "-feature-webengine-system-minizip,-no-feature-webengine-system-minizip,minizip"
60
61EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}"
62 62
63COMPATIBLE_MACHINE = "(-)" 63COMPATIBLE_MACHINE = "(-)"
64COMPATIBLE_MACHINE_x86 = "(.*)" 64COMPATIBLE_MACHINE_x86 = "(.*)"
@@ -84,17 +84,6 @@ export GN_PKG_CONFIG_HOST = "${STAGING_BINDIR_NATIVE}/pkg-config-native"
84export GN_HOST_TOOLCHAIN_EXTRA_CPPFLAGS = "-I${STAGING_DIR_NATIVE}/usr/include" 84export GN_HOST_TOOLCHAIN_EXTRA_CPPFLAGS = "-I${STAGING_DIR_NATIVE}/usr/include"
85 85
86do_configure() { 86do_configure() {
87 # Disable autodetection from sysroot:
88 sed -e 's/packagesExist([^)]*vpx[^)]*):/false:/g'\
89 -e 's/config_libvpx:/false:/g' \
90 -e 's/config_srtp:/false:/g' \
91 -e 's/config_snappy:/false:/g' \
92 -e 's/packagesExist(nss):/false:/g' \
93 -e 's/packagesExist(minizip, zlib):/false:/g' \
94 -e 's/packagesExist(libwebp,libwebpdemux):/false:/g' \
95 -e 's/packagesExist(libxml-2.0,libxslt):/false:/g'\
96 -e 's/^ *packagesExist($$package):/false:/g' \
97 -i ${S}/mkspecs/features/configure.prf
98 87
99 # qmake can't find the OE_QMAKE_* variables on it's own so directly passing them as 88 # qmake can't find the OE_QMAKE_* variables on it's own so directly passing them as
100 # arguments here 89 # arguments here