Files
UnrealEngineUWP/Engine/Source/ThirdParty/jemalloc/jemalloc.Build.cs
Dmitry Rekman 7b70307ded Linux: TPS building improvements by #UE4Linux folks.
- Patches to HACD, hlslcc,mcpp and nvtess (licenses updated where appropriate).
- Support for Linux target platform in a bunch of TPS modules.
- Automate update of dependencies to an extent.
- Misc. changes (accomodate perforce and git flows, minor code bug when dealing with TPS etc).

#codereview Mike.Fricker, Ben.Marsh

[CL 2069938 by Dmitry Rekman in Main branch]
2014-05-12 08:37:47 -04:00

27 lines
1.1 KiB
C#

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class jemalloc : ModuleRules
{
public jemalloc(TargetInfo Target)
{
Type = ModuleType.External;
if (Target.Platform == UnrealTargetPlatform.Linux)
{
// includes may differ depending on target platform
// "separate" means that function names are mangled and libc malloc()/free() is still available
// for use by other libraries
// "drop-in" means that jemalloc replaces libc malloc()/free() and every allocation is made
// through it - including libraries like libcurl
PublicIncludePaths.Add(UEBuildConfiguration.UEThirdPartyDirectory + "jemalloc/include/Linux/separate");
PublicLibraryPaths.Add(UEBuildConfiguration.UEThirdPartyDirectory + "jemalloc/lib/Linux/separate");
//PublicIncludePaths.Add(UEBuildConfiguration.UEThirdPartyDirectory + "jemalloc/include/Linux/drop-in");
//PublicLibraryPaths.Add(UEBuildConfiguration.UEThirdPartyDirectory + "jemalloc/lib/Linux/drop-in");
PublicAdditionalLibraries.Add("jemalloc");
Definitions.Add("PLATFORM_SUPPORTS_JEMALLOC=1");
}
}
}