diff options
author | Ted Gould <ted@gould.cx> | 2010-02-26 12:10:12 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-26 12:10:12 -0600 |
commit | 00cc2d7a9dcd132e0a58daf84eb0008102dbd691 (patch) | |
tree | 0faf3957a541f69e093608a024380f07351cb7db | |
parent | e903caad15ee840224010d237dc1cd81fc6627fb (diff) | |
download | libdbusmenu-00cc2d7a9dcd132e0a58daf84eb0008102dbd691.tar.gz libdbusmenu-00cc2d7a9dcd132e0a58daf84eb0008102dbd691.tar.bz2 libdbusmenu-00cc2d7a9dcd132e0a58daf84eb0008102dbd691.zip |
First pass at building GIR. Still errors
-rw-r--r-- | libdbusmenu-glib/Makefile.am | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libdbusmenu-glib/Makefile.am b/libdbusmenu-glib/Makefile.am index 65ebf4c..ed523da 100644 --- a/libdbusmenu-glib/Makefile.am +++ b/libdbusmenu-glib/Makefile.am @@ -1,4 +1,6 @@ +CLEANFILES = + EXTRA_DIST = \ dbusmenu-glib.pc.in \ dbus-menu.xml \ @@ -91,3 +93,35 @@ menuitem-marshal.c: $(srcdir)/menuitem-marshal.list --prefix=_dbusmenu_menuitem_marshal $(srcdir)/menuitem-marshal.list \ > menuitem-marshal.c +######################### +# GObject Introsepction +######################### + +-include $(INTROSPECTION_MAKEFILE) +INTROSPECTION_GIRS = +INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) +INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) + +if HAVE_INTROSPECTION + +introspection_sources = $(libdbusmenu_glib_la_SOURCES) + +DbusmenuGlib-1.0.gir: libdbusmenu-glib.la +DbusmenuGlib_1_0_gir_INCLUDES = \ + GObject-2.0 +DbusmenuGlib_1_0_gir_CFLAGS = $(DBUSMENUGLIB_CFLAGS) +DbusmenuGlib_1_0_gir_LIBS = libdbusmenu-glib.la +DbusmenuGlib_1_0_gir_FILES = $(addprefix $(srcdir)/, $(introspection_sources)) + +INTROSPECTION_GIRS += DbusmenuGlib-1.0.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 + |