33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
|
|
public class fmt : ModuleRules
|
|
{
|
|
protected readonly string Version = "8.1.1";
|
|
|
|
public fmt(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
|
|
string VersionPath = Path.Combine(ModuleDirectory, Version);
|
|
string LibraryPath = Path.Combine(VersionPath, "lib");
|
|
|
|
PublicSystemIncludePaths.Add(Path.Combine(VersionPath, "include"));
|
|
|
|
if (Target.IsInPlatformGroup(UnrealPlatformGroup.Unix))
|
|
{
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibraryPath, "Unix", Target.Architecture.LinuxName, "Release", "libfmt.a"));
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Mac)
|
|
{
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibraryPath, "Mac", "Release", "libfmt.a"));
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibraryPath, "Win64", Target.WindowsPlatform.Architecture.ToString().ToLowerInvariant(), "Release", "fmt.lib"));
|
|
}
|
|
}
|
|
}
|