How can I build libwebsockets from source for Unreal 5.1?

Hello! I am trying to debug an issue with a standalone unreal application that uses the libwebsockets library that ships with unreal. I want to build libwebsockets libraries for unreal myself so that I can get symbols and step through the source code to troubleshoot an issue in my application.

(My application builds as a standalone program for Win64 and Linuix if that matters, I would be satisfied to just figure this out for Windows)

The short version of my question is: how are these libwebsockets libs generated?

Some information/research I have done thus far:

I am using the version of unreal from github 5.1.1 (imported into a corp p4 repository) it appears that the libs in question get downloaded when I run Setup.bat as part of the GitDependences process (I am unsure how this process works, but looks like the files get called out explicitly in Commit.gitdeps.xml). As far as I can tell its just downloading the libwebsocket libs from an epic over the internet (not building them locally).

    <File Name="Engine/Source/ThirdParty/libWebSockets/libwebsockets/lib/Win64/VS2015/Debug/websockets_static.lib" Hash="c8ea0bf1f15f2b589a256c02a4d34656117d8c7f" />
    <File Name="Engine/Source/ThirdParty/libWebSockets/libwebsockets/lib/Win64/VS2015/Release/websockets_static.lib" Hash="645da9f00696c4265c7a6d06c297633c03356a97" />

I found this repository which looks like it might be related to building libwebsockets for unreal from source but its not clear to me how or if the libs that are part of the current engine are actually built from this source. GitHub - EpicGames/ThirdParty: Modifications to third party software used by UE4

I also looked back in the history of UE on github, it looks like the websockets source and build scripts used to be checked in, but have since been removed as part of this merge checkin: https://github.com/EpicGames/UnrealEngine/commit/f20a48849ea31ebe022be71929502ea49c6358de#diff-01438acaba2804685b424a36b0fa0446ea80ad68dc0f136837b58169fb17e7f8 – any information about why or where that code got moved to would be appreciated (or any information about building libwebsockets from source for unreal in general)

Thank you!