50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
// Copyright HTC Corporation. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
|
|
namespace UnrealBuildTool.Rules
|
|
{
|
|
public class ViveOpenXRPassthrough: ModuleRules
|
|
{
|
|
public ViveOpenXRPassthrough(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
|
|
PrivatePCHHeaderFile = @"Private\OpenXRCommon.h";
|
|
var EngineDir = Path.GetFullPath(Target.RelativeEnginePath);
|
|
|
|
PrivateIncludePaths.AddRange(
|
|
new string[] {
|
|
"ViveOpenXRPassthrough/Private/External",
|
|
EngineDir + "/Source/ThirdParty/OpenXR/include",
|
|
EngineDir + "/Plugins/Runtime/OpenXR/Source/OpenXRHMD/Private",
|
|
// ... add public include paths required here ...
|
|
}
|
|
);
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[]
|
|
{
|
|
"Core",
|
|
"CoreUObject",
|
|
"ApplicationCore",
|
|
"Engine",
|
|
"ViveOpenXRHMD",
|
|
"InputCore",
|
|
"HeadMountedDisplay",
|
|
"OpenXRHMD",
|
|
"ViveOpenXRWrapper",
|
|
"XRBase"
|
|
}
|
|
);
|
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "OpenXR");
|
|
|
|
if (Target.bBuildEditor == true)
|
|
{
|
|
PrivateDependencyModuleNames.Add("UnrealEd");
|
|
}
|
|
}
|
|
}
|
|
}
|