How do I compile SDL3 in Visual Studio 2012 (for WindowsXP)

Hello, currently I’m trying to make a Python 3.4.4(Last supported version with XP) a software that can run on every Windows from XP to 10, that adds support/mapping and etc for Bluetooth Gamepads with touchpad, I have picked SDL3 instead of 2, because there’s an issue on 2 where if you’re using a joystick in Bluetooth/Wireless mode, Gyro/Touchpad or Rumble are not supported, SDL3 on the other hand doesn’t have this issue. Based of the build notes, I noticed that if I build with Visual studio 2012 and add a specific variable for the building, everything should be fine, but I’m getting a ton of build errors:

P.S If I run it without trying to compile for an older version, I get this:

image

After a further attempt with Visual Studio 2013, the result looks a lot better now:

1>------ Build started: Project: SDL3, Configuration: Debug Win32 ------
1> SDL_camera_mediafoundation.c
1> SDL_windowsevents.c
1> SDL_windowsmodes.c
1>…..\src\video\windows\SDL_windowsmodes.c(29): fatal error C1083: Cannot open include file: ‘dxgi1_6.h’: No such file or directory
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(164): warning C4013: ‘IMFSourceReader_ReadSample’ undefined; assuming extern returning int
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(164): error C2065: ‘MF_SOURCE_READER_FIRST_VIDEO_STREAM’ : undeclared identifier
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(175): error C2065: ‘MF_SOURCE_READERF_ERROR’ : undeclared identifier
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(175): error C2065: ‘MF_SOURCE_READERF_ENDOFSTREAM’ : undeclared identifier
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(449): warning C4013: ‘IMFSourceReader_Release’ undefined; assuming extern returning int
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(541): error C2065: ‘MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE’ : undeclared identifier
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(541): warning C4133: ‘function’ : incompatible types - from ‘int *’ to 'const GUID *const ’
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(541): error C2065: ‘MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_GUID’ : undeclared identifier
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(544): error C2065: ‘MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_SYMBOLIC_LINK’ : undeclared identifier
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(544): warning C4133: ‘function’ : incompatible types - from ‘int *’ to 'const GUID *const ’
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(579): warning C4013: ‘IMFSourceReader_SetCurrentMediaType’ undefined; assuming extern returning int
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(579): error C2065: ‘MF_SOURCE_READER_FIRST_VIDEO_STREAM’ : undeclared identifier
1>…..\src\video\windows\SDL_windowsevents.c(632): error C2065: ‘RI_MOUSE_HWHEEL’ : undeclared identifier
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(781): error C2065: ‘MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_SYMBOLIC_LINK’ : undeclared identifier
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(781): warning C4133: ‘function’ : incompatible types - from ‘int *’ to ‘const GUID *’
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(788): error C2065: ‘MF_DEVSOURCE_ATTRIBUTE_FRIENDLY_NAME’ : undeclared identifier
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(788): warning C4133: ‘function’ : incompatible types - from ‘int *’ to ‘const GUID *’
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(821): error C2065: ‘MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE’ : undeclared identifier
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(821): warning C4133: ‘function’ : incompatible types - from ‘int *’ to 'const GUID *const ’
1>…..\src\camera\mediafoundation\SDL_camera_mediafoundation.c(821): error C2065: ‘MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_GUID’ : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Any ideas how I an resolve this?