You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869250 via CL 10869537 via CL 10869906 #ROBOMERGE-BOT: (v613-10869866) [CL 10870965 by ryan durand in Main branch]
25 lines
925 B
C#
25 lines
925 B
C#
// Copyright 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");
|
|
}
|
|
}
|
|
}
|