[vlc-commits] Build SVG decoder

Jean-Paul Saman git at videolan.org
Mon May 12 17:00:22 CEST 2014


vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Fri Mar 28 15:00:23 2014 +0100| [1f8ac012d231b3f303cec43ea5faa67f0aeef6cd] | committer: Jean-Paul Saman

Build SVG decoder

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f8ac012d231b3f303cec43ea5faa67f0aeef6cd
---

 configure.ac              |    3 ++-
 modules/codec/Makefile.am |    7 +++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 1c46cd7..af955d6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3262,9 +3262,10 @@ then
 fi
 
 dnl
-dnl  SVG module
+dnl  SVG module (text rendering and image decoding)
 dnl
 PKG_ENABLE_MODULES_VLC([SVG], [], [librsvg-2.0 >= 2.9.0], [SVG rendering library],[auto])
+PKG_ENABLE_MODULES_VLC([SVGDEC], [], [librsvg-2.0 >= 2.9.0 cairo >= 1.13.1], [SVG image decoder library],[auto])
 
 dnl
 dnl  android surface module
diff --git a/modules/codec/Makefile.am b/modules/codec/Makefile.am
index d6027fb..218bc3c 100644
--- a/modules/codec/Makefile.am
+++ b/modules/codec/Makefile.am
@@ -109,6 +109,13 @@ libjpeg_plugin_la_LIBADD = -ljpeg
 EXTRA_LTLIBRARIES += libjpeg_plugin.la
 codec_LTLIBRARIES += $(LTLIBjpeg)
 
+libsvgdec_plugin_la_SOURCES = codec/svg.c
+libsvgdec_plugin_la_CFLAGS = $(AM_CLAGS) $(CFLAGS_svgdec)
+libsvgdec_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'  $(LDFLAGS_svg)
+libsvgdec_plugin_la_LIBADD = $(LIBS_svgdec)
+EXTRA_LTLIBRARIES += libsvgdec_plugin.la
+codec_LTLIBRARIES += $(LTLIBsvgdec)
+
 libsdl_image_plugin_la_SOURCES = codec/sdl_image.c
 libsdl_image_plugin_la_CFLAGS = $(AM_CFLAGS) $(SDL_IMAGE_CFLAGS)
 libsdl_image_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'



More information about the vlc-commits mailing list