Files
UnrealEngine/Engine/Plugins/Media/ElectraPlayer/Source/ElectraPlayerPluginHandler/ElectraPlayerPluginHandler.Build.cs
2025-05-18 13:04:45 +08:00

41 lines
1.0 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.IO;
namespace UnrealBuildTool.Rules
{
public class ElectraPlayerPluginHandler : ModuleRules
{
public ElectraPlayerPluginHandler(ReadOnlyTargetRules Target) : base(Target)
{
if (DoesPlatformSupportElectra(Target) && Target.Type != TargetType.Server)
{
PublicDefinitions.Add("HAVE_ELECTRA=1");
PublicDependencyModuleNames.Add("ElectraPlayerRuntime");
PublicDependencyModuleNames.Add("ElectraPlayerPlugin");
}
else
{
PublicDefinitions.Add("HAVE_ELECTRA=0");
}
PublicDependencyModuleNames.AddRange(
new string[]
{
"Core"
}
);
}
virtual protected bool DoesPlatformSupportElectra(ReadOnlyTargetRules InTarget)
{
return InTarget.Platform == UnrealTargetPlatform.Win64 ||
InTarget.Platform == UnrealTargetPlatform.IOS ||
InTarget.Platform == UnrealTargetPlatform.Mac ||
InTarget.Platform == UnrealTargetPlatform.Linux ||
InTarget.Platform == UnrealTargetPlatform.Android;
}
}
}