ci: use meson 1.1.1 in the 1.22 branch Windows CI
[platform/upstream/gstreamer.git] / ci / docker / windows / Install.cmd
1 @REM The MIT License (MIT)
2 @REM Copyright (c) Microsoft Corporation
3
4 @REM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 
5 @REM associated documentation files (the "Software"), to deal in the Software without restriction, 
6 @REM including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 
7 @REM and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, 
8 @REM subject to the following conditions:
9
10 @REM The above copyright notice and this permission notice shall be included in all copies or substantial 
11 @REM portions of the Software.
12
13 @REM THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT 
14 @REM NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
15 @REM IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 
16 @REM WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
17 @REM SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18
19 @if not defined _echo echo off
20 setlocal enabledelayedexpansion
21
22 call %*
23 if "%ERRORLEVEL%"=="3010" (
24     exit /b 0
25 ) else (
26     if not "%ERRORLEVEL%"=="0" (
27         set ERR=%ERRORLEVEL%
28         if "%CI_PROJECT_PATH%"=="" (
29                 call C:\TEMP\collect.exe -zip:C:\vslogs.zip
30         ) else (
31                 call C:\TEMP\collect.exe -zip:%CI_PROJECT_PATH%\vslogs.zip
32         )
33         exit /b !ERR!
34     )
35 )