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/[email protected]
Discussion: 
https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/70df2df1cc89e69e31b31b6aa0d65fd72935af38

Modified Files
--------------
src/tools/msvc/MSBuildProject.pm |  4 ++-
src/tools/msvc/gendef.pl         | 67 +++++++++++++++++++++++++++-------------
2 files changed, 49 insertions(+), 22 deletions(-)

Reply via email to