[gssdp/wip/meson: 5/17] meson: Set up GObject-Introspection
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp/wip/meson: 5/17] meson: Set up GObject-Introspection
- Date: Fri, 26 Oct 2018 14:45:13 +0000 (UTC)
commit f73d1a362c34f9564150f010a1a34a0104a6499b
Author: Jens Georg <mail jensge org>
Date: Fri Oct 26 16:43:38 2018 +0200
meson: Set up GObject-Introspection
Signed-off-by: Jens Georg <mail jensge org>
libgssdp/meson.build | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/libgssdp/meson.build b/libgssdp/meson.build
index 627d9dd..a1a2399 100644
--- a/libgssdp/meson.build
+++ b/libgssdp/meson.build
@@ -13,18 +13,21 @@ headers = [
]
install_headers(headers, subdir : 'gssdp-1.0/libgssdp')
-sources = [
+introspection_sources = headers + [
'gssdp-client.c',
'gssdp-error.c',
+ 'gssdp-error.h',
'gssdp-resource-browser.c',
- 'gssdp-resource-group.c',
+ 'gssdp-resource-group.c'
+ ] + enums
+sources = introspection_sources + [
'gssdp-client-private.h',
'gssdp-protocol.h',
'gssdp-socket-source.c',
'gssdp-socket-source.h',
'gssdp-socket-functions.c',
'gssdp-socket-functions.h'
- ] + enums
+ ]
if host_machine.system() == 'windows'
sources += 'gssdp-net-win32.c'
@@ -46,3 +49,14 @@ libgssdp = shared_library('gssdp-1.2', sources,
dependencies : deps,
include_directories : include_directories('..'),
install : true)
+
+gnome.generate_gir(libgssdp,
+ sources : introspection_sources,
+ namespace : 'GSSDP',
+ nsversion : '1.2',
+ symbol_prefix : 'gssdp',
+ identifier_prefix : 'GSSDP',
+ export_packages : 'gssdp-1.2',
+ includes : ['GObject-2.0', 'Gio-2.0', 'Soup-2.4'],
+ install: true
+ )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]