-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild.bat
More file actions
42 lines (30 loc) · 1.26 KB
/
Build.bat
File metadata and controls
42 lines (30 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cmd /c EXIT /b 0
echo on
if [%HasEnv%] == [] if exist "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsMSBuildCmd.bat" call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsMSBuildCmd.bat"
echo on
IF ERRORLEVEL 1 GOTO ERRO
set HasEnv=ok
set RelativePath=%~dp0%
set BinPath=%1%
set ObjPath=\Temp\DASE4VSTemp\
set plataform=x64
set configuration=Release
IF [%2]==[Release] set configuration=Release
set sucess=0
if exist %BinPath% rmdir %BinPath% /s/q
IF ERRORLEVEL 1 GOTO ERRO
msbuild DASE4VS.sln -t:restore /p:Configuration=%configuration%;Platform=%plataform%
rem IF ERRORLEVEL 1 GOTO ERRO
msbuild DASE4VS.sln /t:Clean /p:Configuration=%configuration%;Platform=%plataform% /p:StopOnFirstFailure=True /clp:ErrorsOnly /m:1
IF ERRORLEVEL 1 GOTO ERRO
msbuild DASE4VS.sln /t:Build /p:Configuration=%configuration%;Platform=%plataform% /p:StopOnFirstFailure=True /clp:ErrorsOnly /m:1 /nr:false
IF ERRORLEVEL 1 GOTO ERRO
GOTO FIM
:ERRO
tasklist /fi "imagename eq VBCSCompiler.exe" |find ":" > nul
if errorlevel 1 taskkill /f /im "VBCSCompiler.exe"
EXIT /b 1
:FIM
tasklist /fi "imagename eq VBCSCompiler.exe" |find ":" > nul
if errorlevel 1 taskkill /f /im "VBCSCompiler.exe"
EXIT /b 0