Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWes Haggard <Wes.Haggard@microsoft.com>2018-03-29 20:56:26 +0300
committerWes Haggard <Wes.Haggard@microsoft.com>2018-03-29 20:56:26 +0300
commit4203d9475315b862ba57320c327a2dd6484505d6 (patch)
tree27c5535032f9ebfcea348cf916ce41b5525a1270 /pkg/dir.props
parent11051c39de5e24350e643e193b94eefed00aa142 (diff)
Account for source-build in our package build filtering
We need to account for source-build which sets the OfficialBuildId property to replicate the official builds, so we also look at the DotNetBuildOffline property to determine that we should still build the all the packages.
Diffstat (limited to 'pkg/dir.props')
-rw-r--r--pkg/dir.props13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkg/dir.props b/pkg/dir.props
index 17a793349a..495fa71341 100644
--- a/pkg/dir.props
+++ b/pkg/dir.props
@@ -2,6 +2,13 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\dir.props" />
+ <PropertyGroup>
+ <!-- Used to determine if we should build some packages only once across multiple official build legs.
+ For offline builds we still set OfficialBuildId but we need to build all the packages for a single
+ leg only, so we also take DotNetBuildOffline into account. -->
+ <BuildingAnOfficialBuildLeg Condition="'$(BuildingAnOfficialBuildLeg)' == '' AND '$(OfficialBuildId)' != '' AND '$(DotNetBuildOffline)' != 'true'">true</BuildingAnOfficialBuildLeg>
+ </PropertyGroup>
+
<!-- Packages opt-in to automatic RID-specific builds by placing a *.RID.props next to their project
that defines the OfficialBuildRID item: all RIDs targeted by the package -->
<Import Project="$(MSBuildProjectDirectory)\*.rids.props" />
@@ -16,7 +23,7 @@
</BuildRID>
</ItemGroup>
- <!-- create the "Project" item which is the current $(MSBuildProjectName).pkgproj with meta-data for all
+ <!-- create the "Project" item which is the current $(MSBuildProjectName).pkgproj with meta-data for all
supported RIDs -->
<ItemGroup>
<_project Include="@(BuildRID)">
@@ -48,10 +55,10 @@
<AdditionalLibPackageExcludes Condition="'$(SymbolFileExtension)' != ''" Include="%2A%2A\%2A$(SymbolFileExtension)" />
<AdditionalSymbolPackageExcludes Condition="'$(LibraryFileExtension)' != ''" Include="%2A%2A\%2A.a;%2A%2A\%2A$(LibraryFileExtension)" />
</ItemGroup>
-
+
<PropertyGroup>
<!-- BlockStable on private packages by default -->
<BlockStable Condition="'$(BlockStable)' == '' and $(MSBuildProjectName.Contains('Private'))">true</BlockStable>
</PropertyGroup>
-
+
</Project>