Files
UnrealEngineUWP/Engine/Source/ThirdParty/Windows/XInput/XInput.Build.cs
henrik karlsson 1029b58305 [xinput]
* Updated submitted x64 xinput.lib to 1.4 (it was already 1.4 for arm64.
* Patched xinput.lib to remove DllMain export entry which causes issues when linking with clang (this was done using UbaObjTool.exe xinput.lib -writeimpblib=xinput.lib)
* Changed so the submitted xinput.lib is used

[CL 35613629 by henrik karlsson in ue5-main branch]
2024-08-16 23:32:00 -04:00

23 lines
694 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using EpicGames.Core;
using System;
using System.IO;
using UnrealBuildTool;
public class XInput : ModuleRules
{
public XInput(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
if (Target.IsInPlatformGroup(UnrealPlatformGroup.Windows))
{
// Note, XInput.lib in this folder is patched to remove the exported symbol DllMain.
// Reason is because ld-lld.exe links things wrong when this symbol is exported. This must have been an oversight at microsoft
PublicAdditionalLibraries.Add(Path.Combine(Target.WindowsPlatform.DirectXLibDir, "XInput.lib"));
PublicDelayLoadDLLs.Add("XInput1_4.dll");
}
}
}