Import Debian changes 1.8.5-1
[hcoop/debian/openafs.git] / src / ntbuild.bat
CommitLineData
805e021f
CE
1rem Copyright 2000, International Business Machines Corporation and others.
2rem All Rights Reserved.
3rem
4rem This software has been released under the terms of the IBM Public
5rem License. For details, see the LICENSE file in the top-level source
6rem directory or online at http://www.openafs.org/dl/license10.html
7
8
9REM AFS build environment variables for Windows NT.
10REM Modify for local configuration; common defaults shown.
11REM ########################################################################
12
13REM ########################################################################
14REM NOTE: You will need to copy the NLS files into your windows\system32
15REM directory prior to building non-english files.
16REM
17REM ########################################################################
18
19
20REM ########################################################################
21REM General required definitions:
22REM SYS_NAME = AFS system name
23REM Choose one of "i386_w2k", "amd64_w2k", or "i64_w2k"
24SET SYS_NAME=i386_w2k
25
26REM Specify the minimum version of IE:
27REM 0x500 for Windows 2000 and above
28REM 0x501 for Windows XP 32 and above
29REM 0x502 for Windows XP 64 and Server 2003 and above
30REM 0x600 for Windows Vista and Server 2008 and above
31REM 0x700 for Windows 7 and Server 2008 R2 and above
32SET _WIN32_IE=0x500
33
34REM Specify the minimum version of the Windows SDK:
35SET APPVER=5.1
36
37REM ########################################################################
38REM Location of base folder where source lies, build directory
39REM e.g. AFSROOT\SRC is source directory of the build tree (8.3 short name)
40set AFSROOT=C:\SRC\OpenAFS
41
42REM ########################################################################
43REM NTMakefile required definitions:
44REM AFSVER_CL = version of the Microsoft compiler:
45REM "1200" for VC6
46REM "1300" for VC7 (.NET)
47REM "1310" for .NET 2003
48REM "1400" for VC8 (VS2005)
49REM "1500" for VC9 (VS2008)
50REM "1600" for VC10 (VS2010)
51REM "1700" for VC11 (VS2012)
52set AFSVER_CL=1400
53
54REM ########################################################################
55REM NTMakefile optional definitions:
56REM
57REM See NTMakefile.SYS_NAME; will normally use defaults.
58REM
59
60IF [%HOMEDRIVE%]==[] SET HOMEDRIVE=C:
61
62REM ########################################################################
63REM Options necessary when using bison
64REM
65
66set BISON_SIMPLE=c:\bin\bison.simple
67set BISON_HAIRY=c:\bin\bison.hairy
68
69REM ########################################################################
70REM Code Signing Definitions for signtool.exe (optional)
71
72REM SET CODESIGN_DESC=OpenAFS for Windows
73REM SET CODESIGN_TIMESTAMP=<URL for Time Stamp Service>
74REM SET CODESIGN_URL=<Support URL displayed in Add/Remove Programs>
75REM SET CODESIGN_CROSS_CERT=<Cross signing certificate path>
76REM SET CODESIGN_OTHER=<other options required for certificate selection>
77
78REM ########################################################################
79REM Symbol Store Support
80
81REM SET SYMSTORE_EXE="C:\WinDDK\7600.16385.0\Debuggers\symstore.exe"
82REM SET SYMSTORE_ROOT=<Path to symbol store>
83REM SET SYMSTORE_COMMENT=<Comment to add to entries>
84
85REM ########################################################################
86REM Accept build type as an argument; default to checked.
87
88if "%1"=="" goto checked
89if "%1"=="checked" goto checked
90if "%1"=="CHECKED" goto checked
91
92if "%1"=="free" goto free
93if "%1"=="FREE" goto free
94
95goto usage
96
97:checked
98set AFSBLD_TYPE=CHECKED
99set AFSDEV_CRTDEBUG=1
100goto args_done
101
102:free
103set AFSBLD_TYPE=FREE
104set AFSDEV_CRTDEBUG=0
105goto args_done
106
107:args_done
108
109REM #######################################################################
110REM Construct Variables Required for NTMakefile
111REM AFSDEV_BUILDTYPE = CHECKED / FREE
112REM AFSDEV_INCLUDE = default include directories
113REM AFSDEV_LIB = default library directories
114REM AFSDEV_BIN = default build binary directories
115
116set AFSDEV_BUILDTYPE=%AFSBLD_TYPE%
117
118REM Location of Microsoft Visual C++ development folder (8.3 short name)
119set MSVCDIR=c:\progra~1\MID05A~1\vc
120
121REM Location of Microsoft Platform SDK (8.3 short name)
122set MSSDKDIR=C:\progra~1\MIA713~1\Windows\v6.0a
123
124REM Location of npapi.h (from DDK or Platform SDK samples - 8.3 short name)
125set NTDDKDIR=C:\WINDDK\7600.16385.0
126
127REM Location of Microsoft IDN Normalization SDK
128set MSIDNNLS=C:\progra~1\MI5913~1
129
130REM Location of Secure Endpoints Kerberos Compatibility SDK 1.0
131set KERBEROSCOMPATSDKROOT=c:\progra~2\secure~1\kerber~1
132
133REM Location of the WiX Installer Toolkit
134set WIX=c:\tools\wix.2.0.5325
135
136REM Location of Cygwin
137set CYGWINDIR=c:\cygwin
138
139REM Location of ActivePerl for Windows
140set PERL=c:\perl
141
142REM Location of Microsoft Code Signing Tool
143SET SIGNTOOL=C:\winddk\7600.16385.0\bin\amd64\signtool.exe
144
145set AFSDEV_INCLUDE=%MSSDKDIR%\include;%MSVCDIR%\include;%MSIDNNLS%\include
146IF "%AFSVER_CL%" == "1700" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include
147IF "%AFSVER_CL%" == "1600" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include
148IF "%AFSVER_CL%" == "1500" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include
149IF "%AFSVER_CL%" == "1400" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include
150IF "%AFSVER_CL%" == "1310" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include
151IF "%AFSVER_CL%" == "1300" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include
152IF "%AFSVER_CL%" == "1200" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atl\include;%MSVCDIR%\mfc\include
153set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%NTDDKDIR%\INC\DDK;%NTDDKDIR%\INC\API;
154
155set AFSDEV_LIB=%MSSDKDIR%\lib;%MSVCDIR%\lib
156IF "%AFSVER_CL%" == "1700" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib
157IF "%AFSVER_CL%" == "1600" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib
158IF "%AFSVER_CL%" == "1500" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib
159IF "%AFSVER_CL%" == "1400" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib
160IF "%AFSVER_CL%" == "1310" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib
161IF "%AFSVER_CL%" == "1300" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib
162IF "%AFSVER_CL%" == "1200" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\mfc\lib
163
164set AFSDEV_BIN=%MSSDKDIR%\bin;%MSVCDIR%\bin;%PERL%\bin;%CYGWINDIR%\bin;%WIX%
165
166goto end
167
168:usage
169echo.
170echo Usage: %0 [free^|^checked^|^wspp]
171echo.
172
173:end