Meson-windows v4: Potential path too long during zlib subproject build when using MsBuild backend
I hit this when Mesa3D code is located at C:\Software\Development\projects\mesa\mesa
and build system is generated in C:\Software\Development\projects\mesa\mesa\build\windows-x86_64
:
"C:\Software\Development\projects\mesa\mesa\build\windows-x86_64\mesa.sln" (default target) (1) ->
"C:\Software\Development\projects\mesa\mesa\build\windows-x86_64\subprojects\zlib-1.2.11\Windows resource for fi
le 'subprojects__zlib-1.2.11__win32_zlib1.rc'@cus.vcxproj.metaproj" (default target) (2) ->
"C:\Software\Development\projects\mesa\mesa\build\windows-x86_64\subprojects\zlib-1.2.11\Windows resource for fi
le 'subprojects__zlib-1.2.11__win32_zlib1.rc'@cus.vcxproj" (default target) (61) ->
(InitializeBuildStatus target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targ
ets(321,5): error MSB3491: Could not write lines to file "Windows resource for file 'subprojects__zlib-1.2.11__w
in32_zlib1.rc'@cus\Windows .69505A73.tlog\Windows resource for file 'subprojects__zlib-1.2.11__win32_zlib1.rc'.l
astbuildstate". The specified path, file name, or both are too long. The fully qualified file name must be less
than 260 characters, and the directory name must be less than 248 characters. [C:\Software\Development\projects\
mesa\mesa\build\windows-x86_64\subprojects\zlib-1.2.11\Windows resource for file 'subprojects__zlib-1.2.11__win3
2_zlib1.rc'@cus.vcxproj]
513 Warning(s)
1 Error(s)