Specify VCPKG_INSTALLED_DIR, VCPKG_HOST_TRIPLET, VCPGK_TARGET_TRIPLET

Set the VCPKG_INSTALLED_DIR, VCPKG_HOST_TRIPLET, VCPGK_TARGET_TRIPLET
environment variables after vcpkg ports installation. These variables
will be used when building Qt modules to setup the correct build
environment.

Change-Id: I3a625f4ef089b5da676b96a5bebaacfb09112ee4
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexey Edelev
2025-02-05 15:49:27 +01:00
committed by Alexandru Croitor
parent d485277f35
commit f41e72adc6
11 changed files with 95 additions and 20 deletions

View File

@@ -2,6 +2,9 @@
# 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
# shellcheck source=../unix/SetEnvVar.sh
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
echo "Installing vcpkg ports"
pushd "${BASH_SOURCE%/*}/vcpkg" || exit
@@ -20,6 +23,8 @@ cmake "-DVCPKG_EXECUTABLE=$VCPKG_ROOT/vcpkg"\
mkdir -p "$VCPKG_ROOT/installed"
cp -R $install_root/* "$VCPKG_ROOT/installed/"
SetEnvVar "VCPKG_INSTALLED_DIR" "$VCPKG_ROOT/installed/"
rm -rf $install_root
popd || exit