mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-18 02:06:20 +08:00
We may read the installed package information from the 'vcpkg list' command instead of parsing the vcpkg.json. Also instead of using the jq as a parser, use the cmake script. This allows skipping the jq installation. Change-Id: Id3ace62f8f40ff1bd059878da3fd13e466861830 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
23 lines
1.0 KiB
PowerShell
23 lines
1.0 KiB
PowerShell
# Copyright (C) 2023 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
. "$PSScriptRoot\helpers.ps1"
|
|
|
|
Write-Host "Installing vcpkg android ports"
|
|
$vcpkgExe = "$env:VCPKG_ROOT\vcpkg.exe"
|
|
$vcpkgRoot = "$env:VCPKG_ROOT"
|
|
$vcpkgInstallRoot = "armeabi-v7a-android-qt-tmp"
|
|
|
|
Set-Location -Path "$PSScriptRoot\vcpkg"
|
|
Copy-Item "$PSScriptRoot\..\shared\vcpkg-configuration.json" -Destination "$PSScriptRoot\vcpkg"
|
|
|
|
Run-Executable "$vcpkgExe" "install --triplet armeabi-v7a-android-qt --x-install-root $vcpkgInstallRoot --debug"
|
|
|
|
New-Item -Path "$vcpkgRoot" -Name "installed" -ItemType "directory" -Force
|
|
Copy-Item -Path "$vcpkgInstallRoot\*" -Destination "$vcpkgRoot\installed" -Recurse -Force
|
|
|
|
Run-Executable "cmake" "-DVCPKG_EXECUTABLE=$vcpkgExe -DVCPKG_INSTALL_ROOT=$vcpkgInstallRoot -DOUTPUT=$env:USERPROFILE\versions.txt -P $PSScriptRoot\..\shared\vcpkg_parse_packages.cmake"
|
|
|
|
Remove-Item -Path "$vcpkgInstallRoot" -Recurse -Force
|
|
|
|
Set-Location "$PSScriptRoot"
|