mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-05 14:36:59 +08:00
Add conan to path
Change-Id: I90e028409f606a703fd9b567a221f3f946f11d61
Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
(cherry picked from commit 32579bc3c4)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
committed by
Qt Cherry-pick Bot
parent
88b3474bcf
commit
d1601aa0f9
@@ -6,7 +6,15 @@ 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"
|
||||
|
||||
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
|
||||
|
||||
@@ -44,6 +44,7 @@ Run-Executable "$scriptsPath\conan.exe" "remote add qtproject https://api.bintra
|
||||
|
||||
Set-EnvironmentVariable "CI_CONAN_BUILDINFO_DIR" "C:\Utils\conanbuildinfos"
|
||||
Set-EnvironmentVariable "CONAN_REVISIONS_ENABLED" "1"
|
||||
Add-Path $scriptsPath
|
||||
|
||||
function Run-Conan-Install
|
||||
{
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/unix/install-conan.sh"
|
||||
"$BASEDIR/../common/unix/install-conan.sh" "linux"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/unix/install-conan.sh"
|
||||
"$BASEDIR/../common/unix/install-conan.sh" "linux"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/unix/install-conan.sh"
|
||||
"$BASEDIR/../common/unix/install-conan.sh" "linux"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/unix/install-conan.sh"
|
||||
"$BASEDIR/../common/unix/install-conan.sh" "linux"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/unix/install-conan.sh"
|
||||
"$BASEDIR/../common/unix/install-conan.sh" "macos"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/unix/install-conan.sh"
|
||||
"$BASEDIR/../common/unix/install-conan.sh" "macos"
|
||||
|
||||
Reference in New Issue
Block a user