Commit | Line | Data |
---|---|---|
805e021f CE |
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 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 _WIN32_IE=0x500 | |
33 | ||
34 | REM Specify the minimum version of the Windows SDK: | |
35 | SET APPVER=5.1 | |
36 | ||
37 | REM ######################################################################## | |
38 | REM Location of base folder where source lies, build directory | |
39 | REM e.g. AFSROOT\SRC is source directory of the build tree (8.3 short name) | |
40 | set AFSROOT=C:\SRC\OpenAFS | |
41 | ||
42 | REM ######################################################################## | |
43 | REM NTMakefile required definitions: | |
44 | REM AFSVER_CL = version of the Microsoft compiler: | |
45 | REM "1200" for VC6 | |
46 | REM "1300" for VC7 (.NET) | |
47 | REM "1310" for .NET 2003 | |
48 | REM "1400" for VC8 (VS2005) | |
49 | REM "1500" for VC9 (VS2008) | |
50 | REM "1600" for VC10 (VS2010) | |
51 | REM "1700" for VC11 (VS2012) | |
52 | set AFSVER_CL=1400 | |
53 | ||
54 | REM ######################################################################## | |
55 | REM NTMakefile optional definitions: | |
56 | REM | |
57 | REM See NTMakefile.SYS_NAME; will normally use defaults. | |
58 | REM | |
59 | ||
60 | IF [%HOMEDRIVE%]==[] SET HOMEDRIVE=C: | |
61 | ||
62 | REM ######################################################################## | |
63 | REM Options necessary when using bison | |
64 | REM | |
65 | ||
66 | set BISON_SIMPLE=c:\bin\bison.simple | |
67 | set BISON_HAIRY=c:\bin\bison.hairy | |
68 | ||
69 | REM ######################################################################## | |
70 | REM Code Signing Definitions for signtool.exe (optional) | |
71 | ||
72 | REM SET CODESIGN_DESC=OpenAFS for Windows | |
73 | REM SET CODESIGN_TIMESTAMP=<URL for Time Stamp Service> | |
74 | REM SET CODESIGN_URL=<Support URL displayed in Add/Remove Programs> | |
75 | REM SET CODESIGN_CROSS_CERT=<Cross signing certificate path> | |
76 | REM SET CODESIGN_OTHER=<other options required for certificate selection> | |
77 | ||
78 | REM ######################################################################## | |
79 | REM Symbol Store Support | |
80 | ||
81 | REM SET SYMSTORE_EXE="C:\WinDDK\7600.16385.0\Debuggers\symstore.exe" | |
82 | REM SET SYMSTORE_ROOT=<Path to symbol store> | |
83 | REM SET SYMSTORE_COMMENT=<Comment to add to entries> | |
84 | ||
85 | REM ######################################################################## | |
86 | REM Accept build type as an argument; default to checked. | |
87 | ||
88 | if "%1"=="" goto checked | |
89 | if "%1"=="checked" goto checked | |
90 | if "%1"=="CHECKED" goto checked | |
91 | ||
92 | if "%1"=="free" goto free | |
93 | if "%1"=="FREE" goto free | |
94 | ||
95 | goto usage | |
96 | ||
97 | :checked | |
98 | set AFSBLD_TYPE=CHECKED | |
99 | set AFSDEV_CRTDEBUG=1 | |
100 | goto args_done | |
101 | ||
102 | :free | |
103 | set AFSBLD_TYPE=FREE | |
104 | set AFSDEV_CRTDEBUG=0 | |
105 | goto args_done | |
106 | ||
107 | :args_done | |
108 | ||
109 | REM ####################################################################### | |
110 | REM Construct Variables Required for NTMakefile | |
111 | REM AFSDEV_BUILDTYPE = CHECKED / FREE | |
112 | REM AFSDEV_INCLUDE = default include directories | |
113 | REM AFSDEV_LIB = default library directories | |
114 | REM AFSDEV_BIN = default build binary directories | |
115 | ||
116 | set AFSDEV_BUILDTYPE=%AFSBLD_TYPE% | |
117 | ||
118 | REM Location of Microsoft Visual C++ development folder (8.3 short name) | |
119 | set MSVCDIR=c:\progra~1\MID05A~1\vc | |
120 | ||
121 | REM Location of Microsoft Platform SDK (8.3 short name) | |
122 | set MSSDKDIR=C:\progra~1\MIA713~1\Windows\v6.0a | |
123 | ||
124 | REM Location of npapi.h (from DDK or Platform SDK samples - 8.3 short name) | |
125 | set NTDDKDIR=C:\WINDDK\7600.16385.0 | |
126 | ||
127 | REM Location of Microsoft IDN Normalization SDK | |
128 | set MSIDNNLS=C:\progra~1\MI5913~1 | |
129 | ||
130 | REM Location of Secure Endpoints Kerberos Compatibility SDK 1.0 | |
131 | set KERBEROSCOMPATSDKROOT=c:\progra~2\secure~1\kerber~1 | |
132 | ||
133 | REM Location of the WiX Installer Toolkit | |
134 | set WIX=c:\tools\wix.2.0.5325 | |
135 | ||
136 | REM Location of Cygwin | |
137 | set CYGWINDIR=c:\cygwin | |
138 | ||
139 | REM Location of ActivePerl for Windows | |
140 | set PERL=c:\perl | |
141 | ||
142 | REM Location of Microsoft Code Signing Tool | |
143 | SET SIGNTOOL=C:\winddk\7600.16385.0\bin\amd64\signtool.exe | |
144 | ||
145 | set AFSDEV_INCLUDE=%MSSDKDIR%\include;%MSVCDIR%\include;%MSIDNNLS%\include | |
146 | IF "%AFSVER_CL%" == "1700" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include | |
147 | IF "%AFSVER_CL%" == "1600" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include | |
148 | IF "%AFSVER_CL%" == "1500" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include | |
149 | IF "%AFSVER_CL%" == "1400" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include | |
150 | IF "%AFSVER_CL%" == "1310" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include | |
151 | IF "%AFSVER_CL%" == "1300" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include | |
152 | IF "%AFSVER_CL%" == "1200" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atl\include;%MSVCDIR%\mfc\include | |
153 | set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%NTDDKDIR%\INC\DDK;%NTDDKDIR%\INC\API; | |
154 | ||
155 | set AFSDEV_LIB=%MSSDKDIR%\lib;%MSVCDIR%\lib | |
156 | IF "%AFSVER_CL%" == "1700" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib | |
157 | IF "%AFSVER_CL%" == "1600" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib | |
158 | IF "%AFSVER_CL%" == "1500" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib | |
159 | IF "%AFSVER_CL%" == "1400" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib | |
160 | IF "%AFSVER_CL%" == "1310" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib | |
161 | IF "%AFSVER_CL%" == "1300" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib | |
162 | IF "%AFSVER_CL%" == "1200" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\mfc\lib | |
163 | ||
164 | set AFSDEV_BIN=%MSSDKDIR%\bin;%MSVCDIR%\bin;%PERL%\bin;%CYGWINDIR%\bin;%WIX% | |
165 | ||
166 | goto end | |
167 | ||
168 | :usage | |
169 | echo. | |
170 | echo Usage: %0 [free^|^checked^|^wspp] | |
171 | echo. | |
172 | ||
173 | :end |