-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmake-windows.bat
49 lines (38 loc) · 1.2 KB
/
make-windows.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
45
46
47
48
49
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
SETLOCAL
msbuild > null
IF '%errorlevel%' == '1' GOTO GOTIT
SET FrameworkDir=%windir%\Microsoft.NET\Framework
PATH=%FrameworkDir%64\v3.5;%FrameworkDir%\v3.5;%FrameworkDir%64\v4.0;~f%FrameworkDir%\v4.0*;%PATH%
@echo PATH=%PATH%
VCBuild > VCBuildNull
IF '%errorlevel%' == '1' GOTO GOTIT
del VCBuildNull
echo =======================================
echo Make sure MSBuild.exe is in your PATH
echo run VCVARS.BAT from VisualStudio 2008 or above
echo =======================================
rem csc /platform:x86 /out:Swicli.Library32 @Swicli.Library.rsp
rem csc /platform:anycpu /out:Swicli.Library.dll @Swicli.Library.rsp
GOTO DONE
)
:GOTIT
del VCBuildNull
IF NOT EXIST "%SWI_HOME_DIR%" (
echo =======================================
echo You must set SWI_HOME_DIR
echo =======================================
GOTO DONE
)
set SWICLIPROJ=src\SWICLI2010.sln
echo %SWI_HOME_DIR% | FINDSTR.EXE "86"
if %errorlevel%==1 set SWICLIPROJ=src\SWICLI2010.sln
del /s /q lib\x64-win64\
del /s /q lib\i386-win32\
msbuild %SWICLIPROJ%
:DONE
echo Errorlevel = %errorlevel%
IF '%errorlevel%' NEQ '0' pause
endlocal