I have built Mesa3D using Meson and Visual Studio 2019 for ARM64 Windows on Raspberry Pi.
Please see the output at: ./builddir/src/gallium/targets/libgl-gdi/opengl32.dll
//Alastair Cota 30/09/2020 - MemoryBarrier Fix
#ifdef MemoryBarrier
#undef MemoryBarrier
#endif
<ProjectConfiguration Include="debugoptimized|ARM64">
<Configuration>debugoptimized</Configuration>
<Platform>ARM64</Platform>
</ProjectConfiguration>
(Please see ./C#csprojFix for the C# version of this)
Target Architecture for some of the projects in the main solution folder have been deliberately set to x86...
Project Properties->Linker->Advanced->Target Machine /MACHINE:X86 (this should not exist!)
Folder "./builddir/subprojects/zlib-1.2.11/b0b5972@@Windows resource for file 'subprojects_zlib-1.2.11_win32_zlib1.rc'@cus/"
Renamed to: "./builddir/subprojects/zlib-1.2.11/b0b5972@@'@cus/" (post-build)
git config --global core.autocrlf false
Mid-build changes have been applied to ensure successful compilation.