meson: windows: Determine path to tmp_install + prefix using meson
authorAndres Freund <andres@anarazel.de>
Sat, 1 Oct 2022 19:39:12 +0000 (12:39 -0700)
committerAndres Freund <andres@anarazel.de>
Sat, 1 Oct 2022 19:39:12 +0000 (12:39 -0700)
commitd0366bfb3b211b26a997a4220757392a0c153d8d
tree6dfe97fe310de90b8fadb234e21ca33d35c3356d
parenta9d58bfe8a3ae2254e1553ab76974feeaafa0133
meson: windows: Determine path to tmp_install + prefix using meson

Previously some paths (like c:\ or d:/) worked, but plenty others (like
/path/to or //computer/share/path) didn't. As we'd like to change the default
prefix to /usr/local/pgsql, that's a problem.

Instead of trying to do this in meson.build, call out to the implementation
meson install uses. This isn't pretty, but it's more reliable than what we had
before.

Discussion: https://postgr.es/CAEG8a3LGWE-gG6vuddmH91RORhi8gWs0mMB-hcTmP3_NVgM7dg@mail.gmail.com
meson.build