windows-64-bit-type-safety-20051105
[openafs.git] / src / WINNT / install / wix / config.wxi
index aa4bfbc..1d70324 100644 (file)
              <?define DebugSymHighLevel="130"?>
          <?endif?>
     <?endif?>
+
+    <!-- Build type specifications -->
+    <?ifndef env.CPU?>
+       <?error CPU is not set ?>
+    <?endif?>
+    <?if $(env.CPU) = "i386"?>
+       <?define InstallerVersion="110"?>
+       <?define Platform="Intel"?>
+       <?define Win64="no"?>
+    <?elseif $(env.CPU) = "AMD64"?>
+       <?define InstallerVersion="200"?>
+       <?define Platform="x64"?>
+       <?define Win64="yes"?>
+    <?else?>
+        <?error Unknown build type?>
+    <?endif?>
     
     <!-- Use the afsloopback.dll instead of instloop.exe -->
     <?define UseDllLoopbackInstaller?>