You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
* 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]
23 lines
694 B
C#
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");
|
|
}
|
|
}
|
|
}
|