forked from qt/qt5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provisioning: Install Ninja on windows hosts used to build cmake-base…
…d QtWebKit 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>
- Loading branch information
Showing
4 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
. "$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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
. "$PSScriptRoot\..\common\ninja.ps1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
. "$PSScriptRoot\..\common\ninja.ps1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
. "$PSScriptRoot\..\common\ninja.ps1" |