mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-09 00:16:55 +08:00
Makefile-based generators of CMake are much less efficient than Ninja. They generate bloated Makefiles that call back to cmake often. Main offender on Windows is cmake_depends command which seems to do lots of disk reads. QtWebKit can now switch to ninja automatically if it's present in PATH. This should help to reduce build times. Change-Id: I33d3f4d766a630f8ca4fb64b719fe2e8a5c2e00c Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
13 lines
578 B
PowerShell
13 lines
578 B
PowerShell
. "$PSScriptRoot\helpers.ps1"
|
|
|
|
$zip = "c:\users\qt\downloads\ninja-1.6.0-win-x86.zip"
|
|
|
|
Download https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-win.zip \\ci-files01-hki.ci.local\provisioning\ninja\ninja-1.6.0-win-x86.zip $zip
|
|
Verify-Checksum $zip "E01093F6533818425F8EFB0843CED7DCAABEA3B2"
|
|
|
|
Extract-Zip $zip C:\Utils\Ninja
|
|
Remove-Item $zip
|
|
|
|
$machinePath = [Environment]::GetEnvironmentVariable('Path', [EnvironmentVariableTarget]::Machine)
|
|
[Environment]::SetEnvironmentVariable("Path", $machinePath + ";C:\Utils\Ninja", [EnvironmentVariableTarget]::Machine)
|