You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb none #jira #ROBOMERGE-SOURCE: CL 5295892 in //UE4/Release-4.22/... #ROBOMERGE-BOT: RELEASE (Release-4.22 -> Main) [CL 5308944 by ben marsh in Main branch]
94 lines
2.4 KiB
C#
94 lines
2.4 KiB
C#
// Copyright 1998-2019 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[]
|
|
{
|
|
"WebBrowserTexture",
|
|
"Engine",
|
|
"Launch"
|
|
}
|
|
);
|
|
|
|
// We need this one on Android for URL decoding
|
|
PrivateDependencyModuleNames.Add("HTTP");
|
|
}
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64
|
|
|| Target.Platform == UnrealTargetPlatform.Win32
|
|
|| 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 UnrealCefSubProcess.app directory as runtime dependencies
|
|
foreach (string FilePath in Directory.EnumerateFiles(Target.RelativeEnginePath + "/Binaries/Mac/UnrealCEFSubProcess.app", "*", SearchOption.AllDirectories))
|
|
{
|
|
RuntimeDependencies.Add(FilePath);
|
|
}
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Linux)
|
|
{
|
|
RuntimeDependencies.Add("$(EngineDir)/Binaries/" + Target.Platform.ToString() + "/UnrealCEFSubProcess");
|
|
}
|
|
else
|
|
{
|
|
RuntimeDependencies.Add("$(EngineDir)/Binaries/" + Target.Platform.ToString() + "/UnrealCEFSubProcess.exe");
|
|
}
|
|
}
|
|
}
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.PS4 &&
|
|
Target.bCompileAgainstEngine)
|
|
{
|
|
PrivateDependencyModuleNames.Add("Engine");
|
|
}
|
|
|
|
if(Target.Platform == UnrealTargetPlatform.Lumin)
|
|
{
|
|
PrecompileForTargets = ModuleRules.PrecompileTargetsType.None;
|
|
}
|
|
}
|
|
}
|