-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.cmd
45 lines (36 loc) · 864 Bytes
/
build.cmd
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
45
@echo off
if "%~1"=="" (
call :Usage
goto :EOF
)
pushd "%~dp0"
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
set SnCoreProjectName=SnCore
set VisualStudioCmd=%ProgramFiles%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat
if EXIST "%VisualStudioCmd%" (
call "%VisualStudioCmd%"
)
for /D %%n in ( "%ProgramFiles%\NUnit*" ) do (
set NUnitDir=%%~n
)
set FrameworkVersion=v3.5
set FrameworkDir=%SystemRoot%\Microsoft.NET\Framework
PATH=%FrameworkDir%\%FrameworkVersion%;%NUnitDir%;%SvnDir%;%DoxygenDir%;%PATH%
msbuild.exe sncore.proj /t:%*
popd
endlocal
goto :EOF
:Usage
echo Syntax:
echo.
echo build [target] /p:Configuration=[Debug (default),Release]
echo.
echo Target:
echo.
echo all : build everything
echo.
echo Examples:
echo.
echo build all
echo build all /p:Configuration=Release
goto :EOF