70 lines
1.7 KiB
C#
70 lines
1.7 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
|
|
public class LiveCoding : ModuleRules
|
|
{
|
|
static bool UseLiveCoding2 = false;
|
|
|
|
public LiveCoding(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
PrivateDependencyModuleNames.Add("Core");
|
|
PrivateDependencyModuleNames.Add("CoreUObject");
|
|
PrivateDependencyModuleNames.Add("Settings");
|
|
PrivateDependencyModuleNames.Add("BuildSettings");
|
|
PrivateDependencyModuleNames.Add("OodleDataCompression");
|
|
|
|
if (Target.bCompileAgainstEngine)
|
|
{
|
|
PrivateDependencyModuleNames.Add("Engine");
|
|
}
|
|
|
|
if (Target.bBuildEditor == true)
|
|
{
|
|
PrivateDependencyModuleNames.Add("UnrealEd");
|
|
PrivateDependencyModuleNames.Add("Slate");
|
|
}
|
|
|
|
if(Target.bUseDebugLiveCodingConsole)
|
|
{
|
|
PrivateDefinitions.Add("USE_DEBUG_LIVE_CODING_CONSOLE=1");
|
|
}
|
|
else
|
|
{
|
|
PrivateDefinitions.Add("USE_DEBUG_LIVE_CODING_CONSOLE=0");
|
|
}
|
|
|
|
if (!Target.Architecture.bIsX64)
|
|
{
|
|
PrivateDefinitions.Add("LC_VERSION=0");
|
|
}
|
|
else if (UseLiveCoding2)
|
|
{
|
|
PrivateDefinitions.Add("LC_VERSION=2");
|
|
PrivateIncludePaths.Add("ThirdParty/LivePlusPlus");
|
|
PrivateDependencyModuleNames.Add("InputCore");
|
|
}
|
|
else
|
|
{
|
|
PrivateDefinitions.Add("LC_VERSION=1");
|
|
|
|
if (Target.Configuration == UnrealTargetConfiguration.Debug)
|
|
{
|
|
PrivateDefinitions.Add("LC_DEBUG=1");
|
|
}
|
|
else
|
|
{
|
|
PrivateDefinitions.Add("LC_DEBUG=0");
|
|
}
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
PrivateIncludePaths.Add("Developer/Windows/LiveCodingServer/Private/External");
|
|
}
|
|
|
|
PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "Private", "External", "LC_JumpToSelf.lib"));
|
|
}
|
|
}
|
|
}
|