Files
UnrealEngine/Engine/Source/Programs/UnrealBuildTool/System/SupportedConfigurationsAttribute.cs
2025-05-18 13:04:45 +08:00

28 lines
829 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
namespace UnrealBuildTool
{
/// <summary>
/// Attribute which can be applied to a TargetRules-dervied class to indicate which configurations it supports
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class SupportedConfigurationsAttribute : Attribute
{
/// <summary>
/// Array of supported platforms
/// </summary>
public UnrealTargetConfiguration[] Configurations { get; }
/// <summary>
/// Initialize the attribute with a list of configurations
/// </summary>
/// <param name="configurations">Variable-length array of configuration arguments</param>
public SupportedConfigurationsAttribute(params UnrealTargetConfiguration[] configurations)
{
Configurations = configurations;
}
}
}