37 lines
791 B
C#
37 lines
791 B
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
|
|
public class AudioFormatOpus : ModuleRules
|
|
{
|
|
protected virtual bool bWithLibOpus { get => (
|
|
(Target.Platform == UnrealTargetPlatform.Win64) ||
|
|
Target.IsInPlatformGroup(UnrealPlatformGroup.Linux) ||
|
|
(Target.Platform == UnrealTargetPlatform.Mac)
|
|
);
|
|
}
|
|
|
|
public AudioFormatOpus(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
PrivateIncludePathModuleNames.Add("TargetPlatform");
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"Core",
|
|
"Engine",
|
|
"VorbisAudioDecoder", // for VorbisChannelInfo
|
|
"OpusAudioDecoder"
|
|
}
|
|
);
|
|
|
|
if (bWithLibOpus)
|
|
{
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target,
|
|
"libOpus"
|
|
);
|
|
}
|
|
|
|
PublicDefinitions.Add("WITH_OGGVORBIS=1");
|
|
}
|
|
}
|