[libgit2-glib/wip/inigomartinez/meson: 10/13] meson: Remove unnecessary introspection options
- From: Iñigo Martínez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib/wip/inigomartinez/meson: 10/13] meson: Remove unnecessary introspection options
- Date: Fri, 19 Jan 2018 21:11:25 +0000 (UTC)
commit 75713a5a09fd0f2eb2df461af1b960f54f54d987
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Fri Jan 19 16:44:25 2018 +0100
meson: Remove unnecessary introspection options
Since meson 0.43, the `generate_gir` function has a parameter
called `header` which can be used as the name of the header to be
included by the library.
This patch uses this parameter to avoid using the `--include-header`
separately.
The `--identifier-prefix` has also been removed because the
`identifier_prefix` from `generate_gir` is already used.
https://bugzilla.gnome.org/show_bug.cgi?id=792699
libgit2-glib/meson.build | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/libgit2-glib/meson.build b/libgit2-glib/meson.build
index 8362f25..55918f6 100644
--- a/libgit2-glib/meson.build
+++ b/libgit2-glib/meson.build
@@ -230,10 +230,6 @@ libgit2_glib_dep = declare_dependency(link_with: libgit2_glib,
sources: enum_types[1])
if enable_gir
- gir_extra_args = [
- '--identifier-prefix=Ggit',
- '--c-include=ggit.h'
- ]
gnome.generate_gir(libgit2_glib,
sources: headers + sources,
namespace: 'Ggit',
@@ -241,6 +237,6 @@ if enable_gir
identifier_prefix: 'Ggit',
symbol_prefix: 'ggit',
includes: [ 'GObject-2.0', 'GLib-2.0', 'Gio-2.0' ],
- install: true,
- extra_args: gir_extra_args)
+ header: ggit_h,
+ install: true)
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]