2019-12-26 23:01:54 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
public class ShaderCompileWorker : ModuleRules
|
|
|
|
|
{
|
2017-01-30 16:52:08 -05:00
|
|
|
public ShaderCompileWorker(ReadOnlyTargetRules Target) : base(Target)
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
|
|
|
new string[] {
|
|
|
|
|
"Core",
|
|
|
|
|
"Projects",
|
2018-10-19 17:36:35 -04:00
|
|
|
"RenderCore",
|
2014-03-14 14:13:41 -04:00
|
|
|
"SandboxFile",
|
|
|
|
|
"TargetPlatform",
|
2020-01-24 12:16:02 -05:00
|
|
|
"ApplicationCore",
|
2020-04-16 16:36:56 -04:00
|
|
|
"TraceLog",
|
|
|
|
|
"ShaderCompilerCommon"
|
2017-08-30 09:37:09 -04:00
|
|
|
});
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
PrivateIncludePathModuleNames.AddRange(
|
|
|
|
|
new string[] {
|
|
|
|
|
"Launch",
|
|
|
|
|
"TargetPlatform",
|
2017-08-30 09:37:09 -04:00
|
|
|
});
|
2014-03-14 14:13:41 -04:00
|
|
|
|
2016-06-08 16:02:23 -04:00
|
|
|
PrivateIncludePaths.Add("Runtime/Launch/Private"); // For LaunchEngineLoop.cpp include
|
|
|
|
|
|
2017-08-30 09:37:09 -04:00
|
|
|
// Include D3D compiler binaries
|
|
|
|
|
string EngineDir = Path.GetFullPath(Target.RelativeEnginePath);
|
2016-06-08 16:02:23 -04:00
|
|
|
|
2021-01-31 15:09:58 -04:00
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
2017-08-30 09:37:09 -04:00
|
|
|
{
|
2018-01-11 16:07:16 -05:00
|
|
|
RuntimeDependencies.Add(EngineDir + "Binaries/ThirdParty/Windows/DirectX/x64/d3dcompiler_47.dll");
|
2017-08-30 09:37:09 -04:00
|
|
|
}
|
|
|
|
|
}
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|