-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.bat
41 lines (28 loc) · 811 Bytes
/
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
@echo off
set cim=packages\vsSolutionBuildEvent\cim.cmd -vsw-priority "Microsoft.VisualStudio.Component.VC.Redist.14.Latest"
set _gnt=tools/gnt
set reltype=%~1
if not defined reltype (
set reltype=Release
)
call %_gnt% /p:wpath="%cd%" /p:ngconfig="packages.config;snet\\packages.config" /nologo /v:m /m:4 || goto err
setlocal
set "__InitBuild=1" & call :build Win32 Unicode
endlocal
call :build Win32 MultiByte
call :build x64 Unicode
setlocal
set "__FinalBuild=1" & call :build x64 MultiByte
endlocal
goto exit
:build
setlocal
set "platform=%~1" & set "CharacterSet=%~2"
call %cim% "regXwild.sln" /v:m /m:4 /p:Configuration="%reltype%" /p:Platform=%platform% || goto err
endlocal
exit /B 0
:err
echo. Build failed. 1>&2
exit /B 1
:exit
exit /B 0