Remove some dependencies from source build (dotnet/corefx#37730)
authorEric StJohn <ericstj@microsoft.com>
Wed, 29 May 2019 23:32:10 +0000 (16:32 -0700)
committerGitHub <noreply@github.com>
Wed, 29 May 2019 23:32:10 +0000 (16:32 -0700)
* Remove some dependencies from source build

* Add back GenAPI for sourcebuild

We cannot remove GenAPI as it is needed for generating platform-not-supported
assemblies.

We will need handle this differently.  The tentative plan is that sourcebuild
will have two phases.  During the first phase we can use GenAPI and generate
source for not-supported assemblies and save it off in some location.  In the
second phase of source build (OfflineBuild=true) we won't use GenAPI and instead
will read the sources from this location.

Commit migrated from https://github.com/dotnet/corefx/commit/ecfb60b67d09b992f24af0625305299710bc128f

eng/dir.traversal.targets
src/libraries/dirs.proj

index 8d156b5..e5f0f1b 100644 (file)
@@ -1,4 +1,4 @@
-<Project>
+<Project DefaultTargets="Build">
   <Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.targets))" />
 
   <Target Name="BuildAllProjects" DependsOnTargets="FilterProjects">
index 6930d3f..fbe8e15 100644 (file)
@@ -12,8 +12,8 @@
     <Project Include="Native\native-binplace.proj" />
     <Project Include="src.builds" />
     <Project Include="shims\manual\*.csproj" />
-    <Project Include="shims\ApiCompat.proj" />
-    <Project Include="pretest.builds" />
+    <Project Include="shims\ApiCompat.proj" Condition="'$(DotNetBuildFromSource)' != 'true'" />
+    <Project Include="pretest.builds" Condition="'$(DotNetBuildFromSource)' != 'true'" />
   </ItemGroup>
 
   <!-- Don't build System.Text.Encodings.Web tools as part of build; they're intended to be run manually. -->