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

src.proj « libraries « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ce82c68ea701a6841595f405db7b4fb96ff5fbaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<Project Sdk="Microsoft.Build.Traversal">

  <PropertyGroup>
    <TraversalGlobalProperties>BuildAllProjects=true</TraversalGlobalProperties>
  </PropertyGroup>

  <ItemGroup>
    <_allSrc Include="$(MSBuildThisFileDirectory)*\src\*.csproj"
             Exclude="@(ProjectExclusions)" />
    <NonNetCoreAppProject Include="@(_allSrc)"
                          Exclude="@(NetCoreAppLibrary->'%(Identity)\src\%(Identity).csproj')" />
    <NetCoreAppProject Include="$(CoreLibProject);
                                @(_allSrc);
                                $(MSBuildThisFileDirectory)Microsoft.VisualBasic.Core\src\Microsoft.VisualBasic.Core.vbproj;
                                $(MSBuildThisFileDirectory)System.Runtime.CompilerServices.Unsafe\src\System.Runtime.CompilerServices.Unsafe.ilproj"
                       Exclude="@(NonNetCoreAppProject)" />
    <ManualShimProject Include="shims\manual\*.csproj" />
    <ApiCompatProject Include="shims\ApiCompat.proj"
                      Condition="'$(DotNetBuildFromSource)' != 'true' and
                                 '$(BuildingNETCoreAppVertical)' == 'true' and
                                 '$(RunApiCompat)' != 'false'" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="@(NetCoreAppProject)" />

    <!-- Restore only and build before/after. -->
    <ProjectReference Include="@(NonNetCoreAppProject);
                               @(ManualShimProject);
                               @(ApiCompatProject)"
                      Condition="'$(MSBuildRestoreSessionId)' != ''" />
  </ItemGroup>

  <Target Name="BuildNonNetCoreAppProjects"
          AfterTargets="Build">
    <MSBuild Targets="Build"
             BuildInParallel="true"
             Projects="@(NonNetCoreAppProject)"
             Properties="$(TraversalGlobalProperties)" />
  </Target>

  <Import Condition="'$(TargetOS)' == 'Browser'" Project="$(MonoProjectRoot)wasm\wasm.targets" />

  <Target Name="BuildManualShims"
          AfterTargets="BuildNonNetCoreAppProjects"
          Condition="'@(ManualShimProject)' != ''">
    <MSBuild Targets="Build"
             Projects="@(ManualShimProject)"
             Properties="$(TraversalGlobalProperties)" />
  </Target>

  <Import Condition="'$(BuildTargetFramework)' == '$(NetCoreAppCurrent)'"
          Project="$(MSBuildThisFileDirectory)\illink-sharedframework.targets" />

  <Target Name="RunApiCompat"
          Condition="'@(ApiCompatProject)' != ''"
          AfterTargets="BuildManualShims">
    <MSBuild Targets="Build"
             Projects="@(ApiCompatProject)"
             Properties="$(TraversalGlobalProperties)" />
  </Target>
</Project>