summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-02-01 13:48:44 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-02-02 14:30:46 +0100
commit092842b5e00662ae9888a19326a9fe4cf140f4da (patch)
tree1ebf6cf6adacf07425ea92f3d62588e01269975b /mkspecs
parentc8bb939e7e45214f17daf8f576582e5bff2527ea (diff)
parent7644564d754bbee640a091950b77e23586c2d283 (diff)
Merge remote-tracking branch 'origin/5.10' into dev
Conflicts: src/core/download_manager_delegate_qt.cpp src/core/download_manager_delegate_qt.h src/core/render_widget_host_view_qt.cpp src/core/web_contents_adapter.cpp src/webengine/api/qquickwebengineview.cpp tests/auto/widgets/qwebenginedownloads/tst_qwebenginedownloads.cpp Change-Id: I2308414ce257ae5bb0fc9f6493aa111a267ff39b
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/configure.prf13
-rw-r--r--mkspecs/features/functions.prf15
2 files changed, 28 insertions, 0 deletions
diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf
index 8b8fd3efe..f8c154655 100644
--- a/mkspecs/features/configure.prf
+++ b/mkspecs/features/configure.prf
@@ -30,6 +30,13 @@ defineTest(runConfigure) {
include($$QTWEBENGINE_OUT_ROOT/qtwebengine-config.pri)
QT_FOR_CONFIG += webengine-private
+ !qtConfig(webengine-v8-snapshot-support):qtConfig(webengine-v8-snapshot) {
+ skipBuild("V8 snapshot cannot be built. Most likely, the 32-bit host compiler does not work."\
+ "Please make sure you have 32-bit devel environment installed, or "\
+ "configure webengine with '-no-webengine-v8-snapshot'")
+ return(false)
+ }
+
!qtConfig(webengine-gperf) {
skipBuild("Required gperf could not be found.")
return(false)
@@ -53,6 +60,12 @@ defineTest(runConfigure) {
}
linux {
+
+ !qtConfig(webengine-host-pkg-config) {
+ skipBuild("Host pkg-config is required")
+ return(false)
+ }
+
!qtConfig(webengine-system-glibc) {
skipBuild("A suitable version of libc could not be found. See: https://sourceware.org/bugzilla/show_bug.cgi?id=14898")
return(false)
diff --git a/mkspecs/features/functions.prf b/mkspecs/features/functions.prf
index 3b9a400b1..8564bad8a 100644
--- a/mkspecs/features/functions.prf
+++ b/mkspecs/features/functions.prf
@@ -115,3 +115,18 @@ defineTest(skipBuild) {
skipBuildReason = "$$skipBuildReason $${EOL}$$1"
export(skipBuildReason)
}
+
+defineReplace(pkgConfigHostExecutable) {
+ wrapper_name = $$OUT_PWD/pkg-config-host_wrapper.sh
+ wrapper_cmd = $$QMAKE_PKG_CONFIG_HOST
+ isEmpty(wrapper_cmd): wrapper_cmd = pkg-config
+ wrapper_content = \
+ "$$LITERAL_HASH!/bin/sh" \
+ "unset PKG_CONFIG_LIBDIR" \
+ "unset PKG_CONFIG_SYSROOT_DIR" \
+ "exec $$wrapper_cmd \"$@\""
+ !build_pass:!write_file($$wrapper_name, wrapper_content, exe): error()
+ QMAKE_DISTCLEAN += $$wrapper_name
+ export(QMAKE_DISTCLEAN)
+ return($$system_quote($$system_path($$wrapper_name)))
+}