Skip to content

Commit

Permalink
Rename _RidFanOut to IsOuterBuild and make it a public property.
Browse files Browse the repository at this point in the history
Closes #68.
  • Loading branch information
alexrp committed Jan 5, 2024
1 parent 9006324 commit 619b3bc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions src/sdk/build/Vezel.Zig.Sdk.Build.targets
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project>
<PropertyGroup>
<_RealOrFanOutBuild>_InnerBuild</_RealOrFanOutBuild>
<_RealOrFanOutBuild Condition="'$(_RidFanOut)' == 'true'">_FanOutBuild</_RealOrFanOutBuild>
<_InnerOrOuterBuild>_InnerBuild</_InnerOrOuterBuild>
<_InnerOrOuterBuild Condition="'$(IsOuterBuild)' == 'true'">_OuterBuild</_InnerOrOuterBuild>
</PropertyGroup>

<Target Name="Build"
DependsOnTargets="$(_RealOrFanOutBuild)"
DependsOnTargets="$(_InnerOrOuterBuild)"
Condition="'$(_InvalidConfigurationWarning)' != 'true'" />

<Target Name="_FanOutBuild">
<Target Name="_OuterBuild">
<ItemGroup>
<_RuntimeIdentifiers Include="$(RuntimeIdentifiers)" />
<_InnerProjects Include="$(MSBuildProjectFullPath)"
Expand Down
8 changes: 4 additions & 4 deletions src/sdk/build/Vezel.Zig.Sdk.Clean.targets
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
</ItemGroup>

<PropertyGroup>
<_RealOrFanOutClean>_InnerClean</_RealOrFanOutClean>
<_RealOrFanOutClean Condition="'$(_RidFanOut)' == 'true'">_FanOutClean</_RealOrFanOutClean>
<_InnerOrOuterClean>_InnerClean</_InnerOrOuterClean>
<_InnerOrOuterClean Condition="'$(IsOuterBuild)' == 'true'">_OuterClean</_InnerOrOuterClean>
</PropertyGroup>

<Target Name="Clean"
DependsOnTargets="$(_RealOrFanOutClean)"
DependsOnTargets="$(_InnerOrOuterClean)"
Condition="'$(_InvalidConfigurationWarning)' != 'true'" />

<Target Name="_FanOutClean">
<Target Name="_OuterClean">
<ItemGroup>
<_RuntimeIdentifiers Include="$(RuntimeIdentifiers)" />
<_InnerProjects Include="$(MSBuildProjectFullPath)"
Expand Down
8 changes: 4 additions & 4 deletions src/sdk/build/Vezel.Zig.Sdk.Overrides.targets
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@

<!--
If a RuntimeIdentifier value has not been set, it means the Build, Clean,
and Publish targets should fan out and run for every RID supported by the
and Publish targets should run inner builds for every RID supported by the
project. That said, for running and testing, we still need to run natively
by default, so we still have to set a default RID. We use _RidFanOut to
indicate whether the fan-out behavior is required.
by default, so we still have to set a default RID. We use IsOuterBuild to
indicate whether inner builds are required.
-->
<PropertyGroup Condition="'$(RuntimeIdentifier)' == ''">
<RuntimeIdentifier>$(NETCoreSdkPortableRuntimeIdentifier)</RuntimeIdentifier>
<_RidFanOut>true</_RidFanOut>
<IsOuterBuild>true</IsOuterBuild>
</PropertyGroup>
</Project>
10 changes: 5 additions & 5 deletions src/sdk/build/Vezel.Zig.Sdk.Publish.targets
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project>
<PropertyGroup>
<_RealOrFanOutPublish>_InnerPublish</_RealOrFanOutPublish>
<_RealOrFanOutPublish Condition="'$(_RidFanOut)' == 'true'">_FanOutPublish</_RealOrFanOutPublish>
<_InnerOrOuterPublish>_InnerPublish</_InnerOrOuterPublish>
<_InnerOrOuterPublish Condition="'$(IsOuterBuild)' == 'true'">_OuterPublish</_InnerOrOuterPublish>
</PropertyGroup>

<Target Name="Publish"
DependsOnTargets="$(_RealOrFanOutPublish)"
DependsOnTargets="$(_InnerOrOuterPublish)"
Condition="'$(_InvalidConfigurationWarning)' != 'true'" />

<Target Name="_FanOutPublish">
<Target Name="_OuterPublish">
<ItemGroup>
<_RuntimeIdentifiers Include="$(RuntimeIdentifiers)" />
<_InnerProjects Include="$(MSBuildProjectFullPath)"
Expand All @@ -32,6 +32,6 @@
Importance="high" />

<AllowEmptyTelemetry EventName="PublishProperties"
EventData="PublishReadyToRun=$(PublishReadyToRun); PublishTrimmed=$(PublishTrimmed); PublishSingleFile=$(PublishSingleFile)" />
EventData="PublishReadyToRun=$(PublishReadyToRun); PublishTrimmed=$(PublishTrimmed); PublishSingleFile=$(PublishSingleFile); PublishAot=$(PublishAot); PublishProtocol=$(PublishProtocol)" />
</Target>
</Project>

0 comments on commit 619b3bc

Please sign in to comment.