• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/dist/winmsi/
1@echo off
2::	$Id$
3::	Helper script to build Berkeley DB libraries and executables
4::	using MSDEV
5::
6
7cd build_windows
8
9:: One of these calls should find the desired batch file
10
11call :TryBat "c:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat" && goto BATFOUND0
12
13call :TryBat "c:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat" && goto BATFOUND1
14
15call :TryBat "c:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat" && goto BATFOUND2
16
17call :TryBat "c:\Program Files\Microsoft Visual Studio.NET\Common7\Tools\vsvars32.bat" && goto BATFOUND3
18
19goto BATNOTFOUND
20
21:BATFOUND0
22echo Using Visual Studio 2005
23goto BATFOUND
24
25:BATFOUND1
26echo Using Visual Studio .NET 2003
27goto BATFOUND
28
29:BATFOUND2
30echo Using Visual Studio .NET
31echo *********** CHECK: Make sure the binaries are built with the same system libraries that are shipped.
32goto BATFOUND
33
34:BATFOUND3
35echo Using Visual Studio.NET
36echo *********** CHECK: Make sure the binaries are built with the same system libraries that are shipped.
37goto BATFOUND
38
39:BATFOUND
40
41::intenv is used to set environment variables but this isn't used anymore
42::devenv /useenv /build Release /project instenv ..\instenv\instenv.sln >> ..\winbld.out 2>&1
43::if not %errorlevel% == 0 goto ERROR
44
45echo Building Berkeley DB
46devenv /useenv /build "Debug" Berkeley_DB.sln >> ..\winbld.out 2>&1
47if not %errorlevel% == 0 goto ERROR
48devenv /useenv /build "Release" Berkeley_DB.sln >> ..\winbld.out 2>&1
49if not %errorlevel% == 0 goto ERROR
50devenv /useenv /build "Debug" /project db_java Berkeley_DB.sln >> ..\winbld.out 2>&1
51if not %errorlevel% == 0 goto ERROR
52devenv /useenv /build "Release" /project db_java Berkeley_DB.sln >> ..\winbld.out 2>&1
53if not %errorlevel% == 0 goto ERROR
54devenv /useenv /build "Debug" /project db_tcl Berkeley_DB.sln >> ..\winbld.out 2>&1
55if not %errorlevel% == 0 goto ERROR
56devenv /useenv /build "Release" /project db_tcl Berkeley_DB.sln >> ..\winbld.out 2>&1
57if not %errorlevel% == 0 goto ERROR
58echo Building Berkeley DB CSharp API
59devenv /useenv /build "Debug" BDB_dotNet.sln >> ..\winbld.out 2>&1
60if not %errorlevel% == 0 goto ERROR
61devenv /useenv /build "Release" BDB_dotNet.sln >> ..\winbld.out 2>&1
62if not %errorlevel% == 0 goto ERROR
63
64
65goto END
66
67
68:ERROR
69echo *********** ERROR: during win_build.bat *************
70echo *********** ERROR: during win_build.bat *************  >> ..\winbld.err
71exit 1
72goto END
73
74:NSTOP
75echo *********** ERROR: win_build.bat stop requested *************
76echo *********** ERROR: win_built.bat stop requested *************  >> ..\winbld.err
77exit 2
78goto END
79
80:BATNOTFOUND
81echo *********** ERROR: VC Config batch file not found *************
82echo *********** ERROR: VC Config batch file not found *************  >> ..\winbld.err
83exit 3
84goto END
85
86:: TryBat(BATPATH)
87:: If the BATPATH exists, use it and return 0,
88:: otherwise, return 1.
89
90:TryBat
91:: Filename = %1
92if not exist %1 exit /b 1
93call %1
94exit /b 0
95goto :EOF
96
97:END
98