meson: pdbgen not working
GIMP version: master
Operating System: all
Description of the bug
pdbgen does not seem to be run in any situation with the meson build system.
Basically all files
libgimp*/gimp*_pdb.[ch] as well as
app/pdb/* are generated files. Their dependencies are: the generaction scripts (
pdb/*.pl) as well as the source pdb (
pdb/groups/*), i.e. that we want them to be regenerated when these files are modified (all if the gen scripts are changed, only the corresponding target if a source is changed).
All these generated files are committed (useful for reviewing changes but also because this allows to not have perl dependencies for packagers/people building from tarball, only for devs). This means they must be regenerated inside the source dir, not the build dir.
- in source dir, run
touch pdb/pdbgen.plfor instance
ninjain build dir.
Expected result: pdb generation must be run and
libgimp/gimpimage_pdb.[ch] as well as
app/pdb/image-cmds.c must be regenerated. If you want to really see a difference, you can actually make a minor change in
Actual result: nothing happens.
@Salamandar: would you have a look? This one is quite a bit oversight as it is a core feature of GIMP development. Our whole plug-in system is based on this.