037e252a76f4f247c678f2b4c94c14ebd4d412e1
[platform/upstream/krb5.git] / src / windows / installer / wix / config.wxi
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3
4   Copyright (C) 2004, 2005, 2006 by the Massachusetts Institute of Technology.
5   All rights reserved.
6  
7   Export of this software from the United States of America may
8     require a specific license from the United States Government.
9     It is the responsibility of any person or organization contemplating
10     export to obtain such a license before exporting.
11  
12   WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
13   distribute this software and its documentation for any purpose and
14   without fee is hereby granted, provided that the above copyright
15   notice appear in all copies and that both that copyright notice and
16   this permission notice appear in supporting documentation, and that
17   the name of M.I.T. not be used in advertising or publicity pertaining
18   to distribution of the software without specific, written prior
19   permission.  Furthermore if you modify this software you must label
20   your software as modified software and not distribute it in such a
21   fashion that it might be confused with the original M.I.T. software.
22   M.I.T. makes no representations about the suitability of
23   this software for any purpose.  It is provided "as is" without express
24   or implied warranty.
25   
26   -->
27 <Include xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
28
29     <!-- include site sepecific customizations -->
30     <?include site-local.wxi?>
31     
32     <!-- Sanity checks -->
33     <?ifndef var.CL1600?>
34         <?error Must define CL1600 (MSVC10.0)?>
35     <?endif?>
36
37     <!-- Build type specifications -->
38     <?ifndef env.CPU?>
39         <?error CPU is not set ?>
40     <?endif?>
41     <?define BinDir="$(env.KRB_INSTALL_DIR)\bin\"?>
42     <?define LibDir="$(env.KRB_INSTALL_DIR)\lib\"?>
43     <?define InstallerVersion="450"?>
44     <?if $(env.CPU) = "i386"?>
45         <?define Platform="Intel"?>
46         <?define Win64="no"?>
47     <?elseif $(env.CPU) = "AMD64"?>
48         <?define Platform="x64"?>
49         <?define Win64="yes"?>
50     <?else?>
51         <?error Unknown build type?>
52     <?endif?>
53     <?ifndef env.VISUALSTUDIOVERSION?>
54         <?define VCVer="100"?>
55     <?elseif $(env.VISUALSTUDIOVERSION) = "11.0"?>
56         <?define VCVer="110"?>
57     <?else?>
58         <?error Unknown MFC version?>
59     <?endif?>
60     
61     <?define KfwRegRoot="SOFTWARE\MIT\Kerberos"?>
62     <?define KfwRegWow6432Root="SOFTWARE\Wow6432Node\MIT\Kerberos"?>
63
64     <?define DocDir="$(var.TargetDir)doc\"?>
65     <?define IncDir="$(var.TargetDir)include\"?>
66     <?define SrcDir="$(var.TargetDir)"?>
67     <?define InstallDir="$(var.TargetDir)windows\installer\"?>
68     <?define SampleDir="$(var.TargetDir)sample\"?>
69     <?ifdef env.MIT_INTERNAL?>
70       <?define ConfigDir=".\athena\"?>
71     <?else?>
72       <?define ConfigDir=".\"?>
73     <?endif?>
74
75     <?define SystemDir="$(env.SystemRoot)\System32\"?>
76
77     <?include lang\config_$(var.BuildLang).wxi?>
78     
79     <!-- Parameters for the features containing debug symbols -->
80     <?ifdef env.NODEBUG?>
81          <?ifdef env.DEBUG_SYMBOL?>
82               <?define DebugSyms?>
83          <?endif?>
84     <?else?>
85          <?define Debug?>
86          <?define DebugSyms?>
87     <?endif?>
88     <?ifdef DebugSyms?>
89          <?ifdef Debug?>
90              <?define DebugSymInstallDefault="followParent"?>
91              <?define DebugSymLowLevel="30"?>
92              <?define DebugSymHighLevel="130"?>
93          <?else?>
94              <?define DebugSymInstallDefault="followParent"?>
95              <?define DebugSymLowLevel="130"?>
96              <?define DebugSymHighLevel="130"?>
97          <?endif?>
98     <?endif?>
99     
100     <!-- Configuration macros -->
101     <?ifndef LeashAfsStatus?>
102         <?define LeashAfsStatus="1"?>
103     <?endif?>
104     <?ifndef LeashCreateMissingConfig?>
105         <?define LeashCreateMissingConfig="0"?>
106     <?endif?>
107     <?ifndef LeashAutoRenewTickets?>
108         <?define LeashAutoRenewTickets="1"?>
109     <?endif?>
110     <?ifndef LeashLockFileLocations?>
111         <?define LeashLockFileLocations="0"?>
112     <?endif?>
113     <?ifndef LeashMsLsaImport?>
114         <?define LeashMsLsaImport="2"?>
115     <?endif?>
116     <?ifndef LeashLifetime?>
117         <?define LeashLifetime="0"?>
118     <?endif?>
119     <?ifndef LeashRenewTill?>
120         <?define LeashRenewTill="0"?>
121     <?endif?>
122     <?ifndef LeashRenewable?>
123         <?define LeashRenewable="0"?>
124     <?endif?>
125     <?ifndef LeashForwardable?>
126         <?define LeashForwardable="1"?>
127     <?endif?>
128     <?ifndef LeashNoAddresses?>
129         <?define LeashNoAddresses="1"?>
130     <?endif?>
131     <?ifndef LeashProxiable?>
132         <?define LeashProxiable="0"?>
133     <?endif?>
134     <?ifndef LeashPublicIp?>
135         <?define LeashPublicIp="0"?>
136     <?endif?>
137     <?ifndef LeashUseKrb4?>
138         <?define LeashUseKrb4="1"?>
139     <?endif?>
140     <?ifndef LeashHideKinitOptions?>
141         <?define LeashHideKinitOptions="0"?>
142     <?endif?>
143     <?ifndef LeashLifeMin?>
144         <?define LeashLifeMin="5"?>
145     <?endif?>
146     <?ifndef LeashLifeMax?>
147         <?define LeashLifeMax="1440"?>
148     <?endif?>
149     <?ifndef LeashRenewMin?>
150         <?define LeashRenewMin="600"?>
151     <?endif?>
152     <?ifndef LeashRenewMax?>
153         <?define LeashRenewMax="43200"?>
154     <?endif?>
155     <?ifndef LeashUppercaseRealm?>
156         <?define LeashUppercaseRealm="1"?>
157     <?endif?>
158     <?ifndef LeashTimeHost?>
159         <?define LeashTimeHost="time"?>
160     <?endif?>
161     <?ifndef LeashPreserveKinitOptions?>
162         <?define LeashPreserveKinitOptions="0"?>
163     <?endif?>
164     <!-- These actually have no defaults. -->
165     <?ifndef Krb4KrbRealms?>
166         <?define Krb4KrbRealms=""?>
167     <?endif?>
168     <?ifndef Krb4KrbConf?>
169         <?define Krb4KrbConf=""?>
170     <?endif?>
171     <?ifndef Krb4ConfigDir?>
172         <?define Krb4ConfigDir=""?>
173     <?endif?>
174     <?ifndef Krb4TicketFile?>
175         <?define Krb4TicketFile=""?>
176     <?endif?>
177     <?ifndef Krb5Config?>
178         <?define Krb5Config=""?>
179     <?endif?>
180     <?ifndef Krb5CcName?>
181         <?define Krb5CcName=""?>
182     <?endif?>
183     <?ifndef Krb5PreserveIdentity?>
184         <?define Krb5PreserveIdentity="1"?>
185     <?endif?>
186
187     <!-- If neither NetIDMgr or Leash is specified, we default to NetIDMgr -->
188     <?ifndef UseNetIDMgr?>
189         <?ifndef UseLeash?>
190              <?define UseNetIDMgr="1"?>
191         <?endif?>
192     <?endif?>
193 </Include>