diff options
Diffstat (limited to 'src/buildtools/gn.pro')
-rw-r--r-- | src/buildtools/gn.pro | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/buildtools/gn.pro b/src/buildtools/gn.pro index 829e7a31a..02d3df652 100644 --- a/src/buildtools/gn.pro +++ b/src/buildtools/gn.pro @@ -3,10 +3,8 @@ option(host_build) !debug_and_release: CONFIG += release -isQtMinimum(5, 8) { - include($$QTWEBENGINE_OUT_ROOT/qtwebengine-config.pri) - QT_FOR_CONFIG += webengine-private -} +include($$QTWEBENGINE_OUT_ROOT/qtwebengine-config.pri) +QT_FOR_CONFIG += webengine-private build_pass|!debug_and_release { !qtConfig(system-gn): CONFIG(release, debug|release) { @@ -19,7 +17,14 @@ build_pass|!debug_and_release { mkpath($$dirname(out)) src_3rd_party_dir = $$absolute_path("$${getChromiumSrcDir()}/../", "$$QTWEBENGINE_ROOT") gn_bootstrap = $$system_path($$absolute_path(chromium/tools/gn/bootstrap/bootstrap.py, $$src_3rd_party_dir)) + gn_args = $$system_quote($$gn_args) + win32:isDeveloperBuild() { + # GN is always built in release mode, which conflicts with incremental linking when + # doing a developer build of WebEngine. + gn_args = $$replace(gn_args, "use_incremental_linking=true ", "") + } + gn_configure = $$system_quote($$gn_bootstrap) --shadow --gn-gen-args=$$gn_args $$ninja_path !system("cd $$system_quote($$system_path($$dirname(out))) && $$pythonPathForSystem() $$gn_configure") { error("GN build error!") |