Wwise.Build.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*******************************************************************************
  2. The content of this file includes portions of the proprietary AUDIOKINETIC Wwise
  3. Technology released in source code form as part of the game integration package.
  4. The content of this file may not be used without valid licenses to the
  5. AUDIOKINETIC Wwise Technology.
  6. Note that the use of the game engine is subject to the Unreal(R) Engine End User
  7. License Agreement at https://www.unrealengine.com/en-US/eula/unreal
  8. License Usage
  9. Licensees holding valid licenses to the AUDIOKINETIC Wwise Technology may use
  10. this file in accordance with the end user license agreement provided with the
  11. software or, alternatively, in accordance with the terms contained
  12. in a written agreement between you and Audiokinetic Inc.
  13. Copyright (c) 2023 Audiokinetic Inc.
  14. *******************************************************************************/
  15. using System.IO;
  16. using UnrealBuildTool;
  17. public class Wwise : ModuleRules
  18. {
  19. public Wwise(ReadOnlyTargetRules Target) : base(Target)
  20. {
  21. PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
  22. WwiseHelper.AddDependencies(this, Target);
  23. PrivateDependencyModuleNames.AddRange(
  24. new string[]
  25. {
  26. "Core",
  27. "CoreUObject",
  28. "Engine"
  29. }
  30. );
  31. if (Target.bBuildEditor)
  32. {
  33. PrivateDependencyModuleNames.AddRange(
  34. new string[]
  35. {
  36. "UnrealEd",
  37. "AudiokineticTools"
  38. }
  39. );
  40. }
  41. WwiseAudioLinkEditor.Apply(this, Target);
  42. WwiseAudioLinkRuntime.Apply(this, Target);
  43. }
  44. public void AddOptionalModule(string Module, bool AddPublic = true)
  45. {
  46. #if UE_5_0_OR_LATER
  47. ConditionalAddModuleDirectory(
  48. EpicGames.Core.DirectoryReference.Combine(new EpicGames.Core.DirectoryReference(ModuleDirectory), "..", Module));
  49. #else
  50. ConditionalAddModuleDirectory(
  51. Tools.DotNETCommon.DirectoryReference.Combine(new Tools.DotNETCommon.DirectoryReference(ModuleDirectory), "..", Module));
  52. #endif
  53. ExternalDependencies.Add(Path.Combine(ModuleDirectory, "..", Module, Module + "_OptionalModule.Build.cs"));
  54. if (AddPublic)
  55. {
  56. PublicIncludePaths.Add(Path.Combine(ModuleDirectory, "..", Module, "Public"));
  57. }
  58. PrivateIncludePaths.Add(Path.Combine(ModuleDirectory, "..", Module, "Private"));
  59. }
  60. }