Skip to content

Commit

Permalink
[build] Include ThirdPartyNotices in workload packs (#8455)
Browse files Browse the repository at this point in the history
Adds the `THIRD-PARTY-NOTICES.TXT` file to all packs that contain a
license file.
  • Loading branch information
pjcollins authored Oct 25, 2023
1 parent 9b2d1b4 commit 2081a20
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions build-tools/create-packs/License.targets
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/>
<ItemGroup>
<_PackageFiles Include="$(IntermediateOutputPath)$(PackageLicenseFile)" PackagePath="\" />
<_PackageFiles Include="$(XAInstallPrefix)THIRD-PARTY-NOTICES.TXT" PackagePath="\" />
</ItemGroup>
</Target>
</Project>
2 changes: 1 addition & 1 deletion build-tools/installers/create-installers.targets
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@
<MonoDocFiles Include="$(_MonoDocOutputPath)MonoAndroid-lib.zip" />
</ItemGroup>
<ItemGroup>
<ThirdPartyNotice Include="$(XAInstallPrefix)ThirdPartyNotices.txt" />
<ThirdPartyNotice Include="$(XAInstallPrefix)THIRD-PARTY-NOTICES.TXT" />
</ItemGroup>
<!-- monodroid -->
<!-- new files to be included from monodroid should be added to the following projitems file in that repo. -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public static partial class Defaults
/// Used in rules.mk generator. Files to include in the XA bundle archives.
/// </summary>
public static readonly List <string> BundleZipsInclude = new List <string> {
"$(ZIP_OUTPUT_BASENAME)/ThirdPartyNotices.txt",
"$(ZIP_OUTPUT_BASENAME)/THIRD-PARTY-NOTICES.TXT",
"$(ZIP_OUTPUT_BASENAME)/bin/Debug",
"$(ZIP_OUTPUT_BASENAME)/bin/Release",
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Xamarin.Android.Prepare
class Scenario_ThirdPartyNotices : Scenario
{
public Scenario_ThirdPartyNotices ()
: base ("ThirdPartyNotices", "Generate the `ThirdPartyNotices.txt` files.")
: base ("ThirdPartyNotices", "Generate the `THIRD-PARTY-NOTICES.TXT` files.")
{
NeedsGitSubmodules = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ await Task.Run (() => {
string[] xaRootDirBuildFiles = {
"Configuration.OperatingSystem.props",
"Configuration.Override.props",
"ThirdPartyNotices.txt",
"THIRD-PARTY-NOTICES.TXT",
"config.log",
"config.status",
"config.h",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ public Step_ThirdPartyNotices ()
#pragma warning disable CS1998
protected override async Task<bool> Execute (Context context)
{
GenerateThirdPartyNotices (Path.Combine (BuildPaths.XamarinAndroidSourceRoot, "ThirdPartyNotices.txt"),
GenerateThirdPartyNotices (Path.Combine (BuildPaths.XamarinAndroidSourceRoot, "THIRD-PARTY-NOTICES.TXT"),
ThirdPartyLicenseType.Foundation,
includeExternalDeps: false,
includeBuildDeps: true);
Log.StatusLine ();
GenerateThirdPartyNotices (Path.Combine (context.XAInstallPrefix, "ThirdPartyNotices.txt"),
GenerateThirdPartyNotices (Path.Combine (context.XAInstallPrefix, "THIRD-PARTY-NOTICES.TXT"),
ThirdPartyLicenseType.MicrosoftOSS,
includeExternalDeps: true,
includeBuildDeps: false);
Expand Down

0 comments on commit 2081a20

Please sign in to comment.