[vlc-devel] [PATCH 4/4] Enable Media Library Building

Rafaël Carré rafael.carre at gmail.com
Mon Oct 18 12:37:22 CEST 2010


On Mon, 18 Oct 2010 01:12:23 +0530
Srikanth Raju <srikiraju at gmail.com> wrote:

> From 4e6b2e44fe3ae62d9148502093ce6d4ed8c4d9c9 Mon Sep 17 00:00:00 2001
> From: Srikanth Raju <srikiraju at gmail.com>
> Date: Mon, 18 Oct 2010 01:05:33 +0530
> Subject: [PATCH 4/4] Enable Media Library Building
> 
> ---
>  configure.ac                     |   15 +++++++++++++++
>  modules/LIST                     |    1 +
>  modules/Makefile.am              |    1 +
>  modules/media_library/Modules.am |    9 +++++++++
>  4 files changed, 26 insertions(+), 0 deletions(-)
>  create mode 100644 modules/media_library/Modules.am
> 
> diff --git a/configure.ac b/configure.ac
> index d227aa3..0c23699 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -4173,6 +4173,20 @@ else
>  fi
>  AM_CONDITIONAL([HAVE_SQLITE], [test "${enable_sqlite}" != "no"])
>  
> +dnl
> +dnl media library
> +dnl
> +AC_ARG_ENABLE(media-library, [--enable-media-library media library
> (default disabled)]) +if test "${enable_media_library}" == "yes"
                                                          ^^
This is C, not shell; although GNU bash accepts it   -----/

> +then

> +  if test "${enable_sqlite}" != "yes"
> +  then
> +    AC_MSG_ERROR([SQLite module is required for the media library])
> +  fi

This block could fit on one line (i prefer this way but do as you feel)
test "${enable_sqlite}" != "yes" && AC_MSG_ERROR...



> +  AC_DEFINE([MEDIA_LIBRARY], 1, [Define if you want to use the VLC
> media library])
> +  VLC_ADD_CPPFLAGS([qt4],"-DMEDIA_LIBRARY")
> +  VLC_ADD_PLUGIN([media_library])
> +fi
>  


-- 
✍ Rafaël Carré ☺
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20101018/edf70639/attachment.sig>


More information about the vlc-devel mailing list