Files
UnrealEngineUWP/Engine/Source/Developer/AudioFormatOpus/AudioFormatOpus.Build.cs
jimmy smith 5d68918c4b Move all Engine Decoders into their own modules
#jira UE-204038
#rb jake.burga
#tests compilation tests, all platforms

[CL 30660535 by jimmy smith in ue5-main branch]
2024-01-17 11:51:40 -05:00

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");
}
}