[gssdp/wip/meson: 5/12] meson: Set up GObject-Introspection
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp/wip/meson: 5/12] meson: Set up GObject-Introspection
- Date: Sun, 30 Apr 2017 05:07:23 +0000 (UTC)
commit 8fc92f00a9d9636a5bbba30ad650e7af2140f868
Author: Jens Georg <mail jensge org>
Date: Sun Apr 23 17:06:15 2017 +0200
meson: Set up GObject-Introspection
Signed-off-by: Jens Georg <mail jensge org>
libgssdp/meson.build | 20 +++++++++++++++++---
1 files 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]