Backend/RiderPlugin/ForTea.RiderPlugin/BuildScript/ForTeaInRiderProduct.cs (14 lines of code) (raw):
using System;
using JetBrains.Application.BuildScript.Compile;
using JetBrains.Application.BuildScript.PackageSpecification;
using JetBrains.Application.BuildScript.Solution;
using JetBrains.Build;
using JetBrains.Rider.Backend.BuildScript;
using JetBrains.Util;
namespace JetBrains.ForTea.RiderPlugin.BuildScript
{
/// <summary>
/// Defines a bundled plugin which drives adding the referenced packages as a plugin for Rider.
/// </summary>
public class ForTeaInRiderProduct
{
public static readonly SubplatformName ThisSubplatformName = new((RelativePath)"Plugins" / "ForTea" / "Backend" / "RiderPlugin" / "ForTea.RiderPlugin");
public static readonly RelativePath DotFilesFolder = @"plugins\rider-plugins-for-tea\dotnet";
public const string ProductTechnicalName = "ForTea";
[BuildStep]
public static SubplatformComponentForPackagingFast[] ProductMetaDependency(AllAssembliesOnSources allassSrc)
{
if (!allassSrc.Has(ThisSubplatformName))
return Array.Empty<SubplatformComponentForPackagingFast>();
return new[]
{
new SubplatformComponentForPackagingFast
(
ThisSubplatformName,
new JetPackageMetadata
{
Spec = new JetSubplatformSpec
{
ComplementedProductName = RiderConstants.ProductTechnicalName
}
}
)
};
}
}
}