1abd2d9209
This change enables CLI build for Alpine 3.6 and also adds CI job for it. It is mostly based on changes that were necessary to enable building of rhel.6 CLI
42 lines
1.8 KiB
XML
42 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup>
|
|
<VersionSvgTemplate>$(RepoRoot)/resources/images/version_badge.svg</VersionSvgTemplate>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="GenerateVersionBadge"
|
|
DependsOnTargets="Init">
|
|
<Message Text="$(VersionBadge)" />
|
|
|
|
<ReplaceFileContents
|
|
InputFile="$(VersionSvgTemplate)"
|
|
DestinationFile="$(VersionBadge)"
|
|
ReplacementPatterns="ver_number"
|
|
ReplacementStrings="$(SdkVersion)" />
|
|
</Target>
|
|
|
|
<Target Name="GenerateCoherentBadge"
|
|
DependsOnTargets="Init; EvaluateRuntimeCoherence"
|
|
Condition=" '$(Coherent)' == 'true' ">
|
|
<Message Text="$(CoherentBadge)" />
|
|
|
|
<ReplaceFileContents
|
|
InputFile="$(VersionSvgTemplate)"
|
|
DestinationFile="$(CoherentBadge)"
|
|
ReplacementPatterns="ver_number"
|
|
ReplacementStrings="$(SdkVersion)" />
|
|
</Target>
|
|
|
|
<Target Name="SetBadgeProps">
|
|
<PropertyGroup>
|
|
<VersionBadgeMoniker>$(OSName)_$(Architecture)</VersionBadgeMoniker>
|
|
<VersionBadgeMoniker Condition=" '$(Rid)' == 'rhel.6-x64' ">rhel.6_x64</VersionBadgeMoniker>
|
|
<VersionBadgeMoniker Condition=" '$(Rid)' == 'alpine.3.6-x64' ">alpine.3.6_x64</VersionBadgeMoniker>
|
|
<VersionBadgeMoniker Condition=" '$(IslinuxPortable)' == 'true' ">linux_x64</VersionBadgeMoniker>
|
|
<VersionBadgeMoniker Condition=" '$(IsBuildingAndPublishingAllLinuxDistrosNativeInstallers)' == 'true' ">all_linux_distros_native_installer</VersionBadgeMoniker>
|
|
|
|
<VersionBadge>$(BaseOutputDirectory)/$(VersionBadgeMoniker)_$(Configuration)_version_badge.svg</VersionBadge>
|
|
<CoherentBadge>$(BaseOutputDirectory)/$(VersionBadgeMoniker)_$(Configuration)_coherent_badge.svg</CoherentBadge>
|
|
</PropertyGroup>
|
|
</Target>
|
|
</Project>
|