[glib: 1/2] gi: expose some files as variable for gobject-introspection
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] gi: expose some files as variable for gobject-introspection
- Date: Fri, 28 Jan 2022 16:44:21 +0000 (UTC)
commit b1ed9907c2f6a442e6bf196381da6be3cdadd5f1
Author: Andoni Morales Alastruey <amorales fluendo com>
Date: Fri Jan 28 14:54:22 2022 +0100
gi: expose some files as variable for gobject-introspection
see:
https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/313
glib/meson.build | 6 +++++-
gmodule/meson.build | 9 +++++++--
gobject/meson.build | 4 ++++
3 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/glib/meson.build b/glib/meson.build
index 12375d96f..6869a722d 100644
--- a/glib/meson.build
+++ b/glib/meson.build
@@ -1,4 +1,4 @@
-configure_file(input : 'glibconfig.h.in', output : 'glibconfig.h',
+glibconfig_h = configure_file(input : 'glibconfig.h.in', output : 'glibconfig.h',
install_dir : join_paths(get_option('libdir'), 'glib-2.0/include'),
configuration : glibconfig_conf)
@@ -120,6 +120,10 @@ glib_headers = files(
)
install_headers(glib_headers, subdir : 'glib-2.0')
+# Expose as variable to be used by gobject-introspection
+# when it includes GLib as a subproject
+glib_unix_h = files('glib-unix.h')
+
glib_deprecated_headers = files(
'deprecated/gallocator.h',
'deprecated/gcache.h',
diff --git a/gmodule/meson.build b/gmodule/meson.build
index 7e007a87e..f0e7e12a1 100644
--- a/gmodule/meson.build
+++ b/gmodule/meson.build
@@ -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',
diff --git a/gobject/meson.build b/gobject/meson.build
index 018e84d61..db2baecf1 100644
--- a/gobject/meson.build
+++ b/gobject/meson.build
@@ -117,6 +117,10 @@ glib_enumtypes_c = custom_target('glib_enumtypes_c',
glib_enumtypes_dep = declare_dependency(sources : [glib_enumtypes_h])
+# Expose as variable to be used by gobject-introspection
+# when it includes GLib as a subproject
+glib_types_h = files('glib-types.h')
+
libgobject = library('gobject-2.0',
gobject_dtrace_obj, gobject_dtrace_hdr, glib_enumtypes_h, glib_enumtypes_c,
sources : gobject_sources,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]