Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildPlugin.cs
Ben Marsh 6f927647b1 Changing C# code over to using EpicGames.Core over DotNETCommon.
#rb none
#rnx

[CL 14962096 by Ben Marsh in ue5-main branch]
2020-12-21 23:07:37 -04:00

109 lines
2.4 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EpicGames.Core;
namespace UnrealBuildTool
{
/// <summary>
/// Stores information about a plugin that is being built for a target
/// </summary>
class UEBuildPlugin
{
/// <summary>
/// Information about the plugin
/// </summary>
public PluginInfo Info;
/// <summary>
/// Modules that this plugin belongs to
/// </summary>
public List<UEBuildModuleCPP> Modules = new List<UEBuildModuleCPP>();
/// <summary>
/// Recursive
/// </summary>
public HashSet<UEBuildPlugin>? Dependencies;
/// <summary>
/// Whether the descriptor for this plugin is needed at runtime; because it has modules or content which is used, or because it references another module that does.
/// </summary>
public bool bDescriptorNeededAtRuntime;
/// <summary>
/// Whether this descriptor is referenced non-optionally by something else; a project file or other plugin. This is recursively applied to the plugin's references.
/// </summary>
public bool bDescriptorReferencedExplicitly;
/// <summary>
/// Constructor
/// </summary>
/// <param name="Info">The static plugin information</param>
public UEBuildPlugin(PluginInfo Info)
{
this.Info = Info;
}
/// <summary>
/// Accessor for the name of this plugin
/// </summary>
public string Name
{
get { return Info.Name; }
}
/// <summary>
/// Accessor for the file for this plugin
/// </summary>
public FileReference File
{
get { return Info.File; }
}
/// <summary>
/// Accessor for the child files for this plugin
/// </summary>
public List<FileReference> ChildFiles
{
get { return Info.ChildFiles; }
}
/// <summary>
/// Accessor for the type of the plugin
/// </summary>
public PluginType Type
{
get { return Info.Type; }
}
/// <summary>
/// Accessor for this plugin's root directory
/// </summary>
public DirectoryReference Directory
{
get { return Info.Directory; }
}
/// <summary>
/// Accessor for this plugin's descriptor
/// </summary>
public PluginDescriptor Descriptor
{
get { return Info.Descriptor; }
}
/// <summary>
/// Returns the name of this plugin for debugging
/// </summary>
/// <returns>Name of the plugin</returns>
public override string ToString()
{
return Info.Name;
}
}
}