Debian Codegraph @

src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/tools/compilembed/build.cmd

raw
1 @setlocal EnableExtensions EnableDelayedExpansion
2 @echo off
3
4 set "current-path=%~dp0"
5 set build-clean=0
6
7 if "%2" neq "" call :usage && exit /b 1
8 if "%1" equ "" goto args-done
9 if "%1" equ "-c" goto arg-build-clean
10 if "%1" equ "--clean" goto arg-build-clean
11 call :usage && exit /b 1
12
13 :arg-build-clean
14 set build-clean=1
15
16 :args-done
17
18 set "msbuild-args=/m "/p:Configuration=Release;Platform=Any CPU" "%current-path%\compilembed.sln""
19
20 if %build-clean%==1 (
21 msbuild /t:Clean %msbuild-args%
22 if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
23 )
24
25 msbuild %msbuild-args%
26 if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
27
28 goto :eof
29
30 :usage
31 echo Build compilembed.exe. Usage:
32 echo build.cmd [options]
33 echo options:
34 echo -c, --clean delete artifacts from previous build before building
35 goto :eof