You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb none #preflight 630d013af92416fb926b3c7a #preflight 630d0938e54ec9d5815ebb45 [CL 21696478 by jessica agee in ue5-main branch]
34 lines
878 B
C#
34 lines
878 B
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System;
|
|
using System.IO;
|
|
|
|
public class TraceLog : ModuleRules
|
|
{
|
|
public TraceLog(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
bRequiresImplementModule = false;
|
|
PublicIncludePathModuleNames.Add("Core");
|
|
|
|
UnsafeTypeCastWarningLevel = WarningLevel.Error;
|
|
}
|
|
|
|
// used by platform extension derived classes. probably should become a project setting at some point!
|
|
protected void EnableTraceByDefault(ReadOnlyTargetRules Target)
|
|
{
|
|
if (Target.Configuration != UnrealTargetConfiguration.Shipping && Target.Type != TargetType.Program)
|
|
{
|
|
foreach (String Definition in Target.GlobalDefinitions)
|
|
{
|
|
if (Definition.Contains("UE_TRACE_ENABLED"))
|
|
{
|
|
// Define already set in Target.GlobalDefinitions
|
|
return;
|
|
}
|
|
}
|
|
PublicDefinitions.Add("UE_TRACE_ENABLED=1");
|
|
}
|
|
}
|
|
}
|