Files
UnrealEngineUWP/Engine/Source/Developer/TargetPlatform/TargetPlatform.Build.cs
2014-03-14 14:13:41 -04:00

64 lines
2.1 KiB
C#

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.IO;
public class TargetPlatform : ModuleRules
{
public TargetPlatform(TargetInfo Target)
{
PrivateDependencyModuleNames.Add("Core");
if (!UEBuildConfiguration.bBuildRequiresCookedData)
{
// these are needed by multiple platform specific target platforms, so we make sure they are built with the base editor
DynamicallyLoadedModuleNames.Add("ShaderPreprocessor");
DynamicallyLoadedModuleNames.Add("ShaderFormatOpenGL");
DynamicallyLoadedModuleNames.Add("ImageWrapper");
if (Target.Platform == UnrealTargetPlatform.Win32 ||
Target.Platform == UnrealTargetPlatform.Win64 ||
(Target.Platform == UnrealTargetPlatform.HTML5 && Target.Architecture == "-win32"))
{
// these are needed by multiple platform specific target platforms, so we make sure they are built with the base editor
DynamicallyLoadedModuleNames.Add("ShaderFormatD3D");
if (UEBuildConfiguration.bCompileLeanAndMeanUE == false)
{
DynamicallyLoadedModuleNames.Add("TextureFormatDXT");
DynamicallyLoadedModuleNames.Add("TextureFormatPVR");
}
DynamicallyLoadedModuleNames.Add("TextureFormatUncompressed");
if (UEBuildConfiguration.bCompileAgainstEngine)
{
DynamicallyLoadedModuleNames.Add("AudioFormatADPCM"); // For IOS cooking
DynamicallyLoadedModuleNames.Add("AudioFormatOgg");
}
}
else if (Target.Platform == UnrealTargetPlatform.Mac)
{
if (UEBuildConfiguration.bCompileLeanAndMeanUE == false)
{
DynamicallyLoadedModuleNames.Add("TextureFormatDXT");
DynamicallyLoadedModuleNames.Add("TextureFormatPVR");
}
DynamicallyLoadedModuleNames.Add("TextureFormatUncompressed");
if (UEBuildConfiguration.bCompileAgainstEngine)
{
DynamicallyLoadedModuleNames.Add("AudioFormatOgg");
}
}
if (UEBuildConfiguration.bCompileAgainstEngine && UEBuildConfiguration.bCompilePhysX)
{
DynamicallyLoadedModuleNames.Add("PhysXFormats");
}
}
}
}