mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 11:26:04 +08:00
Add support for Installer Framework
Task-number: COIN-1050 Change-Id: I502f5b85068936624a66d1a6cf6c6c1991e088b4 Reviewed-by: Toni Saario <toni.saario@qt.io> Reviewed-by: Simo Fält <simo.falt@qt.io>
This commit is contained in:
31
coin/platform_configs/installer-framework.yaml
Normal file
31
coin/platform_configs/installer-framework.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
Version: 2
|
||||
Module only: True
|
||||
Configurations:
|
||||
-
|
||||
Template: 'qtci-windows-10_22H2-x86_64-50'
|
||||
Compiler: 'MSVC2019'
|
||||
Target arch: 'x86_64'
|
||||
Features: ['Packaging', 'UseConfigure', 'DoNotBuildTests']
|
||||
Configure arguments: '-opensource -confirm-license -nomake examples -nomake tests -accessibility -no-icu -static -release -no-sql-sqlite -openssl-linked -static-runtime OPENSSL_ROOT_DIR={{.Env.OPENSSL_HOME}}'
|
||||
Environment variables: ['TARGET_ARCHITECTURE=x86_64', 'PATH=%PATH%;%CI_JOM_PATH%;C:\Utils\gnuwin32\bin;', 'LLVM_INSTALL_DIR=', 'LLVM_INSTALL_DIR_msvc=', 'QDOC_USE_STATIC_LIBCLANG=', 'INCLUDE={{.Env.ZLIB}};{{.Env.XZ}}\src\liblzma\api;{{.Env.BZIP2}};{{.Env.INCLUDE}}', 'LIB={{.Env.ZLIB}};{{.Env.XZ}}\windows\vs2019\ReleaseMT\x64\liblzma{{.Env.BZIP2}};{{.Env.LIB}}']
|
||||
Environment script: ['%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat', 'amd64']
|
||||
-
|
||||
Template: 'qtci-macos-12-x86_64-105'
|
||||
Compiler: 'Clang'
|
||||
Features: ['Packaging', 'UseConfigure', 'DoNotBuildTests']
|
||||
Configure arguments: '-opensource -confirm-license -static -confirm-license -nomake examples -nomake tests -accessibility -qt-zlib -qt-libpng -no-cups -no-freetype -no-sql-sqlite'
|
||||
-
|
||||
Template: 'qtci-linux-RHEL-8.4-x86_64-50'
|
||||
Compiler: 'GCC'
|
||||
Features: ['Packaging', 'UseConfigure', 'DoNotBuildTests']
|
||||
Configure arguments: '-opensource -confirm-license -nomake examples -nomake tests -accessibility -static -release -no-sql-sqlite -no-feature-gssapi -qt-zlib -qt-libpng -qt-libjpeg -no-cups -openssl-linked -bundled-xcb-xinput -no-icu -no-libudev -qt-pcre -no-glib -no-egl -no-sm -qt-harfbuzz OPENSSL_ROOT_DIR={{.Env.OPENSSL_HOME}}'
|
||||
-
|
||||
Template: 'qtci-linux-Ubuntu-18.04-x86_64'
|
||||
Compiler: 'GCC'
|
||||
Features: ['TestOnly', 'LicenseCheck', 'UseLegacyInstructions', 'UseConfigure', 'DoNotBuildTests']
|
||||
-
|
||||
Template: 'qtci-macos-11-x86_64-105'
|
||||
Compiler: 'Clang'
|
||||
Target arch: 'x86_64-arm64'
|
||||
Features: ['Packaging', 'UseConfigure', 'DoNotBuildTests']
|
||||
Configure arguments: '-opensource -confirm-license -static -confirm-license -nomake examples -nomake tests -accessibility -qt-zlib -qt-libpng -no-cups -no-freetype -no-sql-sqlite QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64"'
|
||||
28
coin/platform_configs/tqtc-installer-framework.yaml
Normal file
28
coin/platform_configs/tqtc-installer-framework.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
Version: 2
|
||||
Module only: True
|
||||
Include: [ installer-framework.yaml ]
|
||||
Configurations:
|
||||
-
|
||||
Template: 'qtci-windows-10-x86_64-52'
|
||||
Compiler: 'MSVC2019'
|
||||
Target arch: 'x86_64'
|
||||
Features: ['Packaging', 'QtInstaller', 'UseConfigure', 'DoNotBuildTests']
|
||||
Configure arguments: '-opensource -confirm-license -nomake examples -nomake tests -accessibility -no-icu -static -no-sql-sqlite -openssl-linked -static-runtime OPENSSL_ROOT_DIR={{.Env.OPENSSL_HOME}}'
|
||||
Environment variables: ['TARGET_ARCHITECTURE=x86_64', 'PATH=%PATH%;%CI_JOM_PATH%;C:\Utils\gnuwin32\bin;', 'LLVM_INSTALL_DIR=', 'LLVM_INSTALL_DIR_msvc=', 'QDOC_USE_STATIC_LIBCLANG=']
|
||||
Environment script: ['%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat', 'amd64']
|
||||
-
|
||||
Template: 'qtci-macos-12-x86_64-106'
|
||||
Compiler: 'Clang'
|
||||
Features: ['Packaging', 'QtInstaller', 'UseConfigure', 'DoNotBuildTests']
|
||||
Configure arguments: '-opensource -confirm-license -static -confirm-license -nomake examples -nomake tests -accessibility -qt-zlib -qt-libpng -no-cups -no-freetype -no-sql-sqlite'
|
||||
-
|
||||
Template: 'qtci-linux-RHEL-8.4-x86_64-50'
|
||||
Compiler: 'GCC'
|
||||
Features: ['Packaging', 'QtInstaller', 'UseConfigure', 'DoNotBuildTests']
|
||||
Configure arguments: '-opensource -confirm-license -nomake examples -nomake tests -accessibility -static -release -no-sql-sqlite -no-feature-gssapi -qt-zlib -qt-libpng -qt-libjpeg -no-cups -openssl-linked -bundled-xcb-xinput -no-icu -no-libudev -qt-pcre -no-glib -no-egl -no-sm -qt-harfbuzz OPENSSL_ROOT_DIR={{.Env.OPENSSL_HOME}}'
|
||||
-
|
||||
Template: 'qtci-macos-11-x86_64-104'
|
||||
Compiler: 'Clang'
|
||||
Target arch: 'x86_64-arm64'
|
||||
Features: ['Packaging', 'QtInstaller', 'UseConfigure', 'DoNotBuildTests']
|
||||
Configure arguments: '-opensource -confirm-license -static -confirm-license -nomake examples -nomake tests -accessibility -qt-zlib -qt-libpng -no-cups -no-freetype -no-sql-sqlite QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64"'
|
||||
46
coin/provisioning/qtci-macos-11-x86_64/26-xz_brew.sh
Executable file
46
coin/provisioning/qtci-macos-11-x86_64/26-xz_brew.sh
Executable file
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2023 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# This script installs XZ
|
||||
|
||||
# XZ are needed for uncompressing xz-compressed files
|
||||
|
||||
set -ex
|
||||
# Unfortunately the XCode package requires xz already, which is now installed
|
||||
# from tar package, but that version is missing the required development headers
|
||||
# which are part of the brew installations. But to make the brew to pass, we
|
||||
# have to do some hacks..
|
||||
sudo rm -rf /usr/local/share/doc/xz/
|
||||
brew install xz || brew link --overwrite xz
|
||||
46
coin/provisioning/qtci-macos-12-x86_64/26-xz_brew.sh
Executable file
46
coin/provisioning/qtci-macos-12-x86_64/26-xz_brew.sh
Executable file
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2023 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# This script installs XZ
|
||||
|
||||
# XZ are needed for uncompressing xz-compressed files
|
||||
|
||||
set -ex
|
||||
# Unfortunately the XCode package requires xz already, which is now installed
|
||||
# from tar package, but that version is missing the required development headers
|
||||
# which are part of the brew installations. But to make the brew to pass, we
|
||||
# have to do some hacks..
|
||||
sudo rm -rf /usr/local/share/doc/xz/
|
||||
brew install xz || brew link --overwrite xz
|
||||
76
coin/provisioning/qtci-windows-10_22H2-x86_64/35-bzip2.ps1
Normal file
76
coin/provisioning/qtci-windows-10_22H2-x86_64/35-bzip2.ps1
Normal file
@@ -0,0 +1,76 @@
|
||||
############################################################################
|
||||
##
|
||||
## Copyright (C) 2022 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
############################################################################
|
||||
|
||||
. "$PSScriptRoot\..\common\windows\helpers.ps1"
|
||||
|
||||
# This script will install prebuilt PZIB2 for IFW
|
||||
|
||||
# Prebuilt instructions:
|
||||
# Download https://www.sourceware.org/pub/bzip2/bzip2-latest.tar.gz
|
||||
#
|
||||
# MSVC 2015 used with x86
|
||||
# x86: Extract sources to C:\Utils
|
||||
# x86: cd C:\Utils\bzip2-$version
|
||||
# x86: start powershell
|
||||
# x86: (Get-Content C:\Utils\bzip2-$version\makefile.msc) | ForEach-Object { $_ -replace "-DWIN32 -MD -Ox -D_FILE_OFFSET_BITS=64 -nologo", "-DWIN32 -MT -Ox -D_FILE_OFFSET_BITS=64 -nologo" } | Set-Content C:\Utils\bzip2-$version\makefile.msc
|
||||
# x86: exit powershell
|
||||
# x86: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
|
||||
# x86: nmake -f makefile.msc
|
||||
#
|
||||
# MSVC 2019 used with x64
|
||||
# x64: Extract sources to C:\Utils
|
||||
# x64: rename source folder to C:\Utils\bzip2-$version-x64
|
||||
# x64: start powershell
|
||||
# x64: (Get-Content C:\Utils\bzip2-$version-x64\makefile.msc) | ForEach-Object { $_ -replace "-DWIN32 -MD -Ox -D_FILE_OFFSET_BITS=64 -nologo", "-DWIN32 -MT -Ox -D_FILE_OFFSET_BITS=64 -nologo" } | Set-Content C:\Utils\bzip2-$version-x64\makefile.msc
|
||||
# x64: exit powershell
|
||||
# x64: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64
|
||||
# x64: nmake -f makefile.msc
|
||||
|
||||
|
||||
$version = "1.0.8"
|
||||
# Install x86 version
|
||||
$sha1 = "4397208f4c4348d6662c9aa459cb3e508a872d42"
|
||||
Download http://ci-files01-hki.intra.qt.io/input/windows/bzip2-$version-prebuilt.zip http://ci-files01-hki.intra.qt.io/input/windows/bzip2-$version-prebuilt.zip C:\Windows\Temp\bzip2-$version.zip
|
||||
Verify-Checksum "C:\Windows\Temp\bzip2-$version.zip" "$sha1"
|
||||
Extract-7Zip "C:\Windows\Temp\bzip2-$version.zip" C:\Utils
|
||||
Remove-Item -Path "C:\Windows\Temp\bzip2-$version.zip"
|
||||
|
||||
#Install x64 version
|
||||
$sha1_64 = "e4416598c8ba0aa1725a2bfab5a86f2ccd5effc3"
|
||||
Download http://ci-files01-hki.intra.qt.io/input/windows/bzip2-$version-x64-prebuilt-msvc2019.zip http://ci-files01-hki.intra.qt.io/input/windows/bzip2-$version-x64-prebuilt-msvc2019.zip C:\Windows\Temp\bzip2-$version-x64-prebuilt-msvc2019.zip
|
||||
Verify-Checksum "C:\Windows\Temp\bzip2-$version-x64-prebuilt-msvc2019.zip" "$sha1_64"
|
||||
Extract-7Zip "C:\Windows\Temp\bzip2-$version-x64-prebuilt-msvc2019.zip" C:\Utils
|
||||
Remove-Item -Path "C:\Windows\Temp\bzip2-$version-x64-prebuilt-msvc2019.zip"
|
||||
Set-EnvironmentVariable "BZIP2" "C:\Utils\bzip2-$version-x64"
|
||||
|
||||
Write-Output "Bzip2 = $version" >> ~\versions.txt
|
||||
74
coin/provisioning/qtci-windows-10_22H2-x86_64/35-xz.ps1
Normal file
74
coin/provisioning/qtci-windows-10_22H2-x86_64/35-xz.ps1
Normal file
@@ -0,0 +1,74 @@
|
||||
############################################################################
|
||||
##
|
||||
## Copyright (C) 2022 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
############################################################################
|
||||
|
||||
. "$PSScriptRoot\..\common\windows\helpers.ps1"
|
||||
|
||||
# This script will install prebuilt XZ for IFW
|
||||
|
||||
# Prebuilt instructions:
|
||||
# Download http://ci-files01-hki.intra.qt.io/input/windows/xz-5.2.5.zip or from original donwload page https://tukaani.org/xz/
|
||||
#
|
||||
# MSVC 2015 used with x86
|
||||
# x86: Extract sources to C:\Utils
|
||||
# x86: mkdir C:\Utils\xz-5.2.5\windows\vs2015
|
||||
# x86: copy "C:\Utils\xz-$version\windows\vs2017\*" "C:\Utils\xz-$version\windows\vs2015\"
|
||||
# x86: cd C:\Utils\xz-$version
|
||||
# x86: copy "C:\Utils\xz-$version\windows\vs2017\*" "C:\Utils\xz-$version\windows\vs2015\"
|
||||
# x86: Run in powershell: (Get-Content C:\Utils\xz-$version\windows\vs2015\liblzma.vcxproj) | ForEach-Object { $_ -replace "<PlatformToolset>v141</PlatformToolset>", "<PlatformToolset>v140</PlatformToolset>" } | Set-Content C:\Utils\xz-$version\windows\vs2015\liblzma.vcxproj
|
||||
# x86: Exit powershell
|
||||
# x86: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
|
||||
# x86: msbuild /property:Configuration=ReleaseMT windows/vs2015/liblzma.vcxproj
|
||||
#
|
||||
# MSVC 2019 used with x64
|
||||
# x64: Extract sources to C:\Utils
|
||||
# x64: rename source folder to C:\Utils\xz-$version-x64
|
||||
# x64: cd C:\Utils\xz-$version-x64
|
||||
# Exit powershell
|
||||
# x64: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64
|
||||
# x64: msbuild /property:Configuration=ReleaseMT windows/vs2019/liblzma.vcxproj
|
||||
|
||||
$version = "5.2.5"
|
||||
$sha1 = "75570c1826428cfd86efd9835e342334f1493f7b"
|
||||
Download http://ci-files01-hki.intra.qt.io/input/windows/xz-$version-prebuilt.zip http://ci-files01-hki.intra.qt.io/input/windows/xz-$version-prebuilt.zip C:\Windows\Temp\xz-$version.zip
|
||||
Verify-Checksum "C:\Windows\Temp\xz-$version.zip" "$sha1"
|
||||
Extract-7Zip "C:\Windows\Temp\xz-$version.zip" C:\Utils
|
||||
Remove-Item -Path "C:\Windows\Temp\xz-$version.zip"
|
||||
|
||||
$sha1_64 = "8b49de6a838cc2b479846b00fb92553f32216dd8"
|
||||
Download http://ci-files01-hki.intra.qt.io/input/windows/xz-$version-x64-prebuilt-msvc2019.zip http://ci-files01-hki.intra.qt.io/input/windows/xz-$version-x64-prebuilt-msvc2019.zip C:\Windows\Temp\xz-$version-x64-prebuilt-msvc2019.zip
|
||||
Verify-Checksum "C:\Windows\Temp\xz-$version-x64-prebuilt-msvc2019.zip" "$sha1_64"
|
||||
Extract-7Zip "C:\Windows\Temp\xz-$version-x64-prebuilt-msvc2019.zip" C:\Utils
|
||||
Remove-Item -Path "C:\Windows\Temp\xz-$version-x64-prebuilt-msvc2019.zip"
|
||||
Set-EnvironmentVariable "XZ" "C:\Utils\xz-$version-x64"
|
||||
|
||||
Write-Output "XZ = $version" >> ~\versions.txt
|
||||
75
coin/provisioning/qtci-windows-10_22H2-x86_64/35-zlib.ps1
Normal file
75
coin/provisioning/qtci-windows-10_22H2-x86_64/35-zlib.ps1
Normal file
@@ -0,0 +1,75 @@
|
||||
############################################################################
|
||||
##
|
||||
## Copyright (C) 2022 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
############################################################################
|
||||
|
||||
. "$PSScriptRoot\..\common\windows\helpers.ps1"
|
||||
|
||||
# This script will install prebuilt ZLIB for IFW
|
||||
|
||||
# Prebuilt instructions:
|
||||
# Download https://zlib.net/zlib1212.zip
|
||||
#
|
||||
# MSVC 2015 used with x86
|
||||
# x86: Extract sources to C:\Utils
|
||||
# x86: cd C:\Utils\zlib-$version
|
||||
# x86: start powershell
|
||||
# x86: (Get-Content C:\Utils\zlib-$version\win32\makefile.msc) | ForEach-Object { $_ -replace "-MD -W3 -O2 -Oy- -Zi", "-MT -W3 -O2 -Oy- -Zi" } | Set-Content C:\Utils\zlib-$version\win32\makefile.msc
|
||||
# x86: exit powershell
|
||||
# x86: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
|
||||
# x86: nmake -f win32\makefile.msc
|
||||
#
|
||||
# MSVC 2019 used with x64
|
||||
# x64: Extract sources to C:\Utils
|
||||
# x64: rename source folder to C:\Utils\zlib-$version-x64
|
||||
# x64: cd C:\Utils\zlib-$version-x64
|
||||
# x64: start powershell
|
||||
# x64: (Get-Content C:\Utils\zlib-$version-x64\win32\makefile.msc) | ForEach-Object { $_ -replace "-MD -W3 -O2 -Oy- -Zi", "-MT -W3 -O2 -Oy- -Zi" } | Set-Content C:\Utils\zlib-$version-x64\win32\makefile.msc
|
||||
# x64: exit powershell
|
||||
# x64: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64
|
||||
# x64: nmake -f win32\makefile.msc
|
||||
|
||||
$version = "1.2.12"
|
||||
$sha1 = "d8b9c568ea7a976af1e8de52dfb9a2c55daed0c8"
|
||||
Download http://ci-files01-hki.intra.qt.io/input/windows/zlib-$version-prebuilt.zip http://ci-files01-hki.intra.qt.io/input/windows/zlib-$version-prebuilt.zip C:\Windows\Temp\zlib-$version.zip
|
||||
Verify-Checksum "C:\Windows\Temp\zlib-$version.zip" "$sha1"
|
||||
Extract-7Zip "C:\Windows\Temp\zlib-$version.zip" C:\Utils
|
||||
Remove-Item -Path "C:\Windows\Temp\zlib-$version.zip"
|
||||
|
||||
$sha1_64 = "e28670ccbfee9e7adb916a7cdc139b85dd6e311b"
|
||||
Download http://ci-files01-hki.intra.qt.io/input/windows/zlib-$version-x64-prebuilt-msvc2019.zip http://ci-files01-hki.intra.qt.io/input/windows/zlib-$version-x64-prebuilt-msvc2019.zip C:\Windows\Temp\zlib-$version-x64-prebuilt-msvc2019.zip
|
||||
Verify-Checksum "C:\Windows\Temp\zlib-$version-x64-prebuilt-msvc2019.zip" "$sha1_64"
|
||||
Extract-7Zip "C:\Windows\Temp\zlib-$version-x64-prebuilt-msvc2019.zip" C:\Utils
|
||||
Remove-Item -Path "C:\Windows\Temp\zlib-$version-x64-prebuilt-msvc2019.zip"
|
||||
Set-EnvironmentVariable "ZLIB" "C:\Utils\zlib-$version-x64"
|
||||
|
||||
Write-Output "ZLIB = $version" >> ~\versions.txt
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
############################################################################
|
||||
##
|
||||
## Copyright (C) 2021 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
##
|
||||
## $QT_BEGIN_LICENSE:LGPL21$
|
||||
## Commercial License Usage
|
||||
## Licensees holding valid commercial Qt licenses may use this file in
|
||||
## accordance with the commercial license agreement provided with the
|
||||
## Software or, alternatively, in accordance with the terms contained in
|
||||
## a written agreement between you and The Qt Company. For licensing terms
|
||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||
## information use the contact form at http://www.qt.io/contact-us.
|
||||
##
|
||||
## GNU Lesser General Public License Usage
|
||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
## General Public License version 2.1 or version 3 as published by the Free
|
||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||
## following information to ensure the GNU Lesser General Public License
|
||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
##
|
||||
## As a special exception, The Qt Company gives you certain additional
|
||||
## rights. These rights are described in The Qt Company LGPL Exception
|
||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
##
|
||||
## $QT_END_LICENSE$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
. "$PSScriptRoot\..\common\windows\helpers.ps1"
|
||||
|
||||
# Installs prebuilt qdoc for creating documentation
|
||||
|
||||
$url = "http://ci-files01-hki.intra.qt.io/input/windows/qdoc_for_ifw/qt-bin-5.12.7-x86-msvc2015_shared.zip"
|
||||
|
||||
$destination = "C:\Windows\temp\qdoc.zip"
|
||||
|
||||
Download $url $url $destination
|
||||
Extract-7Zip "$destination" "C:\Utils"
|
||||
Remove-Item -Path "$destination"
|
||||
Reference in New Issue
Block a user