29 lines
992 B
C#
29 lines
992 B
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
using UnrealBuildTool;
|
|
using System;
|
|
|
|
public class GeForceNOW : ModuleRules
|
|
{
|
|
public GeForceNOW(ReadOnlyTargetRules Target)
|
|
: base(Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
|
|
if (Target.Type != TargetRules.TargetType.Server
|
|
&& Target.Configuration != UnrealTargetConfiguration.Unknown
|
|
&& Target.Configuration != UnrealTargetConfiguration.Debug
|
|
&& Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
String GFNPath = Target.UEThirdPartySourceDirectory + "NVIDIA/GeForceNOW/";
|
|
PublicSystemIncludePaths.Add(GFNPath + "include");
|
|
|
|
String GFNDllName = "GfnRuntimeSdk.dll";
|
|
String PlatformFolder = (Target.Platform == UnrealTargetPlatform.Win64 ? "Win64/" : "Win32/");
|
|
String GFNDLLPath = "$(EngineDir)/Binaries/ThirdParty/NVIDIA/GeForceNOW/" + PlatformFolder + GFNDllName;
|
|
PublicDelayLoadDLLs.Add(GFNDllName);
|
|
RuntimeDependencies.Add(GFNDLLPath);
|
|
}
|
|
}
|
|
}
|
|
|