diff options
author | Michal Klocek <michal.klocek@qt.io> | 2021-03-23 10:58:26 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2021-05-22 14:10:19 +0200 |
commit | e6a7c6548f15cb158c1a5a2ac97fadaecb54f1ee (patch) | |
tree | 7d50d6df4904590e6fa2edafd78ffb8ac439d2e8 /src/core/api/qtwebenginecoreglobal.cpp | |
parent | 6d6037be24bcbff5efada34ed39331c7c8b28f3b (diff) |
Add windows to the cmake build
Fix cmake for windows builds and add QtWebEngineSandbox target.
Task-number: QTBUG-91760
Change-Id: If962a81ddfb509d104ad8ffbfbf34f1150ae82ce
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/api/qtwebenginecoreglobal.cpp')
-rw-r--r-- | src/core/api/qtwebenginecoreglobal.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/api/qtwebenginecoreglobal.cpp b/src/core/api/qtwebenginecoreglobal.cpp index e6a551e65..182926889 100644 --- a/src/core/api/qtwebenginecoreglobal.cpp +++ b/src/core/api/qtwebenginecoreglobal.cpp @@ -208,6 +208,19 @@ Q_WEBENGINECORE_PRIVATE_EXPORT void initialize() } } // namespace QtWebEngineCore +#if defined(Q_OS_WIN) +namespace QtWebEngineSandbox { +sandbox::SandboxInterfaceInfo *staticSandboxInterfaceInfo(sandbox::SandboxInterfaceInfo *info) +{ + static sandbox::SandboxInterfaceInfo *g_info = nullptr; + if (info) { + Q_ASSERT(g_info == nullptr); + g_info = info; + } + return g_info; +} +} //namespace +#endif static void initialize() { #if QT_CONFIG(opengl) |