Files
Ryan Hummer 6c934ba9a1 Fixing dvp.dll missing from builds
Needs to also be a RuntimeDependency to ensure it is staged and copied.

#rnx
#jira UE-159016
#rb none
#fyi jeremie.roy
#preflight 62c8f18c756222ced45c7655

[CL 21019140 by Ryan Hummer in ue5-main branch]
2022-07-08 23:16:44 -04:00

31 lines
855 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System;
public class GPUDirect : ModuleRules
{
public GPUDirect(ReadOnlyTargetRules Target)
: base(Target)
{
Type = ModuleType.External;
if (Target.Platform == UnrealTargetPlatform.Win64)
{
String DVPPath = Target.UEThirdPartySourceDirectory + "NVIDIA/GPUDirect/";
PublicSystemIncludePaths.Add(DVPPath + "include");
String DVPLibPath = DVPPath + "lib/Windows/x64/";
PublicAdditionalLibraries.Add(DVPLibPath + "dvp.lib");
String DVPDLLFullName = "dvp.dll";
String DVPDLLPath = "$(EngineDir)/Binaries/ThirdParty/NVIDIA/GPUDirect/Win64/" + DVPDLLFullName;
PrivateRuntimeLibraryPaths.Add("$(EngineDir)/Binaries/ThirdParty/NVIDIA/GPUDirect/Win64");
PublicDelayLoadDLLs.Add(DVPDLLFullName);
RuntimeDependencies.Add(DVPDLLPath);
}
}
}