build: Add gobject-introspection support

Verified to all be introspectable.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://phabricator.endlessm.com/T23859
This commit is contained in:
Philip Withnall 2018-10-02 15:57:04 +01:00
parent 9b8cef7697
commit 1235c275eb
2 changed files with 12 additions and 0 deletions

View File

@ -43,3 +43,14 @@ pkgconfig.generate(
description: 'Library providing access to parental control settings.', description: 'Library providing access to parental control settings.',
requires: libeos_parental_controls_public_deps, requires: libeos_parental_controls_public_deps,
) )
gnome.generate_gir(libeos_parental_controls,
sources: libeos_parental_controls_sources + libeos_parental_controls_headers,
nsversion: libeos_parental_controls_api_version,
namespace: 'EosParentalControls',
symbol_prefix: 'epc_',
identifier_prefix: 'Epc',
export_packages: 'libeos-parental-controls',
includes: ['GObject-2.0', 'Gio-2.0'],
install: true,
)

View File

@ -9,6 +9,7 @@ project('eos-parental-controls', 'c',
] ]
) )
gnome = import('gnome')
i18n = import('i18n') i18n = import('i18n')
pkgconfig = import('pkgconfig') pkgconfig = import('pkgconfig')