123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- // Engine/Source/Runtime/WebBrowser/WebBrowser.Build.cs
- using UnrealBuildTool;
- using System.IO;
- public class WebBrowserUI : ModuleRules
- {
- public WebBrowserUI(ReadOnlyTargetRules Target) : base(Target)
- {
- PrivateDependencyModuleNames.AddRange(
- new string[]
- {
- "Core",
- "CoreUObject",
- "ApplicationCore",
- "RHI",
- "InputCore",
- "Serialization",
- "HTTP"
- }
- );
- PublicDependencyModuleNames.AddRange(
- new string[]
- {
- "Slate",
- "SlateCore"
- }
- );
- if (Target.Platform == UnrealTargetPlatform.Android
- || Target.Platform == UnrealTargetPlatform.IOS
- || Target.Platform == UnrealTargetPlatform.TVOS)
- {
- // We need these on mobile for external texture support
- PrivateDependencyModuleNames.AddRange(
- new string[]
- {
- "Engine",
- "Launch",
- "WebBrowserTexture"
- }
- );
- // We need this one on Android for URL decoding
- PrivateDependencyModuleNames.Add("HTTP");
- CircularlyReferencedDependentModules.Add("WebBrowserTexture");
- }
- if (Target.Type != TargetType.Program && Target.Platform == UnrealTargetPlatform.Win64)
- {
- PrivateDependencyModuleNames.AddRange(
- new string[]
- {
- "Engine",
- "RenderCore"
- }
- );
- }
- if (Target.Platform == UnrealTargetPlatform.Win64
- || Target.Platform == UnrealTargetPlatform.Mac
- || Target.Platform == UnrealTargetPlatform.Linux)
- {
- PrivateDependencyModuleNames.Add("CEF3Utils");
- AddEngineThirdPartyPrivateStaticDependencies(Target,
- "CEF3"
- );
- if (Target.Type != TargetType.Server)
- {
- if (Target.Platform == UnrealTargetPlatform.Mac)
- {
- // Add contents of EpicWebHelper.app directory as runtime dependencies
- foreach (string FilePath in Directory.EnumerateFiles(Target.RelativeEnginePath + "/Binaries/Mac/EpicWebHelper.app", "*", SearchOption.AllDirectories))
- {
- RuntimeDependencies.Add(FilePath);
- }
- }
- else if (Target.Platform == UnrealTargetPlatform.Linux)
- {
- RuntimeDependencies.Add("$(EngineDir)/Binaries/" + Target.Platform.ToString() + "/EpicWebHelper");
- }
- else
- {
- RuntimeDependencies.Add("$(EngineDir)/Binaries/" + Target.Platform.ToString() + "/EpicWebHelper.exe");
- }
- }
- }
- }
- }
|