Extend gendef.pl in preparation for meson
authorAndres Freund <[email protected]>
Mon, 19 Sep 2022 22:34:50 +0000 (15:34 -0700)
committerAndres Freund <[email protected]>
Mon, 19 Sep 2022 22:39:35 +0000 (15:39 -0700)
commit70df2df1cc89e69e31b31b6aa0d65fd72935af38
tree4fd0d0b7985e39f12e22fe698d254c3f3e81c547
parent1091b48cd761abc7f697fa9c4e018c46763b46fb
Extend gendef.pl in preparation for meson

The main issue with using gendef.pl as-is for meson is that with meson the
filenames are a bit longer, exceeding the max commandline length when calling
dumpbin with all objects. As it's easier to pass in a library anyway, do so.

The .def file location, input and temporary file location need to be tunable
as well.

This also fixes a bug in gendef.pl: The logic when to regenerate was broken
and never avoid regenerating.

Author: Andres Freund <[email protected]>
Reviewed-By: Peter Eisentraut <[email protected]>
Discussion: https://postgr.es/m/20220809071055[email protected]
Discussion: https://postgr.es/m/7dae5979-c6c0-cec5-7a36-76a85aa8053d@enterprisedb.com
src/tools/msvc/MSBuildProject.pm
src/tools/msvc/gendef.pl