You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
using UnrealBuildTool;
|
|
|
|
public class NVAPI : ModuleRules
|
|
{
|
|
public NVAPI(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
|
|
/*string nvApiNoRedistLibrary = System.IO.Path.Combine(EngineDirectory,
|
|
"Restricted/NoRedist/Source/ThirdParty/NVIDIA/nvapi/amd64/nvapi64.lib");
|
|
|
|
// Check if we should redirect to a beta version of nvapi
|
|
bool bHaveNoRedistnvApi = System.IO.File.Exists(nvApiNoRedistLibrary);
|
|
bool bCompilingForProject = Target.ProjectFile != null;*/
|
|
bool bUseNoRedistnvApi = false;//bHaveNoRedistnvApi && bCompilingForProject;
|
|
|
|
string nvApiPath = Target.UEThirdPartySourceDirectory + "NVIDIA/nvapi/";
|
|
|
|
if (bUseNoRedistnvApi)
|
|
{
|
|
nvApiPath = System.IO.Path.Combine(EngineDirectory, "Restricted/NoRedist/Source/ThirdParty/NVIDIA/nvapi/");
|
|
}
|
|
|
|
PublicSystemIncludePaths.Add(nvApiPath);
|
|
|
|
if (Target.Platform.IsInGroup(UnrealPlatformGroup.Windows))
|
|
{
|
|
string nvApiLibPath = nvApiPath + "amd64/";
|
|
PublicAdditionalLibraries.Add(nvApiLibPath + "nvapi64.lib");
|
|
}
|
|
}
|
|
}
|
|
|