windows-64-bit-type-safety-20051105
[openafs.git] / src / WINNT / install / wix / config.wxi
1 \feff<?xml version="1.0"?>
2
3 <Include>
4     <!--
5      config.wxi defines the following variables :
6       General:
7        NumericVersion : Version number of the form a.b.c
8        VersionMajor   : a
9        VersionMinor   : b
10        VersionPatch   : c
11        PackageCode    : Package code
12        Debug          : Whether or not to include debugging information
13        ReleaseType    : AFS release type
14        InstallTimestamp: Timestamp for when the installer was generated.
15        
16        CellName       : Default cell name
17        CellDbFile     : Path to default CellServDB file
18        
19        RemoveLoopback : Defined if we want to remove the loopback adapter
20        
21       
22       Directory specs: (all dir. specs end in a '\')
23        MediaDllDir    : Installer Dlls
24        MediaBinDir    : Installer Exes
25        SrcDir         : openafs\src\
26        DestDir        : $(DEST)\
27        BinDir         : $(DEST)\bin\
28        LibDir         : $(DEST)\lib\
29        IncDir         : $(DEST)\include\
30        EtcDir         : $(DEST)\etc\
31        ClientDir      : $(DEST)\root.client\usr\vice\etc\
32        ServerDir      : $(DEST)\root.server\usr\afs\bin\
33        
34        SystemDir      : %SystemRoot%\System32\
35      -->
36
37         <!-- Configuration options, allow for commandline specification -->
38     <?ifndef CellName?>
39         <?define CellName="openafs.org"?>
40     <?endif?>
41     <?ifndef LogonOptions?>
42                 <?define LogonOptions="1"?>
43     <?endif?>
44     <?ifndef FreelanceMode?>
45                 <?define FreelanceMode="1"?>
46     <?endif?>
47     <?ifndef UseDNS?>
48                 <?define UseDNS="1"?>
49     <?endif?>
50     <?ifndef NoFindLanaByName?>
51                 <?define NoFindLanaByName="1"?>
52     <?endif?>
53     <?ifndef MountRoot?>
54                 <?define MountRoot="/afs"?>
55     <?endif?>
56     <?ifndef NetbiosName?>
57                 <?define NetbiosName="AFS"?>
58     <?endif?>
59     <?ifndef RxMaxMTU?>
60                 <?define RxMaxMTU="1260"?>
61     <?endif?>
62     <?ifndef HideDotFiles?>
63                 <?define HideDotFiles="1"?>
64     <?endif?>
65     <?ifndef SecurityLevel?>
66                 <?define SecurityLevel="1"?>
67     <?endif?>
68     <?ifndef SMBAuthType?>
69                 <?define SMBAuthType="2"?>
70     <?endif?>
71
72     <?define InstallTimestamp="[Date] [Time]"?>
73     
74     <!-- The following general parameters may be specified on the commandline to candle -->
75     <?ifndef NumericVersion?>
76         <?error NumericVersion should have been specified on the commandline?>
77     <?endif?>
78     <!-- We can't currently break down a numeric version into components in here,
79          so we also need the major, minor and patch on the command line as well
80     -->
81     <?ifndef VersionMajor?>
82         <?error VersionMajor should have been specified on the commandline?>
83     <?endif?>
84     <?ifndef VersionMinor?>
85         <?error VersionMinor should be specified on the commandline?>
86     <?endif?>
87     <?ifndef VersionPatch?>
88         <?error VersionRevision should be specified on the commandline?>
89     <?endif?>
90
91     <!-- define some packagecode, though we aren't really using it.  See openafs.wxs -->
92     <?ifndef PackageCode?>
93         <?define PackageCode="6086552D-3EFA-436C-A0BD-25668849F0DB"?>
94     <?endif?>
95     <?if $(env.AFSDEV_BUILDTYPE) = "CHECKED"?>
96         <?define Debug?>
97         <?define ReleaseType="DT"?>
98     <?elseif $(env.AFSDEV_BUILDTYPE) = "FREE"?>
99         <?define ReleaseType="GA"?>
100     <?else?>
101         <?error AFSDEV_BUILDTYPE is not set in the environment.?>
102     <?endif?>
103
104     <!-- We are including debug symbols anyway.  Undefine this for a leaner installer without debug syms. -->
105     <?define DebugSyms?>
106
107     <!-- Parameters for the features containing debug symbols -->
108     <?ifdef DebugSyms?>
109          <?ifdef Debug?>
110              <?define DebugSymInstallDefault="followParent"?>
111              <?define DebugSymLowLevel="30"?>
112              <?define DebugSymHighLevel="130"?>
113          <?else?>
114              <?define DebugSymInstallDefault="followParent"?>
115              <?define DebugSymLowLevel="130"?>
116              <?define DebugSymHighLevel="130"?>
117          <?endif?>
118     <?endif?>
119
120     <!-- Build type specifications -->
121     <?ifndef env.CPU?>
122         <?error CPU is not set ?>
123     <?endif?>
124     <?if $(env.CPU) = "i386"?>
125         <?define InstallerVersion="110"?>
126         <?define Platform="Intel"?>
127         <?define Win64="no"?>
128     <?elseif $(env.CPU) = "AMD64"?>
129         <?define InstallerVersion="200"?>
130         <?define Platform="x64"?>
131         <?define Win64="yes"?>
132     <?else?>
133         <?error Unknown build type?>
134     <?endif?>
135     
136     <!-- Use the afsloopback.dll instead of instloop.exe -->
137     <?define UseDllLoopbackInstaller?>
138
139     <!-- Note that if the follwing file does not exist, the build will fail -->
140     <?ifndef CellDbFile?>
141         <?define CellDbFile="CellServDB"?>
142     <?endif?>
143     
144     <!-- Directories -->
145     <!-- DestDir must be specified -->
146     <?ifndef DestDir?>
147         <?define DestDir="$(env.AFSROOT)\dest\"?>
148     <?endif?>
149     <?ifndef SrcDir?>
150         <?define SrcDir="$(env.AFSROOT)\src\"?>
151     <?endif?>
152     <?ifndef MediaDllDir?>
153         <?define MediaDllDir="$(var.DestDir)WinInstall\Dll\"?>
154     <?endif?>
155     <?ifndef MediaBinDir?>
156         <?define MediaBinDir="$(var.DestDir)WinInstall\Config\"?>
157     <?endif?>
158     <?ifndef BinDir?>
159         <?define BinDir="$(var.DestDir)bin\"?>
160     <?endif?>
161     <?ifndef LibDir?>
162         <?define LibDir="$(var.DestDir)lib\"?>
163     <?endif?>
164     <?ifndef IncDir?>
165         <?define IncDir="$(var.DestDir)include\"?>
166     <?endif?>
167     <?ifndef EtcDir?>
168         <?define EtcDir="$(var.DestDir)etc\"?>
169     <?endif?>
170     <?ifndef ClientDir?>
171         <?define ClientDir="$(var.DestDir)root.client\usr\vice\etc\"?>
172     <?endif?>
173     <?ifndef ServerDir?>
174         <?define ServerDir="$(var.DestDir)root.server\usr\afs\bin\"?>
175     <?endif?>
176     
177     <!-- We need the following to locate the proper runtime libraries -->
178     <?ifndef env.AFSVER_CL?>
179                 <?error AFSVER_CL needs to be set to the compiler version?>
180     <?endif?>
181     <?define SystemDir="$(env.SystemRoot)\System32\"?>
182
183
184 </Include>