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

regenerate-third-party-notices.proj « eng - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 994e54daa6d10e04f35d66131da2961731d9407b (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
<Project Sdk="Microsoft.Build.NoTargets">

  <UsingTask TaskName="RegenerateThirdPartyNotices" AssemblyFile="$(InstallerTasksAssemblyPath)" />

  <Target Name="RegenerateThirdPartyNotices" AfterTargets="Build">
    <PropertyGroup>
      <TpnFile>$(InstallerProjectRoot)pkg\THIRD-PARTY-NOTICES.TXT</TpnFile>
    </PropertyGroup>

    <!--
      Repo configuration. Upstreams, but also more: the TPN in dotnet/runtime serves many repos outside
      its graph, because dotnet/runtime produces the installer that ends up placing the single TPN file
      in the dotnet home directory.
    -->
    <ItemGroup>
      <TpnRepo Include="dotnet/runtime" />
      <TpnRepo Include="dotnet/aspnetcore" />
      <TpnRepo Include="dotnet/installer" />
      <TpnRepo Include="dotnet/roslyn-analyzers" />
      <TpnRepo Include="dotnet/templating" />
      <TpnRepo Include="dotnet/winforms" />
      <TpnRepo Include="dotnet/wpf" />

      <!--
        Additional repos that should be included but don't have any third-party-notices files:
          dotnet/efcore
          dotnet/emsdk
          dotnet/extensions
          dotnet/icu
          dotnet/sdk
          dotnet/windowsdesktop
          dotnet/linker
      -->

      <TpnRepo Condition="'%(TpnRepo.Branch)' == ''" Branch="main" />

      <PotentialTpnPath Include="THIRD-PARTY-NOTICES.TXT" />
      <PotentialTpnPath Include="THIRD-PARTY-NOTICES.txt" />
      <PotentialTpnPath Include="THIRD-PARTY-NOTICES" />
      <PotentialTpnPath Include="THIRDPARTYNOTICES.TXT" />
      <PotentialTpnPath Include="THIRDPARTYNOTICES.txt" />
    </ItemGroup>

    <RegenerateThirdPartyNotices
      TpnFile="$(TpnFile)"
      PotentialTpnPaths="@(PotentialTpnPath)"
      TpnRepos="@(TpnRepo)" />

    <Message Text="$(MSBuildProjectName) -> $(TpnFile)" Importance="High" />
  </Target>

</Project>