-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
44 lines (32 loc) · 1.05 KB
/
build.bat
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
43
44
@echo off
echo Configuring environment...
set MSBUILD="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"
echo.
set outdir=%~dp0build
echo Removing release folder...
Call :DeleteDir "%outdir%"
Call :DeleteDir "ipch"
%MSBUILD% inc\Version.proj
%MSBUILD% bafunctions\Version.proj
%MSBUILD% BalExtensionExt.sln /t:Rebuild /p:VisualStudioVersion=12.0 /p:Configuration=Release /p:Platform="Mixed Platforms" /p:RunCodeAnalysis=false /p:DefineConstants="TRACE" /p:OutDir="%outdir%\\" /l:FileLogger,Microsoft.Build.Engine;logfile=build.log
if %errorlevel% neq 0 (
echo Build failed
pause
goto :EOF
)
copy build\bafunctions.dll Examples /y
pushd Examples
Call Build
popd
echo.
pause
goto :EOF
REM *****************************************************************
REM End of Main
REM *****************************************************************
REM *****************************************************************
REM Delete/create directory
REM *****************************************************************
:DeleteDir
rd %1% /q/s 2>nul 1>nul
goto :EOF