CellServDB update 14 Mar 2017
[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        DocDir         : openafs\doc\
27        DestDir        : $(DEST)\
28        BinDir         : $(DEST)\bin\
29        LibDir         : $(DEST)\lib\
30        IncDir         : $(DEST)\include\
31        EtcDir         : $(DEST)\etc\
32        ClientDir      : $(DEST)\root.client\usr\vice\etc\
33        ServerDir      : $(DEST)\root.server\usr\afs\bin\
34        
35        SystemDir      : %SystemRoot%\System32\
36      -->
37
38         <!-- Configuration options, allow for commandline specification -->
39     <?ifndef CellName?>
40         <?define CellName="<enter.your.cell>"?>
41     <?endif?>
42     <?ifndef LogonOptions?>
43                 <?define LogonOptions="0"?>
44     <?endif?>
45     <?ifndef FreelanceMode?>
46                 <?define FreelanceMode="1"?>
47     <?endif?>
48     <?ifndef UseDNS?>
49                 <?define UseDNS="1"?>
50     <?endif?>
51     <?ifndef NoFindLanaByName?>
52                 <?define NoFindLanaByName="1"?>
53     <?endif?>
54     <?ifndef MountRoot?>
55                 <?define MountRoot="/afs"?>
56     <?endif?>
57     <?ifndef NetbiosName?>
58                 <?define NetbiosName="AFS"?>
59     <?endif?>
60     <?ifndef RxMaxMTU?>
61                 <?define RxMaxMTU="0"?>
62     <?endif?>
63     <?ifndef HideDotFiles?>
64                 <?define HideDotFiles="1"?>
65     <?endif?>
66     <?ifndef SecurityLevel?>
67                 <?define SecurityLevel="1"?>
68     <?endif?>
69     <?ifndef SMBAuthType?>
70                 <?define SMBAuthType="2"?>
71     <?endif?>
72
73     <?define InstallTimestamp="[Date] [Time]"?>
74     
75     <!-- The following general parameters may be specified on the commandline to candle -->
76     <?ifndef NumericVersion?>
77         <?error NumericVersion should have been specified on the commandline?>
78     <?endif?>
79     <!-- We can't currently break down a numeric version into components in here,
80          so we also need the major, minor and patch on the command line as well
81     -->
82     <?ifndef VersionMajor?>
83         <?error VersionMajor should have been specified on the commandline?>
84     <?endif?>
85     <?ifndef VersionMinor?>
86         <?error VersionMinor should be specified on the commandline?>
87     <?endif?>
88     <?ifndef VersionPatch?>
89         <?error VersionRevision should be specified on the commandline?>
90     <?endif?>
91
92     <!-- define some packagecode, though we aren't really using it.  See openafs.wxs -->
93     <?ifndef PackageCode?>
94         <?define PackageCode="6086552D-3EFA-436C-A0BD-25668849F0DB"?>
95     <?endif?>
96     <?if $(env.AFSDEV_BUILDTYPE) = "CHECKED"?>
97         <?define Debug = "yes"?>
98         <?define ReleaseType="DT"?>
99     <?elseif $(env.AFSDEV_BUILDTYPE) = "FREE"?>
100         <?define ReleaseType="GA"?>
101     <?else?>
102         <?error AFSDEV_BUILDTYPE is not set in the environment.?>
103     <?endif?>
104
105     <!-- Are we building a lite installer? then don't include debug symbols -->
106     <?ifdef LiteClient ?>
107         <?define NoDebugSyms ?>
108     <?endif?>
109
110     <!-- Default to including debug symbols unless someone defines
111          NoDebugSyms. -->
112     <?ifndef NoDebugSyms ?>
113         <?define DebugSyms = "yes"?>
114     <?endif?>
115
116     <!-- Parameters for the features containing debug symbols -->
117     <?ifdef DebugSyms?>
118          <?ifdef Debug?>
119              <?define DebugSymInstallDefault="followParent"?>
120              <?define DebugSymLowLevel="30"?>
121              <?define DebugSymHighLevel="130"?>
122          <?else?>
123              <?define DebugSymInstallDefault="followParent"?>
124              <?define DebugSymLowLevel="130"?>
125              <?define DebugSymHighLevel="130"?>
126          <?endif?>
127     <?endif?>
128
129     <!-- Build type specifications -->
130     <?ifndef env.CPU?>
131         <?error CPU is not set ?>
132     <?endif?>
133     <?if $(env.CPU) = "i386"?>
134         <?define InstallerVersion="110"?>
135         <?define Platform="Intel"?>
136         <?define Win64="no"?>
137         <?define Arch="x86"?>
138     <?elseif $(env.CPU) = "AMD64"?>
139         <?define InstallerVersion="200"?>
140         <?define Platform="x64"?>
141         <?define Win64="yes"?>
142         <?define Arch="amd64"?>
143     <?else?>
144         <?error Unknown build type?>
145     <?endif?>
146
147     <!-- Use the afsloopback.dll instead of instloop.exe -->
148     <?define UseDllLoopbackInstaller = "yes"?>
149
150     <!-- Note that if the follwing file does not exist, the build will fail -->
151     <?ifndef CellDbFile?>
152         <?define CellDbFile="CellServDB"?>
153     <?endif?>
154     
155     <!-- Directories -->
156     <!-- DestDir must be specified -->
157     <?ifndef DestDir?>
158         <?define DestDir="$(env.AFSROOT)\dest\"?>
159     <?endif?>
160     <?ifndef SrcDir?>
161         <?define SrcDir="$(env.AFSROOT)\src\"?>
162     <?endif?>
163     <?ifndef DocDir?>
164         <?define DocDir="$(env.AFSROOT)\doc\"?>
165     <?endif?>
166     <?ifndef MediaDllDir?>
167         <?define MediaDllDir="$(var.DestDir)WinInstall\Dll\"?>
168     <?endif?>
169     <?ifndef MediaBinDir?>
170         <?define MediaBinDir="$(var.DestDir)WinInstall\Config\"?>
171     <?endif?>
172     <?ifndef BinDir?>
173         <?define BinDir="$(var.DestDir)bin\"?>
174     <?endif?>
175     <?ifndef LibDir?>
176         <?define LibDir="$(var.DestDir)lib\"?>
177     <?endif?>
178     <?ifndef IncDir?>
179         <?define IncDir="$(var.DestDir)include\"?>
180     <?endif?>
181     <?ifndef EtcDir?>
182         <?define EtcDir="$(var.DestDir)etc\"?>
183     <?endif?>
184     <?ifndef ClientDir?>
185         <?define ClientDir="$(var.DestDir)root.client\usr\vice\etc\"?>
186     <?endif?>
187     <?ifndef ServerDir?>
188         <?define ServerDir="$(var.DestDir)root.server\usr\afs\bin\"?>
189     <?endif?>
190     
191     <!-- We need the following to locate the proper runtime libraries -->
192     <?ifndef env.AFSVER_CL?>
193                 <?error AFSVER_CL needs to be set to the compiler version?>
194     <?endif?>
195     <?define SystemDir="$(env.SystemRoot)\System32\"?>
196
197
198 </Include>