2021-09-28 13:33:17 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
namespace UnrealBuildTool.Rules
|
|
|
|
|
{
|
|
|
|
|
public class StateTreeModule : ModuleRules
|
|
|
|
|
{
|
|
|
|
|
public StateTreeModule(ReadOnlyTargetRules Target) : base(Target)
|
|
|
|
|
{
|
2024-03-21 09:44:11 -04:00
|
|
|
UnsafeTypeCastWarningLevel = WarningLevel.Warning;
|
|
|
|
|
|
2021-09-28 13:33:17 -04:00
|
|
|
PublicIncludePaths.AddRange(
|
2021-11-24 04:26:12 -05:00
|
|
|
new string[] {
|
|
|
|
|
}
|
2021-09-28 13:33:17 -04:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
PublicDependencyModuleNames.AddRange(
|
2024-05-02 11:47:26 -04:00
|
|
|
new [] {
|
2021-11-24 04:26:12 -05:00
|
|
|
"Core",
|
|
|
|
|
"CoreUObject",
|
2023-03-14 13:35:46 -04:00
|
|
|
"DeveloperSettings",
|
2021-11-24 04:26:12 -05:00
|
|
|
"Engine",
|
|
|
|
|
"AIModule",
|
2024-06-19 17:04:50 -04:00
|
|
|
"GameplayTags"
|
2021-11-24 04:26:12 -05:00
|
|
|
}
|
2021-09-28 13:33:17 -04:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
2024-05-02 11:47:26 -04:00
|
|
|
new [] {
|
2023-02-10 07:22:48 -05:00
|
|
|
"PropertyPath",
|
2021-11-24 04:26:12 -05:00
|
|
|
}
|
2021-09-28 13:33:17 -04:00
|
|
|
);
|
2021-11-24 04:26:12 -05:00
|
|
|
|
2023-05-10 15:14:21 -04:00
|
|
|
UnsafeTypeCastWarningLevel = WarningLevel.Error;
|
|
|
|
|
|
2023-05-26 13:03:05 -04:00
|
|
|
if (Target.bBuildEditor)
|
|
|
|
|
{
|
2024-01-11 04:24:45 -05:00
|
|
|
PublicDependencyModuleNames.AddRange(
|
2024-05-02 11:47:26 -04:00
|
|
|
new [] {
|
2024-01-11 04:24:45 -05:00
|
|
|
"UnrealEd",
|
2024-08-13 09:09:54 -04:00
|
|
|
"BlueprintGraph",
|
2024-01-11 04:24:45 -05:00
|
|
|
}
|
|
|
|
|
);
|
2024-06-19 15:22:25 -04:00
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
|
|
|
new [] {
|
2024-08-13 09:09:54 -04:00
|
|
|
"StructUtilsEditor",
|
|
|
|
|
"EditorSubsystem",
|
|
|
|
|
"EditorFramework"
|
2024-06-19 15:22:25 -04:00
|
|
|
}
|
|
|
|
|
);
|
2023-05-26 13:03:05 -04:00
|
|
|
}
|
|
|
|
|
|
2024-05-02 11:47:26 -04:00
|
|
|
// Allow debugger traces on all non-shipping targets and shipping editors (UEFN)
|
|
|
|
|
if (Target.Configuration != UnrealTargetConfiguration.Shipping || Target.bBuildEditor)
|
2023-03-14 13:35:46 -04:00
|
|
|
{
|
2024-05-02 11:47:26 -04:00
|
|
|
PublicDefinitions.Add("WITH_STATETREE_TRACE=1");
|
2023-03-14 13:35:46 -04:00
|
|
|
PublicDependencyModuleNames.AddRange(
|
2024-05-02 11:47:26 -04:00
|
|
|
new []
|
2023-03-14 13:35:46 -04:00
|
|
|
{
|
2024-05-02 11:47:26 -04:00
|
|
|
"TraceLog"
|
2023-03-14 13:35:46 -04:00
|
|
|
}
|
|
|
|
|
);
|
2024-05-02 11:47:26 -04:00
|
|
|
|
|
|
|
|
// Allow debugger trace analysis on editor platforms
|
|
|
|
|
if (Target.Platform.IsInGroup(UnrealPlatformGroup.Desktop) && Target.bBuildEditor)
|
|
|
|
|
{
|
|
|
|
|
PublicDefinitions.Add("WITH_STATETREE_TRACE_DEBUGGER=1");
|
|
|
|
|
PublicDependencyModuleNames.AddRange(
|
|
|
|
|
new []
|
|
|
|
|
{
|
|
|
|
|
"TraceServices",
|
|
|
|
|
"TraceAnalysis"
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
PublicDefinitions.Add("WITH_STATETREE_TRACE_DEBUGGER=0");
|
|
|
|
|
}
|
2023-03-14 13:35:46 -04:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2024-05-02 11:47:26 -04:00
|
|
|
PublicDefinitions.Add("WITH_STATETREE_TRACE=0");
|
|
|
|
|
PublicDefinitions.Add("WITH_STATETREE_TRACE_DEBUGGER=0");
|
2023-03-14 13:35:46 -04:00
|
|
|
}
|
2021-09-28 13:33:17 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|