Files
UnrealEngineUWP/Engine/Source/ThirdParty/OpenAL/OpenAL.build.cs
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

25 lines
935 B
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.IO;
using System.Diagnostics;
public class OpenAL : ModuleRules
{
public OpenAL(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
string version = Target.IsInPlatformGroup(UnrealPlatformGroup.Unix) ? "1.18.1" : "1.15.1";
string OpenALPath = Target.UEThirdPartySourceDirectory + "OpenAL/" + version + "/";
PublicIncludePaths.Add(OpenALPath + "include");
if (Target.IsInPlatformGroup(UnrealPlatformGroup.Unix))
{
// link against runtime path since this avoids hardcoing an RPATH
string OpenALRuntimePath = Path.Combine(Target.UEThirdPartyBinariesDirectory , "OpenAL/Linux", Target.Architecture, "libopenal.so");
PublicAdditionalLibraries.Add(OpenALRuntimePath);
RuntimeDependencies.Add("$(EngineDir)/Binaries/ThirdParty/OpenAL/Linux/" + Target.Architecture + "/libopenal.so.1");
}
}
}