Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCodingServer/LiveCodingServer.Build.cs
ben marsh 940f5a5f73 LiveCoding: Create a new external module that includes the appropriate headers for Visual Studio automation support (VisualStudioDTE), allowing the UE-friendly version to be used by the VS source code accessor as well as Live Coding.
#rb none
#rnx
#jira

#ROBOMERGE-SOURCE: CL 7321384 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v371-7306989)

[CL 7321387 by ben marsh in Main branch]
2019-07-16 08:45:13 -04:00

40 lines
1.4 KiB
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.IO;
public class LiveCodingServer : ModuleRules
{
public LiveCodingServer(ReadOnlyTargetRules Target) : base(Target)
{
PrivateDependencyModuleNames.Add("Core");
PrivateDependencyModuleNames.Add("Json");
PrivateDependencyModuleNames.Add("LiveCoding");
PrivateDependencyModuleNames.Add("VisualStudioDTE");
AddEngineThirdPartyPrivateStaticDependencies(Target, "Distorm");
if (Target.Platform == UnrealTargetPlatform.Win32 || Target.Platform == UnrealTargetPlatform.Win64)
{
PrivateIncludePaths.Add("Developer/Windows/LiveCoding/Private");
PrivateIncludePaths.Add("Developer/Windows/LiveCoding/Private/External");
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"));
}
// Allow precompiling when generating project files so we can get intellisense
if(!Target.bGenerateProjectFiles)
{
PrecompileForTargets = PrecompileTargetsType.None;
}
}
}