Files
UnrealEngineUWP/Engine/Source/Runtime/RenderCore/RenderCore.Build.cs
bryan sefcik da92084a12 Optimized out more private modules includes and dependencies.
#preflight 64627c382965f6ea8ea83bd6

[CL 25479683 by bryan sefcik in ue5-main branch]
2023-05-15 16:26:12 -04:00

52 lines
2.0 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System.IO;
using UnrealBuildBase;
using UnrealBuildTool;
using System;
public class RenderCore : ModuleRules
{
public RenderCore(ReadOnlyTargetRules Target) : base(Target)
{
PrivateIncludePaths.Add("../Shaders/Shared");
PublicDependencyModuleNames.AddRange(new string[] { "RHI" });
PrivateIncludePathModuleNames.AddRange(new string[] { "TargetPlatform" });
// JSON is used for the asset info in the shader library and dumping out frames.
PrivateDependencyModuleNames.Add("Json");
PrivateDependencyModuleNames.Add("BuildSettings");
if (Target.bBuildEditor == true)
{
DynamicallyLoadedModuleNames.Add("TargetPlatform");
// UObjects are used to produce the full path of the asset by which the shaders are identified
PrivateDependencyModuleNames.Add("CoreUObject");
}
// shader runtime usage visualization requires ability to create images - it is only used in non-editor desktop development targets
// UE_BUILD_DEVELOPMENT is also defined for DebugGame
else if ((Target.Configuration == UnrealTargetConfiguration.Development || Target.Configuration == UnrealTargetConfiguration.DebugGame) && Array.IndexOf(Utils.GetPlatformsInClass(UnrealPlatformClass.Desktop), Target.Platform) >= 0)
{
PrivateDependencyModuleNames.Add("ImageWrapper");
}
// Copy the GPUDumpViewer's source code for the r.DumpGPU command.
if (Target.Configuration != UnrealTargetConfiguration.Shipping)
{
RuntimeDependencies.Add(Path.Combine(Unreal.EngineDirectory.ToString(), "Extras/GPUDumpViewer/..."), StagedFileType.DebugNonUFS);
}
PrivateDependencyModuleNames.AddRange(new string[] { "Core", "Projects", "ApplicationCore", "TraceLog", "CookOnTheFly", "ColorManagement" });
PrivateIncludePathModuleNames.AddRange(new string[] { "DerivedDataCache" });
PublicIncludePathModuleNames.AddRange(new string[] { "RHI" });
// Added in Dev-VT, still needed?
PrivateIncludePathModuleNames.AddRange(new string[] { "TargetPlatform" });
}
}