31 lines
949 B
C#
31 lines
949 B
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
using System;
|
|
using System.IO;
|
|
using UnrealBuildTool;
|
|
|
|
public class SnappyLib : ModuleRules
|
|
{
|
|
public SnappyLib(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
string IncPath = Path.Combine(ModuleDirectory, "include");
|
|
PublicSystemIncludePaths.Add(IncPath);
|
|
|
|
string ArchPath = (Target.Architecture == UnrealArch.Arm64) ? "WinArm64" : "Win64";
|
|
string LibPath = Path.Combine(ModuleDirectory, "lib", ArchPath);
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "snappy.lib"));
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Mac)
|
|
{
|
|
string IncPath = Path.Combine(ModuleDirectory, "include");
|
|
PublicSystemIncludePaths.Add(IncPath);
|
|
|
|
string LibPath = Path.Combine(ModuleDirectory, "lib/Mac");
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "libsnappy.a"));
|
|
}
|
|
}
|
|
}
|