mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
52 lines
2.4 KiB
PowerShell
52 lines
2.4 KiB
PowerShell
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
|
||
|
|
||
|
$python_dl_url = 'https://www.python.org/ftp/python/3.7.3/python-3.7.3.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.19.1.windows.1/MinGit-2.19.1-64-bit.zip'
|
||
|
$zip_url = 'https://www.7-zip.org/a/7z1805-x64.exe'
|
||
|
$msys_url = 'https://ayera.dl.sourceforge.net/project/msys2/Base/x86_64/msys2-base-x86_64-20180531.tar.xz'
|
||
|
|
||
|
Write-Host "Installing VisualStudio"
|
||
|
Invoke-WebRequest -Uri $msvc_2017_url -OutFile C:\vs_buildtools.exe
|
||
|
Start-Process C:\vs_buildtools.exe -ArgumentList '--quiet --wait --norestart --nocache --installPath C:\BuildTools --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended' -Wait
|
||
|
Remove-Item C:\vs_buildtools.exe -Force
|
||
|
|
||
|
Write-Host "Installing Python"
|
||
|
Invoke-WebRequest -Uri $python_dl_url -OutFile C:\python3.exe
|
||
|
Start-Process C:\python3.exe -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1' -Wait
|
||
|
Remove-Item C:\python3.exe -Force
|
||
|
|
||
|
Write-Host "Installing Git"
|
||
|
Invoke-WebRequest -Uri $git_url -OutFile C:\mingit.zip
|
||
|
Expand-Archive C:\mingit.zip -DestinationPath c:\mingit
|
||
|
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 7zip"
|
||
|
Invoke-WebRequest -Uri $zip_url -OutFile C:\7z-x64.exe
|
||
|
Start-Process C:\7z-x64.exe -ArgumentList '/S /D=C:\7zip\' -Wait
|
||
|
Remove-Item C:\7z-x64.exe -Force
|
||
|
|
||
|
Write-Host "Installing MSYS2"
|
||
|
Invoke-WebRequest -Uri $msys_url -OutFile C:\msys2-x86_64.tar.xz
|
||
|
C:\7zip\7z e C:\msys2-x86_64.tar.xz -Wait
|
||
|
C:\7zip\7z x C:\msys2-x86_64.tar -o"C:\\"
|
||
|
Remove-Item C:\msys2-x86_64.tar.xz -Force
|
||
|
Remove-Item C:\msys2-x86_64.tar -Force
|
||
|
Remove-Item C:\7zip -Recurse -Force
|
||
|
|
||
|
Write-Host "Installing Choco"
|
||
|
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
||
|
refreshenv
|
||
|
|
||
|
Write-Host "Installing git-lfs"
|
||
|
choco install -y git-lfs
|
||
|
refreshenv
|
||
|
|
||
|
$env:PATH += ";C:\msys64\usr\bin;C:\msys64\mingw64/bin;C:\msys64\mingw32/bin"
|
||
|
C:\msys64\usr\bin\bash -c "pacman-key --init && pacman-key --populate msys2 && pacman-key --refresh-keys"
|
||
|
C:\msys64\usr\bin\bash -c "pacman -Syuu --noconfirm"
|
||
|
C:\msys64\usr\bin\bash -c "pacman -Sy --noconfirm --needed mingw-w64-x86_64-toolchain ninja"
|
||
|
|
||
|
pip install meson
|