34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
|
|
public class LibWebM : ModuleRules
|
|
{
|
|
public LibWebM(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
|
|
string RootPath = ModuleDirectory;
|
|
|
|
if (Target.Platform.IsInGroup(UnrealPlatformGroup.Windows))
|
|
{
|
|
string LibPath = RootPath + "/lib/Win64/VS" + Target.WindowsPlatform.GetVisualStudioCompilerVersionName();
|
|
|
|
string LibFileName = "libwebm.lib";
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibPath, LibFileName));
|
|
}
|
|
else if (Target.IsInPlatformGroup(UnrealPlatformGroup.Unix))
|
|
{
|
|
PublicAdditionalLibraries.Add(RootPath + "/lib/Unix/" + Target.Architecture.LinuxName + ((Target.LinkType == TargetLinkType.Monolithic) ? "/libwebm" : "/libwebm_fPIC") + ".a");
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Mac)
|
|
{
|
|
PublicAdditionalLibraries.Add(RootPath + "/lib/Mac" + ((Target.LinkType == TargetLinkType.Monolithic) ? "/libwebm" : "/libwebm_fPIC") + ".a");
|
|
}
|
|
|
|
string IncludePath = RootPath + "/include";
|
|
PublicSystemIncludePaths.Add(IncludePath);
|
|
}
|
|
}
|