28 lines
634 B
C#
28 lines
634 B
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
using UnrealBuildTool;
|
|
|
|
public class DX9 : ModuleRules
|
|
{
|
|
protected virtual string LibDir { get => (Target.Platform == UnrealTargetPlatform.Win64) ? Target.WindowsPlatform.DirectXLibDir : null; }
|
|
|
|
public DX9(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
PublicDependencyModuleNames.Add("DirectX");
|
|
|
|
PublicAdditionalLibraries.AddRange(
|
|
new string[] {
|
|
LibDir + "d3d9.lib",
|
|
LibDir + "dxguid.lib",
|
|
LibDir + "dinput8.lib",
|
|
LibDir + "xapobase.lib"
|
|
}
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|