gi: expose some files as variable for gobject-introspection

see:
https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/313
This commit is contained in:
Andoni Morales Alastruey
2022-01-28 14:54:22 +01:00
parent 88f4514a92
commit b1ed9907c2
3 changed files with 16 additions and 3 deletions

View File

@@ -59,9 +59,14 @@ gmoduleconf_h = configure_file(input : 'gmoduleconf.h.in',
output : 'gmoduleconf.h',
configuration : gmoduleconf_conf)
install_headers(['gmodule.h'], subdir : 'glib-2.0')
# Expose as variable to be used by gobject-introspection
# when it includes GLib as a subproject
gmodule_h = files('gmodule.h')
gmodule_c = files('gmodule.c')
gmodule_sources = ['gmodule.c']
install_headers([gmodule_h], subdir : 'glib-2.0')
gmodule_sources = [gmodule_c]
if host_system == 'windows'
gmodule_win_rc = configure_file(
input: 'gmodule.rc.in',