ecpg: Output dir, source dir, stamp file argument for preproc/*.pl
authorAndres Freund <andres@anarazel.de>
Mon, 18 Jul 2022 18:59:03 +0000 (11:59 -0700)
committerAndres Freund <andres@anarazel.de>
Mon, 18 Jul 2022 19:24:23 +0000 (12:24 -0700)
commitdb0a272d123b8d7f4d4acbeb54f27682a566be83
tree660f21e0afa01fd22abf920f5d68fb08354ed9ad
parent7c3c2cb9aeda4f288e89b25ede8cc2fe5997ac98
ecpg: Output dir, source dir, stamp file argument for preproc/*.pl

This is in preparation for building postgres with meson / ninja.

When building with meson, commands are run at the root of the build tree. Add
an option to put build output into the appropriate place. This can be utilized
by src/tools/msvc/ for a minor simplification, which also provides some
coverage for the new option.

Add option to generate a timestamp for check_rules.pl, so that proper
dependencies on it having been run can be generated.

Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/5e216522-ba3c-f0e6-7f97-5276d0270029@enterprisedb.com
src/interfaces/ecpg/preproc/Makefile
src/interfaces/ecpg/preproc/check_rules.pl
src/interfaces/ecpg/preproc/parse.pl
src/tools/msvc/Solution.pm