Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildTool/System/SupportedPlatformsAttribute.cs
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

41 lines
1.2 KiB
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UnrealBuildTool
{
/// <summary>
/// Attribute which can be applied to a TargetRules-dervied class to indicate which platforms it supports
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class SupportedPlatformsAttribute : Attribute
{
/// <summary>
/// Array of supported platforms
/// </summary>
public readonly UnrealTargetPlatform[] Platforms;
/// <summary>
/// Initialize the attribute with a list of platforms
/// </summary>
/// <param name="Platforms">Variable-length array of platform arguments</param>
public SupportedPlatformsAttribute(params UnrealTargetPlatform[] Platforms)
{
this.Platforms = Platforms;
}
/// <summary>
/// Initialize the attribute with all the platforms in a given category
/// </summary>
/// <param name="Category">Category of platforms to add</param>
public SupportedPlatformsAttribute(UnrealPlatformClass Category)
{
this.Platforms = Utils.GetPlatformsInClass(Category);
}
}
}