aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-04-29 11:54:42 -0500
committerTed Gould <ted@gould.cx>2010-04-29 11:54:42 -0500
commit3ef5fec331863cb0f079a109cd1eaa0410c40b09 (patch)
tree81f6922390ca8298d3b796856c232c439c6645c4 /src
parentba1fd3904b920d017b532a0e1ff2ba4941cdb47d (diff)
downloadayatana-indicator-application-3ef5fec331863cb0f079a109cd1eaa0410c40b09.tar.gz
ayatana-indicator-application-3ef5fec331863cb0f079a109cd1eaa0410c40b09.tar.bz2
ayatana-indicator-application-3ef5fec331863cb0f079a109cd1eaa0410c40b09.zip
Building the GIR file
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index d8599d8..a1d018b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -142,3 +142,37 @@ BUILT_SOURCES += \
CLEANFILES += $(BUILT_SOURCES)
EXTRA_DIST += $(DBUS_SPECS)
+
+#########################
+# GObject Introsepction
+#########################
+
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS =
+INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
+INTROSPECTION_COMPILER_ARGS = --includedir=$(builddir)
+
+if HAVE_INTROSPECTION
+
+introspection_sources = $(libappindicatorinclude_HEADERS)
+
+AppIndicator-0.1.gir: libappindicator.la
+AppIndicator_0_1_gir_INCLUDES = \
+ GObject-2.0 \
+ Gtk-2.0
+AppIndicator_0_1_gir_CFLAGS = $(INDICATOR_CFLAGS)
+AppIndicator_0_1_gir_LIBS = libappindicator.la
+AppIndicator_0_1_gir_FILES = $(addprefix $(srcdir)/, $(introspection_sources))
+
+INTROSPECTION_GIRS += AppIndicator-0.1.gir
+
+girdir = $(datadir)/gir-1.0
+gir_DATA = $(INTROSPECTION_GIRS)
+
+typelibdir = $(libdir)/girepository-1.0
+typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+
+CLEANFILES += $(gir_DATA) $(typelib_DATA)
+
+endif
+