Skip to content

Commit

Permalink
Remove 32-bit ARM support.
Browse files Browse the repository at this point in the history
  • Loading branch information
barnson committed Sep 20, 2020
1 parent 6d17a02 commit e849965
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 58 deletions.
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"msbuild-sdks": {
"WixToolset.Sdk": "4.0.0-build-0143"
"WixToolset.Sdk": "4.0.0-build-0157"
}
}
8 changes: 0 additions & 8 deletions src/ca/dependencyca.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|ARM">
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|ARM64">
<Configuration>Debug</Configuration>
<Platform>ARM64</Platform>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void CanBuildUsingProvides()
var results = build.BuildAndQuery(Build, "WixDependencyProvider");
Assert.Equal(new[]
{
"WixDependencyProvider:depJQsOasf1FRUsKxq8THB9sXk8yws\tfilF5_pLhBuF5b4N9XEo52g_hUM5Lo\tUsingProvides\t\t\t",
"WixDependencyProvider:dep74OfIcniaqxA7EprRGBw4Oyy3r8\tfilF5_pLhBuF5b4N9XEo52g_hUM5Lo\tUsingProvides\t\t\t",
}, results);
}

Expand Down
4 changes: 2 additions & 2 deletions src/wixext/DependencyCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ private IComponentKeyPath ParseProvidesElement(Intermediate intermediate, Interm

if (PackageType.None == packageType)
{
this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "DependencyCheck", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64);
this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "DependencyCheck", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM64);

// Generate registry rows for the provider using binder properties.
var keyProvides = String.Concat(DependencyCommon.RegistryRoot, key);
Expand Down Expand Up @@ -568,7 +568,7 @@ private void ParseRequiresRefElement(Intermediate intermediate, IntermediateSect

private void AddReferenceToWixDependencyRequire(IntermediateSection section, SourceLineNumber sourceLineNumbers)
{
this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "DependencyRequire", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64);
this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "DependencyRequire", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM64);
}
}
}
11 changes: 5 additions & 6 deletions src/wixlib/DependencyExtension.wxs
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
<?xml version="1.0"?>
<!-- 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. -->
<!-- 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. -->


<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<?include caerr.wxi ?>

<Fragment>
<UI Id="WixDependencyErrors">
<Error Id="$(var.msierrDependencyMissingDependencies)">!(loc.msierrDependencyMissingDependencies)</Error>
<Error Id="$(var.msierrDependencyHasDependents)">!(loc.msierrDependencyHasDependents)</Error>
<Error Id="$(var.msierrDependencyMissingDependencies)" Message="!(loc.msierrDependencyMissingDependencies)" />
<Error Id="$(var.msierrDependencyHasDependents)" Message="!(loc.msierrDependencyHasDependents)" />
</UI>
</Fragment>

<Fragment>
<Property Id="DISABLEDEPENDENCYCHECK" Secure="yes" SuppressModularization="yes"/>
<Property Id="DISABLEDEPENDENCYCHECK" Secure="yes" SuppressModularization="yes" />
</Fragment>

<Fragment>
<Property Id="IGNOREDEPENDENCIES" Secure="yes" SuppressModularization="yes"/>
<Property Id="IGNOREDEPENDENCIES" Secure="yes" SuppressModularization="yes" />
</Fragment>
</Wix>
21 changes: 10 additions & 11 deletions src/wixlib/DependencyExtension_Platform.wxi
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
<?xml version="1.0"?>
<!-- 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. -->
<!-- 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. -->


<Include xmlns="http://wixtoolset.org/schemas/v4/wxs">
<?include caDecor.wxi ?>

<Fragment>
<CustomAction Id="$(var.Prefix)DependencyRequire$(var.Suffix)" BinaryKey="DependencyCA$(var.Suffix)" DllEntry="WixDependencyRequire" Execute="immediate" Return="check" SuppressModularization="yes"/>
<CustomAction Id="$(var.Prefix)DependencyRequire$(var.Suffix)" DllEntry="WixDependencyRequire" Execute="immediate" Return="check" SuppressModularization="yes" BinaryRef="DependencyCA$(var.Suffix)" />
<InstallExecuteSequence>
<Custom Action="$(var.Prefix)DependencyRequire$(var.Suffix)" Before="WixDependencyCheck$(var.Suffix)" Overridable="yes"><![CDATA[NOT DISABLEDEPENDENCYCHECK]]></Custom>
<Custom Action="$(var.Prefix)DependencyRequire$(var.Suffix)" Before="WixDependencyCheck$(var.Suffix)" Overridable="yes" Condition="NOT DISABLEDEPENDENCYCHECK" />
</InstallExecuteSequence>
<UIRef Id="WixDependencyErrors"/>
<PropertyRef Id="DISABLEDEPENDENCYCHECK"/>
<UIRef Id="WixDependencyErrors" />
<PropertyRef Id="DISABLEDEPENDENCYCHECK" />
</Fragment>

<Fragment>
<CustomAction Id="$(var.Prefix)DependencyCheck$(var.Suffix)" BinaryKey="DependencyCA$(var.Suffix)" DllEntry="WixDependencyCheck" Execute="immediate" Return="check" SuppressModularization="yes"/>
<CustomAction Id="$(var.Prefix)DependencyCheck$(var.Suffix)" DllEntry="WixDependencyCheck" Execute="immediate" Return="check" SuppressModularization="yes" BinaryRef="DependencyCA$(var.Suffix)" />
<InstallExecuteSequence>
<Custom Action="$(var.Prefix)DependencyCheck$(var.Suffix)" Before="InstallInitialize" Overridable="yes"><![CDATA[(REMOVE OR MsiPatchRemovalList) AND NOT (UPGRADINGPRODUCTCODE OR IGNOREDEPENDENCIES="ALL")]]></Custom>
<Custom Action="$(var.Prefix)DependencyCheck$(var.Suffix)" Before="InstallInitialize" Overridable="yes" Condition="(REMOVE OR MsiPatchRemovalList) AND NOT (UPGRADINGPRODUCTCODE OR IGNOREDEPENDENCIES=&quot;ALL&quot;)" />
</InstallExecuteSequence>
<UIRef Id="WixDependencyErrors"/>
<PropertyRef Id="IGNOREDEPENDENCIES"/>
<UIRef Id="WixDependencyErrors" />
<PropertyRef Id="IGNOREDEPENDENCIES" />
</Fragment>

<Fragment>
<Binary Id="DependencyCA$(var.Suffix)" SourceFile="!(bindpath.$(var.platform))dependencyca.dll"/>
<Binary Id="DependencyCA$(var.Suffix)" SourceFile="!(bindpath.$(var.platform))dependencyca.dll" />
</Fragment>
</Include>
8 changes: 0 additions & 8 deletions src/wixlib/DependencyExtension_arm.wxs

This file was deleted.

3 changes: 1 addition & 2 deletions src/wixlib/DependencyExtension_arm64.wxs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
<!-- 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. -->
<!-- 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. -->


<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
Expand Down
3 changes: 1 addition & 2 deletions src/wixlib/DependencyExtension_x64.wxs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
<!-- 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. -->
<!-- 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. -->


<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
Expand Down
3 changes: 1 addition & 2 deletions src/wixlib/DependencyExtension_x86.wxs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
<!-- 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. -->
<!-- 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. -->


<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
Expand Down
21 changes: 10 additions & 11 deletions src/wixlib/caDecor.wxi
Original file line number Diff line number Diff line change
@@ -1,40 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 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. -->
<!-- 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. -->


<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Include xmlns="http://wixtoolset.org/schemas/v4/wxs">
<?ifdef Prefix ?>
<?undef Prefix ?>
<?endif ?>
<?endif?>

<?define Prefix="Wix4" ?>

<?ifndef platform ?>
<?define platform="x86" ?>
<?endif ?>
<?endif?>

<?if $(var.platform)="" ?>
<?undef platform ?>
<?define platform="x86" ?>
<?endif ?>
<?endif?>

<?ifdef Suffix ?>
<?undef Suffix ?>
<?endif ?>
<?endif?>

<?if $(var.platform)~="x86" ?>
<?define Suffix="_X86" ?>
<?endif ?>
<?endif?>

<?if $(var.platform)~="x64" ?>
<?define Suffix="_X64" ?>
<?endif ?>
<?endif?>

<?if $(var.platform)~="arm" ?>
<?define Suffix="_A32" ?>
<?endif ?>
<?endif?>

<?if $(var.platform)~="arm64" ?>
<?define Suffix="_A64" ?>
<?endif ?>
<?endif?>
</Include>
2 changes: 1 addition & 1 deletion src/wixlib/caerr.wxi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Include>
<Include xmlns="http://wixtoolset.org/schemas/v4/wxs">
<?define msierrSecureObjectsFailedCreateSD = 25520?>
<?define msierrSecureObjectsFailedSet = 25521?>
<?define msierrSecureObjectsUnknownType = 25522?>
Expand Down
8 changes: 7 additions & 1 deletion src/wixlib/dependency.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@
<PropertyGroup>
<OutputType>Library</OutputType>
<BindFiles>true</BindFiles>
<!-- PropertyModularizationSuppressed -->
<SuppressSpecificWarnings>1086</SuppressSpecificWarnings>
<Cultures>en-us</Cultures>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\ca\dependencyca.vcxproj" Properties="Platform=ARM" />
<BindInputPaths Include="$(OutputPath)x86" BindName='x86' />
<BindInputPaths Include="$(OutputPath)x64" BindName='x64' />
<BindInputPaths Include="$(OutputPath)arm64" BindName='arm64' />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ca\dependencyca.vcxproj" Properties="Platform=ARM64" />
<ProjectReference Include="..\ca\dependencyca.vcxproj" Properties="Platform=x86" />
<ProjectReference Include="..\ca\dependencyca.vcxproj" Properties="Platform=x64" />
Expand Down
3 changes: 1 addition & 2 deletions src/wixlib/en-us.wxl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 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. -->
<!-- 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. -->


<WixLocalization Culture="en-US" xmlns="http://wixtoolset.org/schemas/v4/wxl">
Expand Down

0 comments on commit e849965

Please sign in to comment.