libgimp: Make sure GIR includes the right header

When using GIR-based bindings that will eventually include the header
files (like Vala), we need to make sure to tell the gir-scanner what
file that is. Otherwise tools like `vapigen` have to make an educated
guess (which will be wrong).
This commit is contained in:
Niels De Graef 2019-08-20 18:20:01 +02:00
parent 58c41d9fdc
commit 2f94513df4
2 changed files with 4 additions and 1 deletions

View File

@ -331,6 +331,9 @@ Gimp_@GIMP_API_MAJOR_VERSION@_@GIMP_API_MINOR_VERSION@_gir_FILES = \
$(libgimpthumb_introspectable) \
$(libgimpwidgets_introspectable)
Gimp_@GIMP_API_MAJOR_VERSION@_@GIMP_API_MINOR_VERSION@_gir_SCANNERFLAGS = \
--c-include="libgimp/gimp.h"
INTROSPECTION_GIRS += Gimp-@GIMP_API_VERSION@.gir
girdir = $(datadir)/gir-1.0

View File

@ -376,7 +376,7 @@ else
namespace: 'Gimp',
identifier_prefix: 'Gimp',
# symbol_prefix: 'gimp',
header: 'gimp-3.0/libgimp/gimp.h',
header: 'libgimp/gimp.h',
extra_args: [
'-DGIMP_COMPILATION',