[gnome-builder] egg: generate vapi and gir for Egg



commit aaba17571cc61d05c956163728b95f2f13bca792
Author: Christian Hergert <christian hergert me>
Date:   Tue Sep 29 18:43:09 2015 -0700

    egg: generate vapi and gir for Egg
    
    Still install this to a private directory like we do for everything else.

 contrib/egg/Makefile.am |   74 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/contrib/egg/Makefile.am b/contrib/egg/Makefile.am
index 42f3d18..403f19e 100644
--- a/contrib/egg/Makefile.am
+++ b/contrib/egg/Makefile.am
@@ -1,3 +1,7 @@
+CLEANFILES =
+DISTCLEANFILES =
+EXTRA_DIST =
+
 pkglibdir = $(libdir)/gnome-builder
 pkglib_LTLIBRARIES = libegg-private.la
 
@@ -12,6 +16,7 @@ libegg_private_la_SOURCES = \
        egg-frame-source.h \
        egg-heap.c \
        egg-heap.h \
+       egg-private.h \
        egg-search-bar.c \
        egg-search-bar.h \
        egg-settings-sandwich.c \
@@ -37,4 +42,73 @@ libegg_private_la_LIBADD = \
        $(SHM_LIB) \
        $(NULL)
 
+
+if HAVE_INTROSPECTION
+-include $(INTROSPECTION_MAKEFILE)
+
+INTROSPECTION_GIRS =
+INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all
+INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
+
+introspection_sources = \
+       egg-animation.c \
+       egg-animation.h \
+       egg-binding-group.c \
+       egg-binding-group.h \
+       egg-search-bar.c \
+       egg-search-bar.h \
+       egg-settings-sandwich.c \
+       egg-settings-sandwich.h \
+       egg-signal-group.c \
+       egg-signal-group.h \
+       egg-state-machine.c \
+       egg-state-machine.h \
+       egg-task-cache.c \
+       egg-task-cache.h \
+       $(NULL)
+
+Egg-1.0.gir: libegg-private.la
+Egg_1_0_gir_INCLUDES = Gio-2.0 Gdk-3.0 Gtk-3.0
+Egg_1_0_gir_CFLAGS = $(libegg_private_la_CFLAGS)
+Egg_1_0_gir_LIBS = libegg-private.la
+Egg_1_0_gir_FILES = $(introspection_sources)
+Egg_1_0_gir_SCANNERFLAGS = \
+       --c-include="egg-private.h" \
+       -n Egg \
+       $(NULL)
+INTROSPECTION_GIRS += Egg-1.0.gir
+
+girdir = $(datadir)/gnome-builder/gir-1.0
+dist_gir_DATA = $(INTROSPECTION_GIRS)
+
+typelibdir = $(pkglibdir)/girepository-1.0
+typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+
+CLEANFILES += $(dist_gir_DATA) $(typelib_DATA)
+endif
+
+
+if ENABLE_VAPIGEN
+-include $(VAPIGEN_MAKEFILE)
+
+egg-private.vapi: Egg-1.0.gir
+
+VAPIGEN_VAPIS = egg-private.vapi
+
+egg_private_vapi_DEPS = gio-2.0 gtk+-3.0
+egg_private_vapi_METADATADIRS = $(srcdir)
+egg_private_vapi_FILES = Egg-1.0.gir
+
+egg-private.deps: Makefile
+       $(AM_V_GEN) echo $(libegg_private_vapi_DEPS) | tr ' ' '\n' > $@
+
+vapidir = $(VAPIGEN_VAPIDIR)
+vapi_DATA = $(VAPIGEN_VAPIS) $(VAPIGEN_VAPIS:.vapi=.deps)
+
+EXTRA_DIST += libegg-private.deps
+
+DISTCLEANFILES += $(vapi_DATA)
+endif
+
+
 -include $(top_srcdir)/git.mk


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