mirror of https://github.com/GNOME/gimp.git
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:
parent
58c41d9fdc
commit
2f94513df4
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue