meson: complete introspection build config

Pass the same config to gobject-introspection as with cmake/autotools.

This makes sure the c-include and package name is included in the gir
and also fixes the build because of the missing HB_AAT_H* defines.

Fixes #2336
This commit is contained in:
Christoph Reiter 2020-04-18 14:37:03 +02:00 committed by Ebrahim Byagowi
parent 22f7c61acf
commit dced2fbee9
1 changed files with 5 additions and 1 deletions

View File

@ -566,14 +566,18 @@ if have_gobject
namespace: 'HarfBuzz', namespace: 'HarfBuzz',
nsversion: '0.0', nsversion: '0.0',
identifier_prefix: 'hb_', identifier_prefix: 'hb_',
symbol_prefix: 'hb_', symbol_prefix: ['hb', 'hb_gobject'],
includes: ['GObject-2.0'], includes: ['GObject-2.0'],
export_packages: ['harfbuzz-gobject'],
header: 'hb-gobject.h',
install: true, install: true,
extra_args: ['--cflags-begin', extra_args: ['--cflags-begin',
'-DHB_H', '-DHB_H',
'-DHB_H_IN', '-DHB_H_IN',
'-DHB_OT_H', '-DHB_OT_H',
'-DHB_OT_H_IN', '-DHB_OT_H_IN',
'-DHB_AAT_H',
'-DHB_AAT_H_IN',
'-DHB_GOBJECT_H', '-DHB_GOBJECT_H',
'-DHB_GOBJECT_H_IN', '-DHB_GOBJECT_H_IN',
'-DHB_EXTERN=', '-DHB_EXTERN=',