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