Files
UnrealEngineUWP/Engine/Source/Runtime/WebBrowser/WebBrowser.Build.cs
Marc Audy 76a4f7dd9e Merge CEF version 84.0.4147 from the //Portal branch directly into the //UE5/EA branch
- The CEF helper process has been renamed from UnrealCEFSubprocess to EpicWebHelper
- Support for accelerated rendering from CEF has been added (using GPU->GPU texture copies). This works for the Standalone renderer in DX11/macOS-OpenGL and in the D3D11 RHI renderer, otherwise falls back to the default CPU texture copy mode. Accelerated paint can be disabled by adding "-nocefaccelpaint" to the commandline.
- Numerous other bug fixes and perf improvements in the CEF code have been added since we last took a version drop

#jira distro-133
#[fyi] wes.fudala

#ushell-cherrypick of 15635368 by alfred.reynolds

[CL 15651276 by Marc Audy in ue5-main branch]
2021-03-09 01:37:10 -04:00

107 lines
2.6 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.IO;
public class WebBrowser : ModuleRules
{
public WebBrowser(ReadOnlyTargetRules Target) : base(Target)
{
PublicIncludePaths.Add("Runtime/WebBrowser/Public");
PrivateIncludePaths.Add("Runtime/WebBrowser/Private");
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");
}
}
}
if (Target.Platform == UnrealTargetPlatform.PS4 &&
Target.bCompileAgainstEngine)
{
PrivateDependencyModuleNames.Add("Engine");
}
if(Target.Platform == UnrealTargetPlatform.Lumin)
{
PrecompileForTargets = ModuleRules.PrecompileTargetsType.None;
}
}
}