Files
UnrealEngineUWP/Engine/Plugins/Runtime/WindowsMixedReality/Source/MixedRealityInteropLibrary/MixedRealityInteropLibrary.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

48 lines
1.7 KiB
C#

// Fill out your copyright notice in the Description page of Project Settings.
using System.IO;
using UnrealBuildTool;
public class MixedRealityInteropLibrary : ModuleRules
{
public MixedRealityInteropLibrary(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
if (Target.Platform == UnrealTargetPlatform.Win64)
{
string LibName = "MixedRealityInterop";
if (Target.Configuration == UnrealTargetConfiguration.Debug)
{
LibName += "Debug";
}
string DLLName = LibName + ".dll";
LibName += ".lib";
string InteropLibPath = EngineDirectory + "/Source/ThirdParty/WindowsMixedRealityInterop/Lib/x64/";
PublicAdditionalLibraries.Add(InteropLibPath + LibName);
// Delay-load the DLL, so we can load it from the right place first
PublicDelayLoadDLLs.Add(DLLName);
RuntimeDependencies.Add(EngineDirectory + "/Binaries/ThirdParty/Windows/x64/" + DLLName);
// Hologram remoting dlls
if (Target.Platform == UnrealTargetPlatform.Win64)
{
string[] Dlls = { "Microsoft.Holographic.AppRemoting.dll", "PerceptionDevice.dll", "Microsoft.MixedReality.QR.dll" };
foreach(var Dll in Dlls)
{
PublicDelayLoadDLLs.Add(Dll);
RuntimeDependencies.Add(EngineDirectory + "/Binaries/ThirdParty/Windows/x64/" + Dll);
}
}
}
else if(Target.Platform == UnrealTargetPlatform.HoloLens)
{
string InteropLibPath = Target.UEThirdPartySourceDirectory + "/WindowsMixedRealityInterop/Lib/" + Target.WindowsPlatform.GetArchitectureSubpath() + "/";
PublicAdditionalLibraries.Add(InteropLibPath + (Target.Configuration == UnrealTargetConfiguration.Debug ? "MixedRealityInteropHoloLensDebug.lib" : "MixedRealityInteropHoloLens.lib"));
}
}
}