diff options
author | Bob Arnson <bob@firegiant.com> | 2023-02-16 20:59:16 -0500 |
---|---|---|
committer | Bob Arnson <github@bobs.org> | 2023-02-23 13:08:26 -0500 |
commit | 7693f0e773154e963557ab4f2cd71e5250f8563d (patch) | |
tree | bee6a672286ab0de99823bd4516fc44a6626b1ed | |
parent | d24800ebb5b9693041d41dbcb7d620e3441c822d (diff) | |
download | wix-7693f0e773154e963557ab4f2cd71e5250f8563d.tar.gz wix-7693f0e773154e963557ab4f2cd71e5250f8563d.tar.bz2 wix-7693f0e773154e963557ab4f2cd71e5250f8563d.zip |
Add sys.BUILDARCHSHORT preprocessor variable.
-rw-r--r-- | src/wix/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/wix/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs b/src/wix/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs index bcf516b6..1392a584 100644 --- a/src/wix/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs +++ b/src/wix/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs | |||
@@ -245,6 +245,22 @@ namespace WixToolset.Core.ExtensibilityServices | |||
245 | throw new ArgumentException("Unknown platform enumeration '{0}' encountered.", context.Platform.ToString()); | 245 | throw new ArgumentException("Unknown platform enumeration '{0}' encountered.", context.Platform.ToString()); |
246 | } | 246 | } |
247 | 247 | ||
248 | case "BUILDARCHSHORT": | ||
249 | switch (context.Platform) | ||
250 | { | ||
251 | case Platform.X86: | ||
252 | return "X86"; | ||
253 | |||
254 | case Platform.X64: | ||
255 | return "X64"; | ||
256 | |||
257 | case Platform.ARM64: | ||
258 | return "A64"; | ||
259 | |||
260 | default: | ||
261 | throw new ArgumentException("Unknown platform enumeration '{0}' encountered.", context.Platform.ToString()); | ||
262 | } | ||
263 | |||
248 | case "WIXMAJORVERSION": | 264 | case "WIXMAJORVERSION": |
249 | return ThisAssembly.Git.BaseVersion.Major; | 265 | return ThisAssembly.Git.BaseVersion.Major; |
250 | 266 | ||