Select Git revision
RWTHVRToolkit.Build.cs

David Gilbert authored
If enabled, Utilities forwards to cluster specific utilities and the pawn gets a cluster sync component spawned at runtime. Removes Cluster specific input from general imc
RWTHVRToolkit.Build.cs 1.50 KiB
using UnrealBuildTool;
public class RWTHVRToolkit : ModuleRules
{
public RWTHVRToolkit(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
PublicIncludePaths.AddRange(
new string[]{}
);
PrivateIncludePaths.AddRange(
new string[]{}
);
PublicDependencyModuleNames.AddRange(
new string[]
{
"Core",
"CoreUObject",
"Engine",
"HeadMountedDisplay",
"InputCore",
"UMG",
"Slate",
"SlateCore",
"DeveloperSettings",
"HTTP",
"LiveLink",
"LiveLinkInterface",
"EnhancedInput",
"Niagara",
"NavigationSystem"
}
);
PrivateDependencyModuleNames.AddRange(
new string[]
{
"NetCore"
}
);
if (Target.bBuildEditor == true)
{
PrivateDependencyModuleNames.Add("UnrealEd");
}
DynamicallyLoadedModuleNames.AddRange(
new string[]{}
);
if (IsPluginEnabledForTarget("RWTHVRCluster", base.Target))
{
PrivateDependencyModuleNames.Add("RWTHVRCluster");
PrivateDependencyModuleNames.Add("DisplayCluster");
PublicDefinitions.Add("PLATFORM_SUPPORTS_CLUSTER=1");
}
else
{
PublicDefinitions.Add("PLATFORM_SUPPORTS_CLUSTER=0");
}
}
private static bool IsPluginEnabledForTarget(string PluginName, ReadOnlyTargetRules Target)
{
var PL = Plugins.GetPlugin(PluginName);
return PL != null && Target.ProjectFile != null && Plugins.IsPluginEnabledForTarget(PL,
ProjectDescriptor.FromFile(Target.ProjectFile), Target.Platform, Target.Configuration, Target.Type);
}
}