Files
florent guinier 1058df1036 [NNE] Remove DirectML debug dlls.
Problem: DirectML debug dll would be shipped in development and debug build variant
Solution: remove the related staging and dll
#tests nneqa: win64 editor smoketest + win64 standalone all tests

#jira UE-209635
#rb nico.ranieri

[CL 32499421 by florent guinier in 5.4 branch]
2024-03-26 02:22:30 -04:00

35 lines
1.1 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.IO;
using UnrealBuildTool;
public class DirectML : ModuleRules
{
public DirectML(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
string PlatformDir = Target.Platform.ToString();
string BinDirPath = Path.GetFullPath(Path.Combine(ModuleDirectory, "bin", PlatformDir));
string LibDirPath = Path.Combine(ModuleDirectory, "lib", PlatformDir);
string IncDirPath = Path.Combine(ModuleDirectory, "include/");
string LibFileName = "DirectML";
string DllFileName = LibFileName + ".dll";
string DllFullPath = Path.Combine(BinDirPath, DllFileName);
// Win64
if (Target.Platform == UnrealTargetPlatform.Win64)
{
PublicSystemIncludePaths.Add(IncDirPath);
PublicAdditionalLibraries.Add(Path.Combine(LibDirPath, LibFileName + ".lib"));
PublicDelayLoadDLLs.Add(DllFileName);
RuntimeDependencies.Add("$(TargetOutputDir)/DML/" + DllFileName, DllFullPath);
PublicDefinitions.Add("DML_TARGET_VERSION=0x5100");
PublicDefinitions.Add("WITH_DIRECTML");
PublicDefinitions.Add("DIRECTML_PATH=DML");
}
}
}