30 lines
849 B
C#
30 lines
849 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 LibPath = Path.Combine(ModuleDirectory, "lib/Win64");
|
|
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"));
|
|
}
|
|
}
|
|
}
|