WebBrowserUI.Build.cs
1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// 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.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");
}
}
}
}
}