mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-17 09:46:08 +08:00
V2 mode causes conan to raise error when an feature that is being deprecated in conan V2 is used. This allows maintaining V2 compatibility. Pick-to: 6.2 Change-Id: I9c0cb70ce3a194966594d48433763e5423e187f1 Reviewed-by: Simo Fält <simo.falt@qt.io>
22 lines
552 B
Bash
Executable File
22 lines
552 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# shellcheck source=../unix/SetEnvVar.sh
|
|
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
|
|
|
# This script will install Conan
|
|
# Note! Python3 is required for Conan installation
|
|
|
|
os="$1"
|
|
|
|
# Install Conan to Python user install directory (typically ~./local/)
|
|
pip3 install conan --user
|
|
|
|
SetEnvVar "CONAN_REVISIONS_ENABLED" "1"
|
|
SetEnvVar "CONAN_V2_MODE" "1"
|
|
|
|
if [ "$os" == "linux" ]; then
|
|
SetEnvVar "PATH" "/home/qt/.local/bin:\$PATH"
|
|
elif [ "$os" == "macos" ]; then
|
|
SetEnvVar "PATH" "/Users/qt/Library/Python/3.7/bin:\$PATH"
|
|
fi
|