diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-04-27 10:03:12 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-04-27 10:03:43 +0200 |
commit | 10e66c6dd0b8a8dd17252d6408c13b689fac6995 (patch) | |
tree | fbdddb33a818b5495b24f3949f7406b0b916e78c /src/buildtools | |
parent | d0852f90a24673ccc9ef0b93e224ba37b674644d (diff) | |
parent | 75412200db05ddc5ee2b9aea367b580d8b0c438e (diff) |
Merge remote-tracking branch 'origin/5.15' into dev
Conflicts:
configure.pri
src/pdf/api/qpdfpagerenderer.h
Change-Id: I7e68277080e29238bbfe8511539ea75b2db89489
Diffstat (limited to 'src/buildtools')
-rw-r--r-- | src/buildtools/config/common.pri | 1 | ||||
-rw-r--r-- | src/buildtools/config/linux.pri | 5 | ||||
-rw-r--r-- | src/buildtools/config/mac_osx.pri | 9 | ||||
-rw-r--r-- | src/buildtools/config/windows.pri | 7 | ||||
-rw-r--r-- | src/buildtools/configure.json | 85 |
5 files changed, 45 insertions, 62 deletions
diff --git a/src/buildtools/config/common.pri b/src/buildtools/config/common.pri index f2b4a854e..9824897f0 100644 --- a/src/buildtools/config/common.pri +++ b/src/buildtools/config/common.pri @@ -16,6 +16,7 @@ gn_args += \ enable_reporting=false \ enable_resource_whitelist_generation=false \ enable_swiftshader=false \ + angle_enable_swiftshader=false \ enable_web_auth=false \ enable_web_speech=false \ enable_widevine=true \ diff --git a/src/buildtools/config/linux.pri b/src/buildtools/config/linux.pri index 2aa345c21..c02af3909 100644 --- a/src/buildtools/config/linux.pri +++ b/src/buildtools/config/linux.pri @@ -192,6 +192,11 @@ host_build { } else { gn_args += use_alsa=false } + qtConfig(build-qtwebengine-core):qtConfig(webengine-system-xkbcommon) { + gn_args += use_xkbcommon=true + } else { + gn_args += use_xkbcommon=false + } !packagesExist(libpci): gn_args += use_libpci=false qtConfig(build-qtwebengine-core):qtConfig(webengine-ozone-x11) { diff --git a/src/buildtools/config/mac_osx.pri b/src/buildtools/config/mac_osx.pri index a7ed61214..9373928de 100644 --- a/src/buildtools/config/mac_osx.pri +++ b/src/buildtools/config/mac_osx.pri @@ -9,6 +9,10 @@ isEmpty(QMAKE_MAC_SDK_VERSION) { isEmpty(QMAKE_MAC_SDK_VERSION): error("Could not resolve SDK version for \'$${QMAKE_MAC_SDK}\'") } +# chromium/build/mac/find_sdk.py expects the SDK version (mac_sdk_min) in Major.Minor format. +# If Patch version is provided it fails with "Exception: No Major.Minor.Patch+ SDK found" +QMAKE_MAC_SDK_VERSION_MAJOR_MINOR = $$section(QMAKE_MAC_SDK_VERSION, ".", 0, 1) + QMAKE_CLANG_DIR = "/usr" QMAKE_CLANG_PATH = $$eval(QMAKE_MAC_SDK.macx-clang.$${QMAKE_MAC_SDK}.QMAKE_CXX) !isEmpty(QMAKE_CLANG_PATH) { @@ -28,8 +32,9 @@ gn_args += \ clang_base_path=\"$${QMAKE_CLANG_DIR}\" \ clang_use_chrome_plugins=false \ mac_deployment_target=\"$${QMAKE_MACOSX_DEPLOYMENT_TARGET}\" \ - mac_sdk_min=\"$${QMAKE_MAC_SDK_VERSION}\" \ - use_external_popup_menu=false + mac_sdk_min=\"$${QMAKE_MAC_SDK_VERSION_MAJOR_MINOR}\" \ + use_external_popup_menu=false \ + angle_enable_vulkan=false qtConfig(build-qtwebengine-core):qtConfig(webengine-spellchecker) { qtConfig(webengine-native-spellchecker): gn_args += use_browser_spellchecker=true diff --git a/src/buildtools/config/windows.pri b/src/buildtools/config/windows.pri index 2e5ebb876..a910e3e31 100644 --- a/src/buildtools/config/windows.pri +++ b/src/buildtools/config/windows.pri @@ -56,12 +56,17 @@ defineTest(usingMSVC32BitCrossCompiler) { } CL_DIR = $$system_path($$CL_DIR) CL_DIR = $$split(CL_DIR, \\) - CL_PLATFORM = $$last(CL_DIR) + CL_PLATFORM = $$take_last(CL_DIR) equals(CL_PLATFORM, amd64_x86): return(true) + equals(CL_PLATFORM, x86)|equals(CL_PLATFORM, x64) { + CL_PLATFORM = $$take_last(CL_DIR) + equals(CL_PLATFORM, HostX64): return(true) + } return(false) } msvc:contains(QT_ARCH, "i386"):!usingMSVC32BitCrossCompiler() { + warning(Full debug info is disabled for chromium due to 32bit compiler) # The 32 bit MSVC linker runs out of memory if we do not remove all debug information. force_debug_info: gn_args -= symbol_level=1 gn_args *= symbol_level=0 diff --git a/src/buildtools/configure.json b/src/buildtools/configure.json index dd82abff1..27bd3ebf8 100644 --- a/src/buildtools/configure.json +++ b/src/buildtools/configure.json @@ -32,6 +32,12 @@ { "type": "pkgConfig", "args": "libdrm" } ] }, + "webengine-xkbcommon": { + "label": "xkbcommon", + "sources": [ + { "type": "pkgConfig", "args": "xkbcommon" } + ] + }, "webengine-xcomposite": { "label": "xcomposite", "sources": [ @@ -143,10 +149,13 @@ "test" : { "main": [ "std::string s;", - "RE2 re2(s);" + "re2::FilteredRE2 fre2(1);", + "int id = 0;", + "fre2.Add(s, {}, &id);", + "const RE2 &re2 = fre2.GetRE2(id);" ] }, - "headers": "re2/re2.h", + "headers": "re2/filtered_re2.h", "sources": [ { "type": "pkgConfig", "args": "re2" } ] @@ -203,36 +212,6 @@ { "type": "pkgConfig", "args": "libxml-2.0 libxslt" } ] }, - "webengine-libdrm": { - "label": "libdrm", - "sources": [ - { "type": "pkgConfig", "args": "libdrm" } - ] - }, - "webengine-xcomposite": { - "label": "xcomposite", - "sources": [ - { "type": "pkgConfig", "args": "xcomposite" } - ] - }, - "webengine-xcursor": { - "label": "xcursor", - "sources": [ - { "type": "pkgConfig", "args": "xcursor" } - ] - }, - "webengine-xi": { - "label": "xi", - "sources": [ - { "type": "pkgConfig", "args": "xi" } - ] - }, - "webengine-xtst": { - "label": "xtst", - "sources": [ - { "type": "pkgConfig", "args": "xtst" } - ] - }, "webengine-ffmpeg": { "label": "libavcodec libavformat libavutil", "sources": [ @@ -242,7 +221,7 @@ "webengine-opus": { "label": "opus", "sources": [ - { "type": "pkgConfig", "args": "opus" } + { "type": "pkgConfig", "args": "opus >= 1.3.1" } ] }, "webengine-snappy": { @@ -317,6 +296,13 @@ ] } }, + "webengine-xkbcommon": { + "label": "system xkbcommon", + "type": "compile", + "test": { + "include": "xkbcommon/xkbcommon.h" + } + }, "webengine-ninja": { "label": "system ninja", "type": "detectNinja", @@ -471,6 +457,11 @@ "condition": "libs.webengine-libdrm", "output": [ "privateFeature" ] }, + "webengine-system-xkbcommon": { + "label": "xkbcommon", + "condition": "libs.webengine-xkbcommon && tests.webengine-xkbcommon", + "output": [ "privateFeature" ] + }, "webengine-system-xcomposite": { "label": "xcomposite", "condition": "libs.webengine-xcomposite", @@ -545,31 +536,6 @@ { "type": "varAssign", "name": "QMAKE_JUMBO_MERGE_LIMIT", "value": "tests.webengine-jumbo-build.merge_limit" } ] }, - "webengine-system-libdrm": { - "label": "libdrm", - "condition": "libs.webengine-libdrm", - "output": [ "privateFeature" ] - }, - "webengine-system-xcomposite": { - "label": "xcomposite", - "condition": "libs.webengine-xcomposite", - "output": [ "privateFeature" ] - }, - "webengine-system-xcursor": { - "label": "xcursor", - "condition": "libs.webengine-xcursor", - "output": [ "privateFeature" ] - }, - "webengine-system-xi": { - "label": "xi", - "condition": "libs.webengine-xi", - "output": [ "privateFeature" ] - }, - "webengine-system-xtst": { - "label": "xtst", - "condition": "libs.webengine-xtst", - "output": [ "privateFeature" ] - }, "webengine-system-harfbuzz": { "label": "harfbuzz", "condition": "config.unix && features.system-harfbuzz && libs.webengine-harfbuzz", @@ -790,7 +756,8 @@ "webengine-system-png", "webengine-system-jpeg", "webengine-system-harfbuzz", - "webengine-system-freetype" + "webengine-system-freetype", + "webengine-system-xkbcommon" ] } ] |