Files
UnrealEngineUWP/Engine/Plugins/Runtime/WindowsMixedReality/Source/WindowsMixedRealitySpatialInput/WindowsMixedRealitySpatialInput.Build.cs
Josh Adams b0e4357576 - UBT Code changes to remove 32-bit Windows support (C++ code for 32-bit still exists)
#rb marc.audy (concept, not each file)

[CL 15265424 by Josh Adams in ue5-main branch]
2021-01-31 15:09:58 -04:00

83 lines
2.1 KiB
C#

// Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.IO;
using UnrealBuildTool;
using Microsoft.Win32;
namespace UnrealBuildTool.Rules
{
public class WindowsMixedRealitySpatialInput : ModuleRules
{
private string ModulePath
{
get { return ModuleDirectory; }
}
private string ThirdPartyPath
{
get { return Path.GetFullPath( Path.Combine( ModulePath, "../ThirdParty/" ) ); }
}
public WindowsMixedRealitySpatialInput(ReadOnlyTargetRules Target) : base(Target)
{
PrivateIncludePathModuleNames.AddRange(
new string[]
{
"TargetPlatform",
"InputDevice",
"HeadMountedDisplay",
"WindowsMixedRealityHMD"
});
PublicDependencyModuleNames.AddRange(
new string[]
{
"MixedRealityInteropLibrary",
"HeadMountedDisplay",
"ProceduralMeshComponent"
}
);
PrivateDependencyModuleNames.AddRange(
new string[]
{
"Core",
"CoreUObject",
"Engine",
"InputCore",
"HeadMountedDisplay",
"WindowsMixedRealityHMD",
"Slate",
"SlateCore",
});
AddEngineThirdPartyPrivateStaticDependencies(Target, "WindowsMixedRealityInterop");
if (Target.bBuildEditor == true)
{
PrivateDependencyModuleNames.Add("EditorFramework");
PrivateDependencyModuleNames.Add("UnrealEd");
}
if (Target.Platform == UnrealTargetPlatform.Win64 ||
Target.Platform == UnrealTargetPlatform.HoloLens)
{
bEnableExceptions = true;
PCHUsage = PCHUsageMode.NoSharedPCHs;
PrivatePCHHeaderFile = "Private/WindowsMixedRealitySpatialInput.h";
}
if (Target.Platform == UnrealTargetPlatform.Win64 && Target.bBuildEditor == true)
{
PrivateDependencyModuleNames.Add("WindowsMixedRealityInputSimulation");
PrivateDefinitions.Add("WITH_INPUT_SIMULATION=1");
}
else
{
PrivateDefinitions.Add("WITH_INPUT_SIMULATION=0");
}
}
}
}