Files
UnrealEngineUWP/Engine/Source/Developer/Windows/ShaderFormatD3D/ShaderFormatD3D.Build.cs
Laura Hermanns c951912300 Rebuild ShaderConductor for Win64, Mac, and Linux with DXC update from Apr 2022.
Replace outdated DXC API headers from DirectX SDK folder with primary DXC source folder.

#review-19909455 19605490
#fyi Mihnea.Balta, Rolando.Caloca, Jeannoe.Morissette, Will.Damon, Brandon.Schaefer, Michael.Sartain, Guillaume.Abadie, Graham.Wihlidal, Christopher.Waters
#jira none
#rnx
#preflight 6267ec17853fdb6fddb97dd5

[CL 19924020 by Laura Hermanns in ue5-main branch]
2022-04-26 13:29:01 -04:00

50 lines
1.7 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.IO;
public class ShaderFormatD3D : ModuleRules
{
public ShaderFormatD3D(ReadOnlyTargetRules Target) : base(Target)
{
PrivateIncludePathModuleNames.Add("TargetPlatform");
PrivateIncludePathModuleNames.Add("D3D11RHI");
PrivateIncludePathModuleNames.Add("D3D12RHI");
PrivateIncludePaths.Add("../Shaders/Shared");
PrivateDependencyModuleNames.AddRange(
new string[] {
"Core",
"RenderCore",
"ShaderPreprocessor",
"ShaderCompilerCommon",
}
);
// DXC
if (Target.Platform == UnrealTargetPlatform.Win64)
{
string AmdAgsPath = Target.UEThirdPartySourceDirectory + "AMD/AMD_AGS/";
PublicSystemIncludePaths.Add(AmdAgsPath + "inc/"); // For amd_ags.h, to get AGS_DX12_SHADER_INSTRINSICS_SPACE_ID
string DxDllsPath = "$(EngineDir)/Binaries/ThirdParty/Windows/DirectX/x64";
RuntimeDependencies.Add(Path.Combine(DxDllsPath, "d3dcompiler_47.dll"));
string ShaderConductorDllsPath = Path.Combine(Target.UEThirdPartyBinariesDirectory, "ShaderConductor/Win64");
RuntimeDependencies.Add(Path.Combine(ShaderConductorDllsPath, "dxcompiler.dll"));
RuntimeDependencies.Add(Path.Combine(ShaderConductorDllsPath, "ShaderConductor.dll"));
RuntimeDependencies.Add(Path.Combine(ShaderConductorDllsPath, "dxil.dll"));
AddEngineThirdPartyPrivateStaticDependencies(Target,
"ShaderConductor"
);
}
AddEngineThirdPartyPrivateStaticDependencies(Target, "DX11");
// DXC API headers
PublicSystemIncludePaths.Add(Path.Combine(Target.UEThirdPartySourceDirectory, "ShaderConductor", "ShaderConductor", "External", "DirectXShaderCompiler", "include"));
}
}