mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-04 22:17:45 +08:00
Ninja has issues if path exceeds 260 chars. The issue is reported here https://github.com/ninja-build/ninja/issues/1900 and can be easily fixed by doing correct setting in manifest file. Unfortunately the author still did not make release with the fix. QtWebEngine/QtPdf build generated file paths can exceed 260 chars especially if build is done on android platform, which leads to issues when running ninja as it get wrong 'dirty' and 'missing' nodes info. Add workaround and patch manifest during installation. Task-number: COIN-1077 Change-Id: I89166de73400de63bc3d1116b87c0f0754f36a2e Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
36 lines
1.4 KiB
PowerShell
36 lines
1.4 KiB
PowerShell
. "$PSScriptRoot\helpers.ps1"
|
|
|
|
$zip = Get-DownloadLocation "ninja-1.10.2-win-x86.zip"
|
|
|
|
Download http://master.qt.io/development_releases/prebuilt/ninja/v1.10.2/ninja-win-x86.zip \\ci-files01-hki.ci.qt.io\provisioning\ninja\ninja-1.10.2-win-really-x86.zip $zip
|
|
Verify-Checksum $zip "1a22ee9269df8ed69c4600d7ee4ccd8841bb99ca"
|
|
|
|
Extract-7Zip $zip C:\Utils\Ninja
|
|
Remove "$zip"
|
|
|
|
Add-Path "C:\Utils\Ninja"
|
|
|
|
Write-Output "Ninja = 1.10.2" >> ~/versions.txt
|
|
|
|
|
|
$manifest = @"
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<application>
|
|
<windowsSettings>
|
|
<activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>
|
|
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
|
|
</windowsSettings>
|
|
</application>
|
|
</assembly>
|
|
"@
|
|
|
|
|
|
$vs2019 = [System.IO.File]::Exists("C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat")
|
|
|
|
if($vs2019) {
|
|
Invoke-MtCommand "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64 $manifest "C:\Utils\Ninja\ninja.exe"
|
|
} else {
|
|
Invoke-MtCommand "C:\Program Files (x86)\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64 $manifest "C:\Utils\Ninja\ninja.exe"
|
|
}
|