From af43f098d7d7cc0fe21c7d7b0fe991763e9cae07 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 10 Jul 2020 18:01:40 +1000 Subject: Add x64 and ARM64 versions of UtilBundleExtension. --- src/be/UtilBundleExtension.h | 2 +- src/be/beDecor.h | 13 +++++++++++++ src/be/precomp.h | 1 + src/be/utilbe.vcxproj | 25 +++++++++++++++++++++++++ 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 src/be/beDecor.h (limited to 'src/be') diff --git a/src/be/UtilBundleExtension.h b/src/be/UtilBundleExtension.h index 16c5b346..c55d6b85 100644 --- a/src/be/UtilBundleExtension.h +++ b/src/be/UtilBundleExtension.h @@ -4,7 +4,7 @@ // constants -#define UTIL_BUNDLE_EXTENSION_ID L"WixUtilBundleExtension" +#define UTIL_BUNDLE_EXTENSION_ID BUNDLE_EXTENSION_DECORATION(L"UtilBundleExtension") // function declarations diff --git a/src/be/beDecor.h b/src/be/beDecor.h new file mode 100644 index 00000000..2c6a8818 --- /dev/null +++ b/src/be/beDecor.h @@ -0,0 +1,13 @@ +#pragma once +// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. + + +#if defined(_M_ARM64) +#define BUNDLE_EXTENSION_DECORATION(f) L"Wix4" f L"_A64" +#elif defined(_M_AMD64) +#define BUNDLE_EXTENSION_DECORATION(f) L"Wix4" f L"_X64" +#elif defined(_M_ARM) +#define BUNDLE_EXTENSION_DECORATION(f) L"Wix4" f L"_ARM" +#else +#define BUNDLE_EXTENSION_DECORATION(f) L"Wix4" f L"_X86" +#endif diff --git a/src/be/precomp.h b/src/be/precomp.h index a4ab7abf..76d24c7b 100644 --- a/src/be/precomp.h +++ b/src/be/precomp.h @@ -31,6 +31,7 @@ #include #include +#include "beDecor.h" #include "utilsearch.h" #include "detectsha2support.h" #include "UtilBundleExtension.h" diff --git a/src/be/utilbe.vcxproj b/src/be/utilbe.vcxproj index b60fcf9f..3675ccc0 100644 --- a/src/be/utilbe.vcxproj +++ b/src/be/utilbe.vcxproj @@ -8,6 +8,30 @@ + + Debug + ARM + + + Release + ARM + + + Debug + ARM64 + + + Release + ARM64 + + + Debug + X64 + + + Release + X64 + Debug Win32 @@ -41,6 +65,7 @@ + -- cgit v1.2.3-55-g6feb