[json-glib] build: Include enum-types.[ch] in the introspection sources



commit bdb27fb70a831e14d569aaff9d7c452978da2236
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu May 29 09:52:03 2014 +0100

    build: Include enum-types.[ch] in the introspection sources
    
    Otherwise g-ir-scanner won't pick the types up, and will not notice that
    the error enumerations have an associated error domain.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730917

 json-glib/Makefile.am |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/json-glib/Makefile.am b/json-glib/Makefile.am
index 66d6936..28638b2 100644
--- a/json-glib/Makefile.am
+++ b/json-glib/Makefile.am
@@ -120,12 +120,19 @@ json_glib_format_LDADD = $(JSON_LIBS) libjson-glib-1.0.la
 if HAVE_INTROSPECTION
 INTROSPECTION_GIRS = Json-1.0.gir
 
+introspection_source = \
+       $(source_c) \
+       $(source_h) \
+       $(top_builddir)/json-glib/json-enum-types.h \
+       $(top_builddir)/json-glib/json-enum-types.c \
+       $(top_builddir)/json-glib/json-version.h
+
 Json-1.0.gir: libjson-glib-1.0.la Makefile
 
 Json_1_0_gir_NAMESPACE = Json
 Json_1_0_gir_VERSION = 1.0
 Json_1_0_gir_LIBS = libjson-glib-1.0.la
-Json_1_0_gir_FILES = $(source_h) $(source_c) $(top_builddir)/json-glib/json-version.h
+Json_1_0_gir_FILES = $(introspection_source)
 Json_1_0_gir_CFLAGS = -DJSON_COMPILATION=1 -I$(top_srcdir) -I$(top_builddir) $(JSON_CFLAGS)
 Json_1_0_gir_INCLUDES = GObject-2.0 Gio-2.0
 Json_1_0_gir_SCANNERFLAGS = --warn-all --pkg-export json-glib-1.0 --c-include "json-glib/json-glib.h"


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