diff options
author | Tor Lillqvist <tml@collabora.com> | 2020-10-04 11:40:05 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2020-10-04 11:40:11 +0300 |
commit | 7f55f453886e6aba9401da5f984db3e4fcf020e1 (patch) | |
tree | 86b4fd211cfc45ddabea1d10c2d8a6733cae76d6 /configure.ac | |
parent | 9554ca530a488fcbe922858436d36f324feb1212 (diff) |
Document what PathFormat does
Change-Id: If8b0ca9b55fb601bc3da2172f5acc00a7d83ea85
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index da140708196b..08469ca830a5 100644 --- a/configure.ac +++ b/configure.ac @@ -61,6 +61,29 @@ FilterLibs() PathFormat() { + # Args: $1: A pathname. On Cygwin, in either the Unix or the Windows format. + # + # Return value: $formatted_path. The pathname in Windows format, but using forward slashes instead + # of backslashes, using 8.3 pathnames if necessary. + # + # Errors out if 8.3 names are needed but aren't present for some of the path component. + + # Examples: + # + # /home/tml/lo/master-optimised => C:/cygwin64/home/tml/lo/master-optimised + # + # C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe => C:/PROGRA~2/MICROS~3/INSTAL~1/vswhere.exe + # + # C:\Program Files (x86)\Microsoft Visual Studio\2019\Community => C:/PROGRA~2/MICROS~3/2019/COMMUN~1 + # + # C:/PROGRA~2/WI3CF2~1/10/Include/10.0.18362.0/ucrt => C:/PROGRA~2/WI3CF2~1/10/Include/10.0.18362.0/ucrt + # + # /cygdrive/c/PROGRA~2/WI3CF2~1/10 => C:/PROGRA~2/WI3CF2~1/10 + # + # C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\ => C:/PROGRA~2/WI3CF2~1/NETFXSDK/4.8/ + # + # /usr/bin/find.exe => C:/cygwin64/bin/find.exe + formatted_path="$1" if test "$build_os" = "cygwin"; then pf_conv_to_dos= |