mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
We want access to the debugger, and also to be in sync with the CMake shipped with the Qt SDK. Task-number: QTBUG-118138 Change-Id: I4b43b9543e8e6ef23c9608a8e1c623ee16edfbd5 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
26 lines
996 B
Bash
Executable File
26 lines
996 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2017 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
|
|
|
|
# This script installs CMake
|
|
|
|
# CMake is needed for autotests that verify that Qt can be built with CMake
|
|
|
|
# shellcheck source=./InstallAppFromCompressedFileFromURL.sh
|
|
source "${BASH_SOURCE%/*}/InstallAppFromCompressedFileFromURL.sh"
|
|
# shellcheck source=../unix/SetEnvVar.sh
|
|
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
|
|
|
majorminorversion="3.27.7"
|
|
version="3.27.7"
|
|
PrimaryUrl="http://ci-files01-hki.ci.qt.io/input/cmake/cmake-$version-macos-universal.tar.gz"
|
|
AltUrl="https://cmake.org/files/v$majorminorversion/cmake-$version-macos-universal.tar.gz"
|
|
SHA1="75153b6c7a418bc7120c6217d4698c7d245d00e0"
|
|
appPrefix="cmake-$version-macos-universal"
|
|
|
|
InstallAppFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$appPrefix"
|
|
|
|
SetEnvVar "PATH" "/Applications/CMake.app/Contents/bin:\$PATH"
|
|
|
|
echo "CMake = $version" >> ~/versions.txt
|