From b9ba35486245a65cd8e376cc7a808f6fa7d41682 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Wed, 9 Dec 2020 12:51:21 -0600 Subject: WIXFEAT:6209 - Add x64 and ARM64 versions of built-in BAs. --- src/Samples/bafunctions/bafunctions.vcxproj | 16 ++++++++++++++++ src/dnchost/dnchost.vcxproj | 20 +++++++++++++++++++- src/dnchost/dncutil.cpp | 6 +++--- src/dnchost/packages.config | 2 ++ src/mbahost/mbahost.vcxproj | 16 ++++++++++++++++ .../examples/TestEngine/Example.TestEngine.vcxproj | 8 ++++++++ src/wixext/BalCompiler.cs | 2 +- src/wixlib/bal.wixproj | 22 ++++++++++++++++++---- src/wixstdba/wixstdba.vcxproj | 16 ++++++++++++++++ 9 files changed, 99 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/Samples/bafunctions/bafunctions.vcxproj b/src/Samples/bafunctions/bafunctions.vcxproj index 9e0aa581..755d0ca6 100644 --- a/src/Samples/bafunctions/bafunctions.vcxproj +++ b/src/Samples/bafunctions/bafunctions.vcxproj @@ -7,6 +7,14 @@ + + Debug + ARM64 + + + Release + ARM64 + Debug Win32 @@ -15,6 +23,14 @@ Release Win32 + + Debug + x64 + + + Release + x64 + diff --git a/src/dnchost/dnchost.vcxproj b/src/dnchost/dnchost.vcxproj index 419077ac..5959d6ea 100644 --- a/src/dnchost/dnchost.vcxproj +++ b/src/dnchost/dnchost.vcxproj @@ -8,6 +8,14 @@ + + Debug + ARM64 + + + Release + ARM64 + Debug Win32 @@ -16,6 +24,14 @@ Release Win32 + + Debug + x64 + + + Release + x64 + {B6F70281-6583-4138-BB7F-AABFEBBB3CA2} @@ -28,7 +44,9 @@ - ..\..\packages\runtime.win-x86.Microsoft.NETCore.DotNetAppHost.5.0.0\runtimes\win-x86\native\ + $(Platform) + x86 + ..\..\packages\runtime.win-$(NetHostPlatform).Microsoft.NETCore.DotNetAppHost.5.0.0\runtimes\win-$(NetHostPlatform)\native\ shlwapi.lib;$(NetHostPath)libnethost.lib diff --git a/src/dnchost/dncutil.cpp b/src/dnchost/dncutil.cpp index 89fe707f..34d14911 100644 --- a/src/dnchost/dncutil.cpp +++ b/src/dnchost/dncutil.cpp @@ -37,7 +37,7 @@ static HRESULT LoadCoreClr( static HRESULT StartCoreClr( __in HOSTFXR_STATE* pState, __in LPCWSTR wzNativeHostPath, - __in size_t cProperties, + __in DWORD cProperties, __in LPCWSTR* propertyKeys, __in LPCWSTR* propertyValues ); @@ -320,7 +320,7 @@ static HRESULT InitializeCoreClrPre5( hr = LoadCoreClr(pState, sczCoreClrPath); BalExitOnFailure(hr, "Failed to load coreclr."); - hr = StartCoreClr(pState, wzNativeHostPath, cProperties, rgPropertyKeys, rgPropertyValues); + hr = StartCoreClr(pState, wzNativeHostPath, (DWORD)cProperties, rgPropertyKeys, rgPropertyValues); BalExitOnFailure(hr, "Failed to start coreclr."); LExit: @@ -358,7 +358,7 @@ LExit: static HRESULT StartCoreClr( __in HOSTFXR_STATE* pState, __in LPCWSTR wzNativeHostPath, - __in size_t cProperties, + __in DWORD cProperties, __in LPCWSTR* propertyKeys, __in LPCWSTR* propertyValues ) diff --git a/src/dnchost/packages.config b/src/dnchost/packages.config index af177833..cf40ae64 100644 --- a/src/dnchost/packages.config +++ b/src/dnchost/packages.config @@ -4,6 +4,8 @@ + + diff --git a/src/mbahost/mbahost.vcxproj b/src/mbahost/mbahost.vcxproj index e2cc562e..c05304d4 100644 --- a/src/mbahost/mbahost.vcxproj +++ b/src/mbahost/mbahost.vcxproj @@ -10,6 +10,14 @@ + + Debug + ARM64 + + + Release + ARM64 + Debug Win32 @@ -18,6 +26,14 @@ Release Win32 + + Debug + x64 + + + Release + x64 + diff --git a/src/test/examples/TestEngine/Example.TestEngine.vcxproj b/src/test/examples/TestEngine/Example.TestEngine.vcxproj index 50fd7559..b420c18e 100644 --- a/src/test/examples/TestEngine/Example.TestEngine.vcxproj +++ b/src/test/examples/TestEngine/Example.TestEngine.vcxproj @@ -5,6 +5,14 @@ + + Debug + ARM64 + + + Release + ARM64 + Debug Win32 diff --git a/src/wixext/BalCompiler.cs b/src/wixext/BalCompiler.cs index 1629a670..c01905cc 100644 --- a/src/wixext/BalCompiler.cs +++ b/src/wixext/BalCompiler.cs @@ -918,7 +918,7 @@ namespace WixToolset.Bal private void CreateBARef(IntermediateSection section, SourceLineNumber sourceLineNumbers, XElement node, string name) { - var id = this.ParseHelper.CreateIdentifierValueFromPlatform(name, this.Context.Platform, BurnPlatforms.X86); + var id = this.ParseHelper.CreateIdentifierValueFromPlatform(name, this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64); if (id == null) { this.Messaging.Write(ErrorMessages.UnsupportedPlatformForElement(sourceLineNumbers, this.Context.Platform.ToString(), node.Name.LocalName)); diff --git a/src/wixlib/bal.wixproj b/src/wixlib/bal.wixproj index 38cdf242..8c88c3ce 100644 --- a/src/wixlib/bal.wixproj +++ b/src/wixlib/bal.wixproj @@ -9,14 +9,28 @@ - + + + - - - + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/wixstdba/wixstdba.vcxproj b/src/wixstdba/wixstdba.vcxproj index 48d013a2..a9d518b4 100644 --- a/src/wixstdba/wixstdba.vcxproj +++ b/src/wixstdba/wixstdba.vcxproj @@ -10,6 +10,14 @@ + + Debug + ARM64 + + + Release + ARM64 + Debug Win32 @@ -18,6 +26,14 @@ Release Win32 + + Debug + x64 + + + Release + x64 + -- cgit v1.2.3-55-g6feb