docker/windows: Install CMake for Cerbero
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 13 Dec 2019 00:53:17 +0000 (06:23 +0530)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 29 Jan 2020 17:39:46 +0000 (17:39 +0000)
docker/windows/install_toolchain.ps1

index cebacce6bfb7d4b199f0b814a9843c0144ab4da6..f1ddb8398f92f94267d7543fb73c1accc482bf28 100644 (file)
@@ -4,6 +4,7 @@ $python_dl_url = 'https://www.python.org/ftp/python/3.7.5/python-3.7.5.exe'
 $msvc_2017_url = 'https://aka.ms/vs/15/release/vs_buildtools.exe'
 $git_url = 'https://github.com/git-for-windows/git/releases/download/v2.24.1.windows.2/MinGit-2.24.1.2-64-bit.zip'
 $zip_url = 'https://www.7-zip.org/a/7z1900-x64.exe'
+$cmake_url = 'https://github.com/Kitware/CMake/releases/download/v3.16.1/cmake-3.16.1-win64-x64.msi'
 $msys2_url = 'https://download.sourceforge.net/project/msys2/Base/x86_64/msys2-base-x86_64-20190524.tar.xz'
 
 Write-Host "Installing VisualStudio"
@@ -23,6 +24,11 @@ Remove-Item C:\mingit.zip -Force
 $env:PATH = [System.Environment]::GetEnvironmentVariable('PATH', 'Machine') + ';' + 'c:\mingit\cmd'
 [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine)
 
+Write-Host "Installing CMake for Cerbero"
+Invoke-WebRequest -Uri $cmake_url -OutFile C:\cmake-x64.msi
+Start-Process msiexec -ArgumentList '-i C:\cmake-x64.msi -quiet -norestart ADD_CMAKE_TO_PATH=System' -Wait
+Remove-Item C:\cmake-x64.msi -Force
+
 Write-Host "Installing 7zip"
 Invoke-WebRequest -Uri $zip_url -OutFile C:\7z-x64.exe
 Start-Process C:\7z-x64.exe -ArgumentList '/S /D=C:\7zip\' -Wait