pdbgen should not generate code for enums in app/
Environment/Versions
- GIMP version: 2.99
- Package: All
- Operating System: All
Description of the bug
The code in pdb/Makefile.am
is generating APIs around the enums in the listed enum_headers
and as such exposes them in libgimp, even when they're actually defined in app/
. For example, GimpLayerMode
is defined in app/
, but the enum is used in libgimp
, plug-ins, ...
In other words, enumgen.pl
with its current inputs is sneakily adding API and ABI from app
into libgimp
. We should either stop exposing these (by not generating those APIs), or we should move them to libgimp proper.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
Go to nielsdg/dont-generate-pdb-for-enums-in-app
where I did the exercise, and look at the places where things are broken
Expected result: we don't expose enums defined in app/ in libgimp
Actual result: we are
Additional information
This should help with #8145 (closed)