WebBrowserUI.Build.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // Engine/Source/Runtime/WebBrowser/WebBrowser.Build.cs
  2. using UnrealBuildTool;
  3. using System.IO;
  4. public class WebBrowserUI : ModuleRules
  5. {
  6. public WebBrowserUI(ReadOnlyTargetRules Target) : base(Target)
  7. {
  8. PrivateDependencyModuleNames.AddRange(
  9. new string[]
  10. {
  11. "Core",
  12. "CoreUObject",
  13. "ApplicationCore",
  14. "RHI",
  15. "InputCore",
  16. "Serialization",
  17. "HTTP"
  18. }
  19. );
  20. PublicDependencyModuleNames.AddRange(
  21. new string[]
  22. {
  23. "Slate",
  24. "SlateCore"
  25. }
  26. );
  27. if (Target.Platform == UnrealTargetPlatform.Android
  28. || Target.Platform == UnrealTargetPlatform.IOS
  29. || Target.Platform == UnrealTargetPlatform.TVOS)
  30. {
  31. // We need these on mobile for external texture support
  32. PrivateDependencyModuleNames.AddRange(
  33. new string[]
  34. {
  35. "Engine",
  36. "Launch",
  37. "WebBrowserTexture"
  38. }
  39. );
  40. // We need this one on Android for URL decoding
  41. PrivateDependencyModuleNames.Add("HTTP");
  42. CircularlyReferencedDependentModules.Add("WebBrowserTexture");
  43. }
  44. if (Target.Type != TargetType.Program && Target.Platform == UnrealTargetPlatform.Win64)
  45. {
  46. PrivateDependencyModuleNames.AddRange(
  47. new string[]
  48. {
  49. "Engine",
  50. "RenderCore"
  51. }
  52. );
  53. }
  54. if (Target.Platform == UnrealTargetPlatform.Win64
  55. || Target.Platform == UnrealTargetPlatform.Mac
  56. || Target.Platform == UnrealTargetPlatform.Linux)
  57. {
  58. PrivateDependencyModuleNames.Add("CEF3Utils");
  59. AddEngineThirdPartyPrivateStaticDependencies(Target,
  60. "CEF3"
  61. );
  62. if (Target.Type != TargetType.Server)
  63. {
  64. if (Target.Platform == UnrealTargetPlatform.Mac)
  65. {
  66. // Add contents of EpicWebHelper.app directory as runtime dependencies
  67. foreach (string FilePath in Directory.EnumerateFiles(Target.RelativeEnginePath + "/Binaries/Mac/EpicWebHelper.app", "*", SearchOption.AllDirectories))
  68. {
  69. RuntimeDependencies.Add(FilePath);
  70. }
  71. }
  72. else if (Target.Platform == UnrealTargetPlatform.Linux)
  73. {
  74. RuntimeDependencies.Add("$(EngineDir)/Binaries/" + Target.Platform.ToString() + "/EpicWebHelper");
  75. }
  76. else
  77. {
  78. RuntimeDependencies.Add("$(EngineDir)/Binaries/" + Target.Platform.ToString() + "/EpicWebHelper.exe");
  79. }
  80. }
  81. }
  82. }
  83. }