playbin: Fix parallel build in playbin plug-in
authorJens Georg <mail@jensge.org>
Fri, 22 Jun 2012 10:34:14 +0000 (12:34 +0200)
committerJens Georg <mail@jensge.org>
Tue, 3 Jul 2012 07:53:49 +0000 (09:53 +0200)
Automake's vala integration does not recognize local vapi's as
dependencies so we put it as a source file. This is also supported and
helps with the dependencies.

src/plugins/playbin/Makefile.am

index 9f48800..dd82d58 100644 (file)
@@ -12,11 +12,13 @@ librygel_renderer_la_VALAFLAGS = \
        $(RYGEL_COMMON_PLUGIN_VALAFLAGS)
 librygel_renderer_la_LIBADD = $(RYGEL_COMMON_LIBS)
 
+rygel-renderer.h rygel-renderer-1.0.vapi: librygel_renderer_la_vala.stamp
+
 plugin_LTLIBRARIES = librygel-playbin.la
 
 AM_CFLAGS += -DG_LOG_DOMAIN='"Playbin"'
 
-librygel_playbin_la_SOURCES = rygel-module.vala
-librygel_playbin_la_VALAFLAGS = $(RYGEL_COMMON_PLUGIN_VALAFLAGS) --pkg rygel-renderer-1.0 --vapidir=$(builddir)
+librygel_playbin_la_SOURCES = rygel-module.vala rygel-renderer-1.0.vapi
+librygel_playbin_la_VALAFLAGS = $(RYGEL_COMMON_PLUGIN_VALAFLAGS)
 librygel_playbin_la_LIBADD = $(RYGEL_COMMON_LIBS) librygel-renderer.la
 librygel_playbin_la_LDFLAGS = $(RYGEL_PLUGIN_LINKER_FLAGS)