]> code.delx.au - pulseaudio/commit
vala: move GLibMainLoop class into separate file to fix linker errors
authorAlexander Kurtz <kurtz.alex@googlemail.com>
Sat, 26 Mar 2011 11:26:46 +0000 (11:26 +0000)
committerColin Guthrie <cguthrie@mandriva.org>
Sat, 26 Mar 2011 11:26:57 +0000 (11:26 +0000)
commit9defe846e7d46c95aa024ac24fc4c4358d85bea3
tree8b9d2ccbe4ec455e63f3c0567c3dd45dc0eefa7f
parent8dc0df05383e12bb42511f5a732ee636d1a66603
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)
Makefile.am
vala/libpulse-mainloop-glib.deps [new file with mode: 0644]
vala/libpulse-mainloop-glib.vapi [new file with mode: 0644]
vala/libpulse.vapi