• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 # Compiling libva/libva-utils deps
2 
3 $ProgressPreference = "SilentlyContinue"
4 $MyPath = $MyInvocation.MyCommand.Path | Split-Path -Parent
5 . "$MyPath\mesa_init_msvc.ps1"
6 
7 Remove-Item -Recurse -Force -ErrorAction SilentlyContinue "deps" | Out-Null
8 $depsInstallPath="C:\mesa-deps"
9 
10 Write-Host "Cloning libva at:"
11 Get-Date
12 git clone https://github.com/intel/libva.git deps/libva
13 if (!$?) {
14   Write-Host "Failed to clone libva repository"
15   Exit 1
16 }
17 
18 Write-Host "Cloning libva finished at:"
19 Get-Date
20 
21 Write-Host "Building libva at:"
22 Get-Date
23 
24 Push-Location -Path ".\deps\libva"
25 Write-Host "Checking out libva..."
26 git checkout 2.21.0
27 Pop-Location
28 
29 # libva already has a build dir in their repo, use builddir instead
30 $libva_build = New-Item -ItemType Directory -Path ".\deps\libva" -Name "builddir"
31 Push-Location -Path $libva_build.FullName
32 meson setup .. -Dprefix="$depsInstallPath"
33 ninja -j32 install
34 $buildstatus = $?
35 Pop-Location
36 Remove-Item -Recurse -Force -ErrorAction SilentlyContinue -Path $libva_build
37 if (!$buildstatus) {
38   Write-Host "Failed to compile libva"
39   Exit 1
40 }
41 
42 Write-Host "Building libva finished at:"
43 Get-Date
44 
45 Write-Host "Cloning libva-utils at:"
46 Get-Date
47 git clone https://github.com/intel/libva-utils.git deps/libva-utils
48 if (!$?) {
49   Write-Host "Failed to clone libva-utils repository"
50   Exit 1
51 }
52 
53 Write-Host "Cloning libva-utils finished at:"
54 Get-Date
55 
56 Write-Host "Building libva-utils at:"
57 Get-Date
58 
59 Push-Location -Path ".\deps\libva-utils"
60 Write-Host "Checking out libva-utils..."
61 git checkout 2.21.0
62 Pop-Location
63 
64 Write-Host "Building libva-utils"
65 # libva-utils already has a build dir in their repo, use builddir instead
66 $libva_utils_build = New-Item -ItemType Directory -Path ".\deps\libva-utils" -Name "builddir"
67 Push-Location -Path $libva_utils_build.FullName
68 meson setup .. -Dprefix="$depsInstallPath" --pkg-config-path="$depsInstallPath\lib\pkgconfig;$depsInstallPath\share\pkgconfig"
69 ninja -j32 install
70 $buildstatus = $?
71 Pop-Location
72 Remove-Item -Recurse -Force -ErrorAction SilentlyContinue -Path $libva_utils_build
73 if (!$buildstatus) {
74   Write-Host "Failed to compile libva-utils"
75   Exit 1
76 }
77 
78 Write-Host "Building libva-utils finished at:"
79 Get-Date
80