[rygel] librenderer: Include API version and so versioning



commit 0a1daf4eaeaede18fbcb411f7ab0edd60c7600c8
Author: Jens Georg <mail jensge org>
Date:   Fri Jun 22 16:05:51 2012 +0200

    librenderer: Include API version and so versioning

 examples/Makefile.am            |    2 +-
 src/plugins/playbin/Makefile.am |   15 +++++++++------
 2 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 25309a1..51cb4b0 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -7,5 +7,5 @@ AM_CFLAGS += \
 noinst_PROGRAMS = standalone-renderer
 standalone_renderer_SOURCES = standalone-renderer.c
 standalone_renderer_LDADD = \
-	$(top_builddir)/src/plugins/playbin/librygel-renderer.la \
+	$(top_builddir)/src/plugins/playbin/librygel-renderer-1.0.la \
 	$(RYGEL_COMMON_LIBS)
diff --git a/src/plugins/playbin/Makefile.am b/src/plugins/playbin/Makefile.am
index 8c9b4ff..9aae44c 100644
--- a/src/plugins/playbin/Makefile.am
+++ b/src/plugins/playbin/Makefile.am
@@ -1,23 +1,26 @@
 include ../../../common.am
 
-lib_LTLIBRARIES = librygel-renderer.la
+lib_LTLIBRARIES = librygel-renderer-1.0.la
 
-librygel_renderer_la_SOURCES = \
+LIBRYGEL_RENDERER_VERSION=0:0:0
+
+librygel_renderer_1_0_la_SOURCES = \
 	rygel-playbin-player.vala \
 	rygel-playbin-plugin.vala \
 	rygel-playbin-renderer.vala
 
-librygel_renderer_la_VALAFLAGS = \
+librygel_renderer_1_0_la_VALAFLAGS = \
 	-H rygel-renderer.h --library=rygel-renderer-1.0 \
 	$(RYGEL_COMMON_PLUGIN_VALAFLAGS)
-librygel_renderer_la_LIBADD = $(RYGEL_COMMON_LIBS)
+librygel_renderer_1_0_la_LIBADD = $(RYGEL_COMMON_LIBS)
+librygel_renderer_1_0_la_LDFLAGS = -version-info $(LIBRYGEL_RENDERER_VERSION)
 
-rygel-renderer.h rygel-renderer-1.0.vapi: librygel_renderer_la_vala.stamp
+rygel-renderer.h rygel-renderer-1.0.vapi: librygel_renderer_1_0_la_vala.stamp
 
 plugin_LTLIBRARIES = librygel-playbin.la
 
 librygel_playbin_la_SOURCES = rygel-module.vala rygel-renderer-1.0.vapi
 librygel_playbin_la_CFLAGS = $(AM_CFLAGS) -DG_LOG_DOMAIN='"Playbin"'
 librygel_playbin_la_VALAFLAGS = $(RYGEL_COMMON_PLUGIN_VALAFLAGS)
-librygel_playbin_la_LIBADD = $(RYGEL_COMMON_LIBS) librygel-renderer.la
+librygel_playbin_la_LIBADD = $(RYGEL_COMMON_LIBS) librygel-renderer-1.0.la
 librygel_playbin_la_LDFLAGS = $(RYGEL_PLUGIN_LINKER_FLAGS)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]