A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
DlgSystem.Build.cs
Go to the documentation of this file.
1// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
2
4using System.IO;
5
6public class DlgSystem : ModuleRules
7{
8 public DlgSystem(ReadOnlyTargetRules Target) : base(Target)
9 {
10 // Enable IWYU
11 // https://docs.unrealengine.com/latest/INT/Programming/UnrealBuildSystem/IWYUReferenceGuide/index.html
12 // https://docs.unrealengine.com/latest/INT/Programming/UnrealBuildSystem/Configuration/
13 PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
14 bEnforceIWYU = true;
15 //MinFilesUsingPrecompiledHeaderOverride = 1;
16 // bFasterWithoutUnity = true;
17 // bUseUnity = false;
18
19 PublicIncludePaths.AddRange(
20 new string[] {
21 Path.Combine(ModuleDirectory, "Public")
22 // ... add public include paths required here ...
23 });
24
25
26 PrivateIncludePaths.AddRange(
27 new string[] {
28 Path.Combine(ModuleDirectory, "Private")
29 // ... add other private include paths required here ...
30 });
31
32
33 PublicDependencyModuleNames.AddRange(
34 new string[] {
35 "Core",
36 "Json",
37 "JsonUtilities"
38 // ... add other public dependencies that you statically link with here ...
39 });
40
41
42 PrivateDependencyModuleNames.AddRange(
43 new string[] {
44 "CoreUObject",
45 "Engine",
46 "Projects", // IPluginManager
47
48 // UI
49 "SlateCore",
50 "Slate",
51 "InputCore"
52 // ... add private dependencies that you statically link with here ...
53 });
54
55 // Add MessageLog support
56 if (Target.bBuildDeveloperTools)
57 {
58 PrivateDependencyModuleNames.Add("MessageLog");
59 }
60
61 // We need this dependency when the DlgSystem works in the editor mode/built with editor
62 if (Target.bBuildEditor)
63 {
64 PrivateDependencyModuleNames.Add("EditorWidgets");
65 PrivateDependencyModuleNames.Add("UnrealEd");
66
67 // Accessing the menu
68 PrivateDependencyModuleNames.Add("WorkspaceMenuStructure");
69 }
70
71 // Add GameplayDebugger functionality if not 'Shipping' or 'Test' Target.
72 if (Target.bBuildDeveloperTools ||
73 (Target.Configuration != UnrealTargetConfiguration.Shipping && Target.Configuration != UnrealTargetConfiguration.Test))
74 {
75 PrivateDependencyModuleNames.Add("GameplayDebugger");
76 PublicDefinitions.Add("WITH_GAMEPLAY_DEBUGGER=1");
77 }
78 else
79 {
80 PublicDefinitions.Add("WITH_GAMEPLAY_DEBUGGER=0");
81 }
82
83#if UE_4_26_OR_LATER
84 PrivateDependencyModuleNames.Add("DeveloperSettings");
85#endif
86
87 DynamicallyLoadedModuleNames.AddRange(
88 new string[] {
89 // ... add any modules that your module loads dynamically here ...
90 });
91 }
92}
DlgSystem(ReadOnlyTargetRules Target)