You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Work around circular reference by moving InstalledPlatformInfo to the DesktopPlatform module #jira UE-136291 #preflight 61f2f573595ec9d6eebf9739 #rb david.harvey #ROBOMERGE-AUTHOR: nuno.leiria #ROBOMERGE-SOURCE: CL 18771002 in //UE5/Release-5.0/... via CL 18771003 via CL 18771153 #ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472) [CL 18771169 by nuno leiria in ue5-main branch]
100 lines
3.7 KiB
C#
100 lines
3.7 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
|
|
public class TargetPlatform : ModuleRules
|
|
{
|
|
public TargetPlatform(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
PrivateDependencyModuleNames.Add("Core");
|
|
PrivateDependencyModuleNames.Add("SlateCore");
|
|
PrivateDependencyModuleNames.Add("Slate");
|
|
PrivateDependencyModuleNames.Add("EditorStyle");
|
|
PrivateDependencyModuleNames.Add("Projects");
|
|
PrivateDependencyModuleNames.Add("RenderCore");
|
|
PublicDependencyModuleNames.Add("DeveloperSettings");
|
|
PublicDependencyModuleNames.Add("AudioPlatformConfiguration");
|
|
PublicDependencyModuleNames.Add("DesktopPlatform");
|
|
|
|
// TextureFormat contains public headers that were historically part of TargetPlatform, so it is exposed
|
|
// as a public include path on TargetPlatform.
|
|
PublicIncludePathModuleNames.Add("TextureFormat");
|
|
PublicDependencyModuleNames.Add("TextureFormat");
|
|
|
|
PrivateIncludePathModuleNames.Add("Engine");
|
|
PrivateIncludePathModuleNames.Add("PhysicsCore");
|
|
|
|
if (Target.bCompileAgainstEngine)
|
|
{
|
|
PrivateDependencyModuleNames.Add("Engine");
|
|
}
|
|
|
|
DynamicallyLoadedModuleNames.Add("TurnkeySupport");
|
|
PrivateIncludePathModuleNames.Add("TurnkeySupport");
|
|
|
|
// no need for all these modules if the program doesn't want developer tools at all (like UnrealFileServer)
|
|
if (!Target.bBuildRequiresCookedData && Target.bBuildDeveloperTools)
|
|
{
|
|
// 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("ShaderFormatVectorVM");
|
|
DynamicallyLoadedModuleNames.Add("ImageWrapper");
|
|
|
|
// @todo: should move all of this to specific UEBuild*.cs files
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
DynamicallyLoadedModuleNames.Add("TextureFormatIntelISPCTexComp");
|
|
|
|
// these are needed by multiple platform specific target platforms, so we make sure they are built with the base editor
|
|
DynamicallyLoadedModuleNames.Add("ShaderFormatD3D");
|
|
|
|
DynamicallyLoadedModuleNames.Add("TextureFormatDXT");
|
|
DynamicallyLoadedModuleNames.Add("TextureFormatUncompressed");
|
|
|
|
if (Target.bCompileAgainstEngine)
|
|
{
|
|
DynamicallyLoadedModuleNames.Add("AudioFormatADPCM");
|
|
DynamicallyLoadedModuleNames.Add("AudioFormatOgg");
|
|
DynamicallyLoadedModuleNames.Add("AudioFormatOpus");
|
|
DynamicallyLoadedModuleNames.Add("AudioFormatBink");
|
|
}
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Mac)
|
|
{
|
|
DynamicallyLoadedModuleNames.Add("TextureFormatDXT");
|
|
DynamicallyLoadedModuleNames.Add("TextureFormatUncompressed");
|
|
|
|
if (Target.bCompileAgainstEngine)
|
|
{
|
|
DynamicallyLoadedModuleNames.Add("AudioFormatADPCM");
|
|
DynamicallyLoadedModuleNames.Add("AudioFormatOgg");
|
|
DynamicallyLoadedModuleNames.Add("AudioFormatOpus");
|
|
DynamicallyLoadedModuleNames.Add("AudioFormatBink");
|
|
}
|
|
|
|
}
|
|
else if (Target.IsInPlatformGroup(UnrealPlatformGroup.Linux))
|
|
{
|
|
DynamicallyLoadedModuleNames.Add("TextureFormatDXT");
|
|
|
|
DynamicallyLoadedModuleNames.Add("TextureFormatUncompressed");
|
|
|
|
if (Target.bCompileAgainstEngine)
|
|
{
|
|
DynamicallyLoadedModuleNames.Add("AudioFormatADPCM");
|
|
DynamicallyLoadedModuleNames.Add("AudioFormatOgg");
|
|
DynamicallyLoadedModuleNames.Add("AudioFormatOpus");
|
|
DynamicallyLoadedModuleNames.Add("AudioFormatBink");
|
|
}
|
|
}
|
|
}
|
|
|
|
if (Target.bBuildDeveloperTools == true && Target.bBuildRequiresCookedData && Target.bCompileAgainstEngine && Target.bCompilePhysX)
|
|
{
|
|
DynamicallyLoadedModuleNames.Add("PhysXCooking");
|
|
}
|
|
}
|
|
}
|