Re: [PATCH core 07/10] build: libgrlnet introspection



On 04/10/10 21:11, Víctor Manuel Jáquez Leal wrote:
> Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez igalia com>
> ---
>  libs/net/Makefile.am |   30 ++++++++++++++++++++++++++++++
>  1 files changed, 30 insertions(+), 0 deletions(-)
> 
> diff --git a/libs/net/Makefile.am b/libs/net/Makefile.am
> index 16a92ba..86163bc 100644
> --- a/libs/net/Makefile.am
> +++ b/libs/net/Makefile.am
> @@ -49,3 +49,33 @@ MAINTAINERCLEANFILES =	\
>  	*~
>  
>  DISTCLEANFILES = $(MAINTAINERCLEANFILES)
> +CLEANFILES =
> +
> +# introspection support
> +if HAVE_INTROSPECTION
> +-include $(INTROSPECTION_MAKEFILE)
> +gir_headers = $(patsubst %,$(srcdir)/%, $(libgrlnet_ GRL_MAJORMINOR@include_HEADERS))
> +gir_sources = $(patsubst %,$(srcdir)/%, $(libgrlnet_ GRL_MAJORMINOR@_la_SOURCES))
> +
> +INTROSPECTION_GIRS =
> +
> +introspection_sources =	\
> +	$(gir_headers)	\
> +	$(gir_sources)
> +
> +GrlNet- GRL_MAJORMINOR@.gir: libgrlnet- GRL_MAJORMINOR@.la
> +GrlNet_0_1_gir_SCANNERFLAGS = --warn-all -v

We need to bump the required introspection version to be able to use
--warn-all

> +GrlNet_0_1_gir_INCLUDES = GObject-2.0 Gio-2.0
> +GrlNet_0_1_gir_CFLAGS = -I$(top_srcdir)/libs $(libgrlnet_ GRL_MAJORMINOR@_la_CFLAGS)
> +GrlNet_0_1_gir_LIBS = libgrlnet- GRL_MAJORMINOR@.la
> +GrlNet_0_1_gir_FILES = $(introspection_sources)
> +INTROSPECTION_GIRS += GrlNet- GRL_MAJORMINOR@.gir
> +
> +girdir = $(datadir)/gir-1.0
> +dist_gir_DATA = $(INTROSPECTION_GIRS)
> +
> +typelibdir = $(libdir)/girepository-1.0
> +typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
> +
> +CLEANFILES += $(dist_gir_DATA) $(typelib_DATA)
> +endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]