Files
UnrealEngineUWP/Engine/Source/ThirdParty/Windows/DirectStorage/DirectStorage.Build.cs
christopher waters bcb01c98ee Adding DirectStorage 1.0.0
#jira none
#rb none
#preflight 626c0e295c220f34acf33c96

[CL 20294646 by christopher waters in ue5-main branch]
2022-05-20 11:12:30 -04:00

29 lines
1.0 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.IO;
public class DirectStorage : ModuleRules
{
public DirectStorage(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
if (Target.Platform.IsInGroup(UnrealPlatformGroup.Windows))
{
string ArchFolder = Target.WindowsPlatform.Architecture.ToString();
string IncludeFolder = Path.Combine(ModuleDirectory, "Include", "DirectStorage");
string LibFolder = Path.Combine(ModuleDirectory, "Lib", ArchFolder);
string BinariesFolder = Path.Combine("$(EngineDir)", "Binaries", "ThirdParty", "Windows", "DirectStorage", ArchFolder);
PublicSystemIncludePaths.Add(IncludeFolder);
PublicAdditionalLibraries.Add(Path.Combine(LibFolder, "dstorage.lib"));
PublicDelayLoadDLLs.Add("dstorage.dll");
PublicDelayLoadDLLs.Add("dstoragecore.dll");
RuntimeDependencies.Add(Path.Combine(BinariesFolder, "dstoragecore.dll"));
RuntimeDependencies.Add(Path.Combine(BinariesFolder, "dstorage.dll"));
}
}
}