Files
UnrealEngineUWP/Engine/Source/Programs/UnrealInsights/UnrealInsights.Target.cs
T
johan berg 279156f276 Expose UTS controls and start with sponsor argument
* Expose Unreal Trace Server launching facilities in FTraceServerControl interface. Only enabled on platforms that can actually launch UTS.
* Renamed WITH_UNREAL_TRACE_LAUNCH to UE_TRACE_SERVER_LAUNCH_ENABLED
* Always start UnrealTraceServer with sponsor argument.

#rb ionut.matasaru

[CL 30346679 by johan berg in ue5-main branch]
2023-12-15 07:56:03 -05:00

45 lines
1.2 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
using EpicGames.Core;
[SupportedPlatforms("Win64", "Linux", "Mac")]
public class UnrealInsightsTarget : TargetRules
{
[CommandLine("-Monolithic")]
public bool bMonolithic = false;
public UnrealInsightsTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Program;
LinkType = bMonolithic ? TargetLinkType.Monolithic : TargetLinkType.Modular;
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
LaunchModuleName = "UnrealInsights";
if (bBuildEditor)
{
ExtraModuleNames.Add("EditorStyle");
}
bCompileAgainstEngine = false;
bCompileAgainstCoreUObject = true;
bForceBuildTargetPlatforms = true;
bCompileWithStatsWithoutEngine = true;
bCompileWithPluginSupport = true;
// For source code editor access & regex (crossplatform)
bIncludePluginsForTargetPlatforms = true;
bCompileICU = true;
// For UI functionality
bBuildDeveloperTools = true;
bHasExports = false;
// Enable server controls
GlobalDefinitions.Add("UE_TRACE_SERVER_CONTROLS_ENABLED=1");
// Have UnrealInsights implicitly launch the trace store.
GlobalDefinitions.Add("UE_TRACE_SERVER_LAUNCH_ENABLED=1");
}
}