Debian Codegraph @

src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/testtools/testrunner/jenkins/windows_c.cmd

raw
1 @REM Copyright (c) Microsoft. All rights reserved.
2 @REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4 setlocal
5
6 set build-root=%~dp0..
7 rem // resolve to fully qualified path
8 for %%i in ("%build-root%") do set build-root=%%~fi
9
10 rmdir /s /q %build-root%\cmake
11 mkdir %build-root%\cmake
12 if errorlevel 1 goto :eof
13
14 set build-platform=Win32
15
16 :args-loop
17 if "%1" equ "" goto args-done
18 if "%1" equ "--platform" goto arg-build-platform
19 call :usage && exit /b 1
20
21 :arg-build-platform
22 shift
23 if "%1" equ "" call :usage && exit /b 1
24 set build-platform=%1
25 if %build-platform% == x64 (
26 set CMAKE_DIR=shared-util_x64
27 ) else if %build-platform% == arm (
28 set CMAKE_DIR=shared-util_arm
29 )
30 goto args-continue
31
32 :args-continue
33 shift
34 goto args-loop
35
36 :args-done
37
38 cd %build-root%\cmake
39
40 if %build-platform% == Win32 (
41 echo ***Running CMAKE for Win32***
42 cmake %build-root%
43 if errorlevel 1 goto :eof
44 ) else if %build-platform% == ARM (
45 echo ***Running CMAKE for ARM***
46 cmake %build-root% -G "Visual Studio 14 ARM"
47 if errorlevel 1 goto :eof
48 ) else (
49 echo ***Running CMAKE for Win64***
50 cmake %build-root% -G "Visual Studio 14 Win64"
51 if errorlevel 1 goto :eof
52 )
53
54 msbuild /m testrunnerswitcher.sln /p:Configuration=Release
55 if errorlevel 1 goto :eof
56 msbuild /m testrunnerswitcher.sln /p:Configuration=Debug
57 if errorlevel 1 goto :eof
58
59 ctest -C "debug" -V
60 if errorlevel 1 goto :eof
61
62 cd %build-root%