You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#preflight 63d02302a605f887d1d4e476 #rb none #rnx [CL 23834691 by nebojsa dragosavac in ue5-main branch]
45 lines
1.6 KiB
C#
45 lines
1.6 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System;
|
|
using System.IO;
|
|
using UnrealBuildTool;
|
|
|
|
public class DirectMLDefault : ModuleRules
|
|
{
|
|
public DirectMLDefault(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);
|
|
string DbgDllFileName = LibFileName + ".Debug.dll";
|
|
string DbgDllFullPath = Path.Combine(BinDirPath, DbgDllFileName);
|
|
|
|
// 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=0x5000");
|
|
PublicDefinitions.Add("WITH_DIRECTML");
|
|
PublicDefinitions.Add("DIRECTML_PATH=DML");
|
|
|
|
if (Target.Configuration != UnrealTargetConfiguration.Shipping &&
|
|
Target.Configuration != UnrealTargetConfiguration.Test)
|
|
{
|
|
PublicDefinitions.Add("WITH_DIRECTML_DEBUG");
|
|
PublicDelayLoadDLLs.Add(DllFileName);
|
|
RuntimeDependencies.Add("$(TargetOutputDir)/DML/" + DbgDllFileName, DbgDllFullPath);
|
|
}
|
|
}
|
|
}
|
|
}
|