summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/qt-env.ps1
blob: 22b10992e0c71ed76c6ac2d8a9147fe832639565 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if ($cmake -eq $null) {
    throw ('$cmake powershell variable not set ')
}
if ("$env:PROCESSOR_ARCHITECTURE" -eq "AMD64") {
    $pwdpath = $pwd.Path
    & $cmake -P .gitlab/ci/download_qt.cmake
    Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\qt\bin;$env:PATH"
    qmake -v
} elseif ("$env:PROCESSOR_ARCHITECTURE" -eq "ARM64") {
    # Qt host tools are not yet available natively on windows-arm64.
} else {
    throw ('unknown PROCESSOR_ARCHITECTURE: ' + "$env:PROCESSOR_ARCHITECTURE")
}