You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
// Copyright 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"));
|
|
}
|
|
|
|
if (Target.Configuration == UnrealTargetConfiguration.Debug)
|
|
{
|
|
PrivateDefinitions.Add("LC_DEBUG=1");
|
|
}
|
|
else
|
|
{
|
|
PrivateDefinitions.Add("LC_DEBUG=0");
|
|
}
|
|
|
|
// Allow precompiling when generating project files so we can get intellisense
|
|
if(!Target.bGenerateProjectFiles)
|
|
{
|
|
PrecompileForTargets = PrecompileTargetsType.None;
|
|
}
|
|
}
|
|
}
|