2019-12-26 15:32:37 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2019-03-05 18:49:25 -05:00
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
public class LiveCodingServer : ModuleRules
|
|
|
|
|
{
|
|
|
|
|
public LiveCodingServer(ReadOnlyTargetRules Target) : base(Target)
|
|
|
|
|
{
|
2023-04-21 15:33:02 -04:00
|
|
|
CppStandard = CppStandardVersion.Cpp17;
|
|
|
|
|
|
2023-10-11 19:24:34 -04:00
|
|
|
// Replace with PCHUsageMode.UseExplicitOrSharedPCHs when this plugin can compile with cpp20
|
2023-10-04 19:25:49 -04:00
|
|
|
PCHUsage = PCHUsageMode.NoPCHs;
|
|
|
|
|
|
|
|
|
|
PrivateDependencyModuleNames.Add("Core");
|
2019-05-14 18:12:06 -04:00
|
|
|
PrivateDependencyModuleNames.Add("Json");
|
|
|
|
|
PrivateDependencyModuleNames.Add("LiveCoding");
|
2019-07-16 08:45:13 -04:00
|
|
|
PrivateDependencyModuleNames.Add("VisualStudioDTE");
|
2019-03-05 18:49:25 -05:00
|
|
|
|
2019-04-19 14:44:15 -04:00
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "Distorm");
|
|
|
|
|
|
2021-01-31 15:09:58 -04:00
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
2019-03-05 18:49:25 -05:00
|
|
|
{
|
2019-03-07 09:13:59 -05:00
|
|
|
PrivateIncludePaths.Add("Developer/Windows/LiveCoding/Private");
|
|
|
|
|
PrivateIncludePaths.Add("Developer/Windows/LiveCoding/Private/External");
|
2019-03-05 18:49:25 -05:00
|
|
|
|
2019-03-07 09:13:59 -05:00
|
|
|
string DiaSdkDir = Target.WindowsPlatform.DiaSdkDir;
|
|
|
|
|
if(DiaSdkDir == null)
|
|
|
|
|
{
|
|
|
|
|
throw new System.Exception("Unable to find DIA SDK directory");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PrivateIncludePaths.Add(Path.Combine(DiaSdkDir, "include"));
|
|
|
|
|
PublicAdditionalLibraries.Add(Path.Combine(DiaSdkDir, "lib", "amd64", "diaguids.lib"));
|
|
|
|
|
RuntimeDependencies.Add("$(TargetOutputDir)/msdia140.dll", Path.Combine(DiaSdkDir, "bin", "amd64", "msdia140.dll"));
|
|
|
|
|
}
|
2019-03-05 18:49:28 -05:00
|
|
|
|
2020-12-15 09:27:44 -04:00
|
|
|
if (Target.Configuration == UnrealTargetConfiguration.Debug)
|
|
|
|
|
{
|
|
|
|
|
PrivateDefinitions.Add("LC_DEBUG=1");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
PrivateDefinitions.Add("LC_DEBUG=0");
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-18 18:07:05 -04:00
|
|
|
// Allow precompiling when generating project files so we can get intellisense
|
|
|
|
|
if(!Target.bGenerateProjectFiles)
|
|
|
|
|
{
|
|
|
|
|
PrecompileForTargets = PrecompileTargetsType.None;
|
|
|
|
|
}
|
2019-03-05 18:49:25 -05:00
|
|
|
}
|
|
|
|
|
}
|