Files
UnrealEngineUWP/Engine/Source/Runtime/ImageWrapper/ImageWrapper.Build.cs
ben marsh c2fb55136c Remove overrides forcing undefined identifier and shadow variable warnings off. Separating out from change to force these settings to create a new PCH to prevent the warning setting being ignored.
#rb none
#jira

#ROBOMERGE-OWNER: ryan.vance
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5295892 in //UE4/Release-4.22/... via CL 5308944
#ROBOMERGE-BOT: DEVVR (Main -> Dev-VR)

[CL 5329275 by ben marsh in Dev-VR branch]
2019-03-06 18:33:25 -05:00

48 lines
1.3 KiB
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class ImageWrapper : ModuleRules
{
public ImageWrapper(ReadOnlyTargetRules Target) : base(Target)
{
PrivateIncludePaths.AddRange(
new string[] {
"Runtime/ImageWrapper/Private",
"Runtime/ImageWrapper/Private/Formats",
});
PublicDefinitions.Add("WITH_UNREALPNG=1");
PublicDefinitions.Add("WITH_UNREALJPEG=1");
PrivateDependencyModuleNames.Add("Core");
AddEngineThirdPartyPrivateStaticDependencies(Target,
"zlib",
"UElibPNG",
"UElibJPG"
);
// Add openEXR lib for windows builds.
if ((Target.Platform == UnrealTargetPlatform.Win64) ||
(Target.Platform == UnrealTargetPlatform.Win32) ||
(Target.Platform == UnrealTargetPlatform.Mac) ||
(Target.IsInPlatformGroup(UnrealPlatformGroup.Unix) && Target.Architecture.StartsWith("x86_64")))
{
PublicDefinitions.Add("WITH_UNREALEXR=1");
AddEngineThirdPartyPrivateStaticDependencies(Target, "UEOpenExr");
}
else
{
PublicDefinitions.Add("WITH_UNREALEXR=0");
}
// Enable exceptions to allow error handling
bEnableExceptions = true;
// Disable shared PCHs to handle warning C4652
PCHUsage = ModuleRules.PCHUsageMode.NoSharedPCHs;
PrivatePCHHeaderFile = "Private/ImageWrapperPrivate.h";
}
}