Fossil

Check-in [4f32dced]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added .bat for building with latest MSVC version
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | msvc_build
Files: files | file ages | folders
SHA1:4f32dced744f4514fb4086ddd473abc1d8a37482
User & Date: BM 2013-10-30 09:39:15
Context
2013-12-17
09:25
Merge changes from trunk and update msvc_build.bat for entirely automated build using the latest MSVC version. Closed-Leaf check-in: 555c44eb user: BM tags: msvc_build
2013-10-30
09:39
Added .bat for building with latest MSVC version check-in: 4f32dced user: BM tags: msvc_build
09:38
Create new branch named "msvc_build" check-in: caa9c2c6 user: BM tags: msvc_build
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added win/msvc_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
@echo off

rem getting 32-bit program files directory
SET pf_32bit=%programfiles(x86)%
IF "%pf_32bit%"=="" SET pf_32bit=%programfiles%

rem getting vcvarsall.bat path for the latest version of visual studio that is available on the system
SET msvc2013=Microsoft Visual Studio 12.0
SET msvc2012=Microsoft Visual Studio 11.0
SET msvc2010=Microsoft Visual Studio 10.0
SET msvc2008=Microsoft Visual Studio 9.0
SET msvc2005=Microsoft Visual Studio 8

rem Microsoft Visual Studio .NET 2003 does not have vcvarsall.bat
                         SET vcvarsall="%pf_32bit%\%msvc2013%\VC\vcvarsall.bat"
IF NOT EXIST %vcvarsall% SET vcvarsall="%pf_32bit%\%msvc2012%\VC\vcvarsall.bat"
IF NOT EXIST %vcvarsall% SET vcvarsall="%pf_32bit%\%msvc2010%\VC\vcvarsall.bat"
IF NOT EXIST %vcvarsall% SET vcvarsall="%pf_32bit%\%msvc2008%\VC\vcvarsall.bat"
IF NOT EXIST %vcvarsall% SET vcvarsall="%pf_32bit%\%msvc2005%\VC\vcvarsall.bat"

rem check everything is correct
IF NOT EXIST %vcvarsall% goto:bad_environment

rem making build directory
pushd "%~dp0"
cd ..
mkdir msvc_build
cd msvc_build

rem setting environment variables for building with Microsoft Visual C++
call %vcvarsall%

rem building
nmake /f "%~dp0\Makefile.msc"
popd
pause
goto:eof

:bad_environment
echo "vcvarsall.bat could not be found on this system."
pause
goto:eof