aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorPeter Harris <pharris@opentext.com>2020-09-15 15:33:23 -0400
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-09-28 12:34:12 +0000
commit2664ab069db0129201bed09b2455a88c0210c347 (patch)
tree94b1d5aadc1f251f78285936835abfe061f73b50 /docs/markdown
parent75433bee74b00cdbc53ae1e30fbd9fc578a9c4ad (diff)
downloadmeson-2664ab069db0129201bed09b2455a88c0210c347.zip
meson-2664ab069db0129201bed09b2455a88c0210c347.tar.gz
meson-2664ab069db0129201bed09b2455a88c0210c347.tar.bz2
windows: reduce chance of going over path limit in backend/vs
When building with vs2019 (not ninja), a path length error will be thrown if the path to a resource file is even remotely deep within the tree. This is largely because the target name includes the string "Windows resource for file 'full path'", which is then expanded twice (once for the .vcxproj itself, and once for IntDir) and added to the full path. When combined with the tiny path limits on Windows, it is easy to exceed path limits. This error is largely avoided by the ninja back-end. Unlike the vs back-end, the ninja back-end does not use target.get_id() as part of the project file path, nor does it use target.get_id() as part of get_target_private_dir(). Example error: error MSB4184: The expression "[MSBuild]::NormalizePath( C:\src\mesonbuild\Misc\FreeRDP-master\client\X11\xfreerdp\xfreerdp, f3f7317@@Windows resource for file 'Misc_FreeRDP-master_client_X11_xfreerdp_xfreerdp_xfreerdp.rc'@cus\, f3f7317@@Windows resource for file 'Misc_FreeRDP-master_client_X11_xfreerdp_xfreerdp_xfreerdp.rc'@cus. vcxproj.CopyComplete)" cannot be evaluated. Path: C:\src\mesonbuild\Misc\FreeRDP-master\client\X11\xfreerdp\xfreerdp\f3f7317 @@Windows resource for file 'Misc_FreeRDP-master_client_X11_xfreerdp_xfreerdp_xfreerdp.rc'@cus\f3f7317 @@Windows resource for file 'Misc_FreeRDP-master_client_X11_xfreerdp_xfreerdp_xfreerdp.rc'@cus. vcxproj.CopyComplete exceeds the OS max path limit. The fully qualified file name must be less than 260 characters.
Diffstat (limited to 'docs/markdown')
0 files changed, 0 insertions, 0 deletions