You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
31 lines
816 B
C#
31 lines
816 B
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
|
|
public class mimalloc : ModuleRules
|
|
{
|
|
public mimalloc(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
|
|
string miPath = Target.UEThirdPartySourceDirectory + "mimalloc\\";
|
|
|
|
if (Target.Platform.IsInGroup(UnrealPlatformGroup.Windows))
|
|
{
|
|
bool bUseDebugCRT = Target.Configuration == UnrealTargetConfiguration.Debug && Target.bDebugBuildsActuallyUseDebugCRT;
|
|
|
|
if (bUseDebugCRT)
|
|
{
|
|
PublicAdditionalLibraries.Add(miPath + "out\\msvc-x64\\Debug\\mimalloc-static.lib");
|
|
}
|
|
else
|
|
{
|
|
PublicAdditionalLibraries.Add(miPath + "out\\msvc-x64\\Release\\mimalloc-static.lib");
|
|
}
|
|
|
|
PublicSystemIncludePaths.Add(miPath + "include");
|
|
}
|
|
}
|
|
}
|