Files
UnrealEngineUWP/Engine/Source/ThirdParty/WindowsMixedRealityInterop/WindowsMixedRealityInterop.Build.cs
Jeff Fisher f3ba68b8c6 UEVR-1976 Hololens 1: remove support from UE5
-Removing hololens 1 remoting, which was the only way to use a hl1.  It was deprecated in 4.26.  Microsoft no longer sells the device.
#jira UEVR-1976
#review-14485874
#rb Joe.Conley

[CL 14494314 by Jeff Fisher in ue5-main branch]
2020-10-14 13:45:15 -04:00

73 lines
2.7 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System.IO;
using UnrealBuildTool;
public class WindowsMixedRealityInterop : ModuleRules
{
public WindowsMixedRealityInterop(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
string WMRIPath = Path.Combine(Target.UEThirdPartySourceDirectory, "WindowsMixedRealityInterop");
string IncludePath = Path.Combine(WMRIPath, "Include");
string LibrariesPath = Path.Combine(WMRIPath, "Lib");
bool bAddLibraries = true;
PublicIncludePaths.Add(IncludePath);
if (Target.Platform == UnrealTargetPlatform.Win64)
{
LibrariesPath = Path.Combine(LibrariesPath, "x64");
if (Target.Configuration == UnrealTargetConfiguration.Debug)
{
PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "MixedRealityInteropDebug.lib"));
}
else
{
PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "MixedRealityInterop.lib"));
}
PublicDefinitions.Add("WITH_SCENE_UNDERSTANDING=1");
}
else if (Target.Platform == UnrealTargetPlatform.HoloLens)
{
LibrariesPath = Path.Combine(LibrariesPath, Target.WindowsPlatform.GetArchitectureSubpath());
if (Target.Configuration == UnrealTargetConfiguration.Debug)
{
PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "MixedRealityInteropHoloLensDebug.lib"));
}
else
{
PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "MixedRealityInteropHoloLens.lib"));
}
// Add a dependency to SceneUnderstanding.dll if present
string SceneUnderstandingPath = Path.Combine(Target.UEThirdPartyBinariesDirectory, "HoloLens", Target.WindowsPlatform.GetArchitectureSubpath(), "Microsoft.MixedReality.SceneUnderstanding.dll");
if (File.Exists(SceneUnderstandingPath))
{
RuntimeDependencies.Add(SceneUnderstandingPath);
PublicDefinitions.Add("WITH_SCENE_UNDERSTANDING=1");
}
else
{
PublicDefinitions.Add("WITH_SCENE_UNDERSTANDING=0");
}
}
else
{
bAddLibraries = false;
PublicDefinitions.Add("WITH_SCENE_UNDERSTANDING=0");
}
if (bAddLibraries)
{
// Win10 support
PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "onecore.lib"));
// Explicitly load lib path since name conflicts with an existing lib in the DX11 dependency.
PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "d3d11.lib"));
}
}
}