2019-03-18 16:38:36 -04:00
|
|
|
// 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;
|
|
|
|
|
|
2020-03-20 16:15:55 -04:00
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
2019-03-18 16:38:36 -04:00
|
|
|
{
|
2019-06-10 19:47:29 -04:00
|
|
|
string LibName = "MixedRealityInterop";
|
|
|
|
|
if (Target.Configuration == UnrealTargetConfiguration.Debug)
|
|
|
|
|
{
|
|
|
|
|
LibName += "Debug";
|
|
|
|
|
}
|
|
|
|
|
string DLLName = LibName + ".dll";
|
|
|
|
|
LibName += ".lib";
|
2019-03-18 16:38:36 -04:00
|
|
|
|
2019-06-21 02:06:24 -04:00
|
|
|
string InteropLibPath = EngineDirectory + "/Source/ThirdParty/WindowsMixedRealityInterop/Lib/x64/";
|
2019-08-09 03:48:12 -04:00
|
|
|
PublicAdditionalLibraries.Add(InteropLibPath + LibName);
|
2019-06-21 02:06:24 -04:00
|
|
|
|
2019-06-10 19:47:29 -04:00
|
|
|
// Delay-load the DLL, so we can load it from the right place first
|
|
|
|
|
PublicDelayLoadDLLs.Add(DLLName);
|
2020-03-20 16:15:55 -04:00
|
|
|
RuntimeDependencies.Add(EngineDirectory + "/Binaries/ThirdParty/Windows/x64/" + DLLName);
|
2019-06-10 19:47:29 -04:00
|
|
|
|
|
|
|
|
// Hologram remoting dlls
|
2019-06-21 02:06:24 -04:00
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
2019-06-10 19:47:29 -04:00
|
|
|
{
|
2020-03-20 16:15:55 -04:00
|
|
|
string[] Dlls = { "Microsoft.Holographic.AppRemoting.dll", "PerceptionDevice.dll", "Microsoft.MixedReality.QR.dll" };
|
2019-06-10 19:47:29 -04:00
|
|
|
|
|
|
|
|
foreach(var Dll in Dlls)
|
|
|
|
|
{
|
|
|
|
|
PublicDelayLoadDLLs.Add(Dll);
|
2019-06-21 02:06:24 -04:00
|
|
|
RuntimeDependencies.Add(EngineDirectory + "/Binaries/ThirdParty/Windows/x64/" + Dll);
|
2019-06-10 19:47:29 -04:00
|
|
|
}
|
2019-08-06 13:15:33 -04:00
|
|
|
}
|
2019-06-10 19:47:29 -04:00
|
|
|
}
|
|
|
|
|
else if(Target.Platform == UnrealTargetPlatform.HoloLens)
|
|
|
|
|
{
|
2020-03-20 16:15:55 -04:00
|
|
|
string InteropLibPath = Target.UEThirdPartySourceDirectory + "/WindowsMixedRealityInterop/Lib/" + Target.WindowsPlatform.GetArchitectureSubpath() + "/";
|
|
|
|
|
PublicAdditionalLibraries.Add(InteropLibPath + (Target.Configuration == UnrealTargetConfiguration.Debug ? "MixedRealityInteropHoloLensDebug.lib" : "MixedRealityInteropHoloLens.lib"));
|
2019-06-10 19:47:29 -04:00
|
|
|
}
|
|
|
|
|
}
|
2019-03-18 16:38:36 -04:00
|
|
|
}
|