// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; using Tools.DotNETCommon; namespace UnrealBuildTool { /// /// Information about a target, passed along when creating a module descriptor /// public class TargetInfo { /// /// Name of the target /// public readonly string Name; /// /// The platform that the target is being built for /// public readonly UnrealTargetPlatform Platform; /// /// The configuration being built /// public readonly UnrealTargetConfiguration Configuration; /// /// Architecture that the target is being built for (or an empty string for the default) /// public readonly string Architecture; /// /// The project containing the target /// public readonly FileReference ProjectFile; /// /// The current build version /// public ReadOnlyBuildVersion Version { get { return ReadOnlyBuildVersion.Current; } } /// /// Constructs a TargetInfo for passing to the TargetRules constructor. /// /// Name of the target being built /// The platform that the target is being built for /// The configuration being built /// The architecture being built for /// Path to the project file containing the target public TargetInfo(string Name, UnrealTargetPlatform Platform, UnrealTargetConfiguration Configuration, string Architecture, FileReference ProjectFile) { this.Name = Name; this.Platform = Platform; this.Configuration = Configuration; this.Architecture = Architecture; this.ProjectFile = ProjectFile; } } }