aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2012-12-14 09:58:39 +1300
committerRobert Ancell <robert.ancell@canonical.com>2012-12-14 09:58:39 +1300
commit6c9a6684a2bd7fb990831175bac8681669e27080 (patch)
treeb6f3e4ed08a7eb78d2b1ed1b76ae286424fed330 /src/Makefile.am
parent21040fcad5f3a0a808d6a0ac2a9beb4d9e595673 (diff)
downloadayatana-ido-6c9a6684a2bd7fb990831175bac8681669e27080.tar.gz
ayatana-ido-6c9a6684a2bd7fb990831175bac8681669e27080.tar.bz2
ayatana-ido-6c9a6684a2bd7fb990831175bac8681669e27080.zip
Add introspection and Vala support to IDO
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 017874f..e14efbf 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,3 +1,5 @@
+CLEANFILES =
+
VER=3
lib_LTLIBRARIES = libido3-0.1.la
@@ -94,3 +96,54 @@ DISTCLEANFILES = \
idotypebuiltins.h \
idotypebuiltins.c
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS =
+INTROSPECTION_SCANNER_ARGS = \
+ --symbol-prefix=ido \
+ --warn-all \
+ --identifier-prefix=Ido
+
+if HAVE_INTROSPECTION
+
+Ido3-0.1.gir: libido3-0.1.la
+Ido3_0_1_gir_INCLUDES = Gtk-3.0
+Ido3_0_1_gir_CFLAGS =
+Ido3_0_1_gir_LIBS = libido3-0.1.la
+Ido3_0_1_gir_FILES = \
+ idocalendarmenuitem.h \
+ idoentrymenuitem.h \
+ idomessagedialog.h \
+ idorange.h \
+ idoscalemenuitem.h \
+ idoswitchmenuitem.h \
+ idotimeline.h \
+ $(libido_0_1_la_SOURCES)
+Ido3_0_1_gir_NAMESPACE = Ido3
+Ido3_0_1_gir_VERSION = 0.1
+Ido3_0_1_gir_SCANNER_FLAGS = $(INTROSPECTION_SCANNER_ARGS)
+
+INTROSPECTION_GIRS += Ido3-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
+
+if HAVE_INTROSPECTION
+
+vapidir = $(datadir)/vala/vapi
+vapi_DATA = Ido3-0.1.vapi
+
+Ido3-0.1.vapi: Ido3-0.1.gir
+ $(VALA_API_GEN) --library=Ido3-0.1 \
+ --pkg gtk+-3.0 \
+ $<
+
+CLEANFILES += $(vapi_DATA)
+
+endif