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

36 lines
1.1 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
namespace UnrealBuildTool.Rules
{
public class OpenExrWrapper : ModuleRules
{
public OpenExrWrapper(ReadOnlyTargetRules Target) : base(Target)
{
bEnableExceptions = true;
bDisableAutoRTFMInstrumentation = true; // AutoRTFM cannot be used with exceptions
bUseRTTI = true;
PublicDependencyModuleNames.AddRange(
new string[] {
"Core",
"TimeManagement",
});
bool bLinuxEnabled = Target.Platform == UnrealTargetPlatform.Linux && Target.Architecture == UnrealArch.X64;
if (Target.Platform.IsInGroup(UnrealPlatformGroup.Windows) ||
(Target.Platform == UnrealTargetPlatform.Mac) ||
bLinuxEnabled)
{
AddEngineThirdPartyPrivateStaticDependencies(Target, "Imath");
AddEngineThirdPartyPrivateStaticDependencies(Target, "UEOpenExr");
AddEngineThirdPartyPrivateStaticDependencies(Target, "zlib");
}
else
{
System.Console.WriteLine("OpenExrWrapper does not supported this platform");
}
}
}
}