Files
UnrealEngineUWP/Engine/Source/ThirdParty/Windows/DX11/DX11.Build.cs
christopher waters 7bb0fe6481 Fixing HoloLens build issues caused by using the wrong Windows 10 SDK headers.
#jira UE-112221
#rb josh.adams
#preflight 6064944bf8bd0000016c5637

[CL 15919434 by christopher waters in ue5-main branch]
2021-04-05 13:39:16 -04:00

47 lines
1.1 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class DX11 : ModuleRules
{
public DX11(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
string DirectXSDKDir = Target.UEThirdPartySourceDirectory + "Windows/DirectX";
if (Target.Platform == UnrealTargetPlatform.Win64 )
{
PublicSystemIncludePaths.Add(DirectXSDKDir + "/Include");
string LibDir = DirectXSDKDir + "/Lib/x64/";
PublicAdditionalLibraries.AddRange(
new string[] {
LibDir + "dxgi.lib",
LibDir + "d3d9.lib",
LibDir + "d3d11.lib",
LibDir + "dxguid.lib",
LibDir + "dinput8.lib",
LibDir + "X3DAudio.lib",
LibDir + "xapobase.lib",
LibDir + "XAPOFX.lib"
// do not add d3dcompiler to the list - the engine must explicitly load
// the bundled compiler library to make shader compilation repeatable
}
);
}
else if (Target.Platform == UnrealTargetPlatform.HoloLens)
{
PublicSystemIncludePaths.Add(DirectXSDKDir + "/Include");
PublicSystemLibraries.AddRange(
new string[] {
"dxguid.lib",
}
);
}
}
}