summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorAlexander Kurtz <kurtz.alex@googlemail.com>2011-03-26 11:26:46 +0000
committerColin Guthrie <cguthrie@mandriva.org>2011-03-26 11:33:54 +0000
commit64985aa9bb46b447973f4051d065afd9035e48ca (patch)
tree90c6f84e8b6721cd78148bc3386433bc98ff1950 /Makefile.am
parentea0a2a603c970a5ae59a3b2a49ed189997c91ece (diff)
vala: move GLibMainLoop class into separate file to fix linker errors
Vala uses the name of the *.vapi file to determine the libraries to link against. Since the pa_glib_mainloop_*() functions are in a separate library (libpulse-mainloop-glib.so) the corresponding objects in the Vala bindings have to be in a separate *.vapi file. If you are compiling an app without the GLib integration you could use: $ valac --pkg=libpulse test.vala but if you do use GLib you can use: $ valac --pkg=libpulse-mainloop-glib test.vala (libpulse is a dep of the libpulse-mainloop-glib so no need to specify it explicitly)
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 3439c89b..c764f187 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,7 +29,9 @@ EXTRA_DIST = \
README \
todo \
vala/libpulse.deps \
- vala/libpulse.vapi
+ vala/libpulse.vapi \
+ vala/libpulse-mainloop-glib.deps \
+ vala/libpulse-mainloop-glib.vapi
SUBDIRS = src doxygen man po
@@ -37,7 +39,9 @@ MAINTAINERCLEANFILES =
noinst_DATA =
vapidir = $(datadir)/vala/vapi
-vapi_DATA = vala/libpulse.deps vala/libpulse.vapi
+vapi_DATA = \
+ vala/libpulse.deps vala/libpulse.vapi \
+ libpulse-mainloop-glib.deps libpulse-mainloop-glib.vapi
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libpulse.pc libpulse-simple.pc