Commit eeb1d41b authored by Srikanth Raju's avatar Srikanth Raju Committed by Rémi Denis-Courmont

Sqlite Module

This is a sql module for VLC which connects the SQLite library to VLC.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 2aa8e5b6
...@@ -4811,6 +4811,42 @@ then ...@@ -4811,6 +4811,42 @@ then
AC_DEFINE([UPDATE_CHECK], 1, [Define if you want to use the VLC update mechanism]) AC_DEFINE([UPDATE_CHECK], 1, [Define if you want to use the VLC update mechanism])
fi fi
dnl
dnl SQLite
dnl
AC_ARG_ENABLE(sqlite,
[ --enable-sqlite SQLite (default disabled)],,
[enable_sqlite = "no"])
AC_ARG_WITH(sqlite,
[ --with-sqlite=PATH sqlite path linking])
if test "${SYS}" != "darwin"; then
PKG_ENABLE_MODULES_VLC([SQLITE], [], [sqlite3], [sqlite3], [auto])
else
if test "${enable_sqlite}" != "no"
then
AC_CHECK_HEADERS(sqlite3.h, [
VLC_ADD_PLUGIN([sqlite])
if test "${with_sqlite}" != "no" -a -n "${with_sqlite}"; then
AC_MSG_CHECKING(existence of sqlite directory in ${with_sqlite})
real_sqlite="`cd ${with_sqlite} 2>/dev/null && pwd`"
if test -z "${real_sqlite}"
then
dnl The given directory can't be found
AC_MSG_RESULT(no)
AC_MSG_ERROR([cannot cd to ${with_sqlite}])
fi
VLC_ADD_CFLAGS([sqlite],[-I${with_sqlite}/include])
VLC_ADD_LIBS([sqlite], [-L${with_sqlite}/lib -lsqlite3])
AC_MSG_RESULT(yes)
else
VLC_ADD_LIBS([sqlite], [-lsqlite3])
fi
AC_DEFINE([SQLITE_MODULE], 1, [Define if you want to use SQLite module]) ],
AC_MSG_ERROR([sqlite3 is required for sqlite module]) )
fi
fi
AM_CONDITIONAL([HAVE_SQLITE], [test "${enable_sqlite}" != "no"])
dnl dnl
dnl Endianness check dnl Endianness check
......
...@@ -289,6 +289,7 @@ $Id$ ...@@ -289,6 +289,7 @@ $Id$
* spdif_mixer: dummy audio mixer for the S/PDIF output * spdif_mixer: dummy audio mixer for the S/PDIF output
* speex: a speex audio decoder/packetizer using the libspeex library * speex: a speex audio decoder/packetizer using the libspeex library
* spudec: RLE DVD subtitles decoder * spudec: RLE DVD subtitles decoder
* sqlite: manage an SQLite database
* stats: Stats encoder function * stats: Stats encoder function
* stream_filter_rar: Stream filter to read inside Rar files * stream_filter_rar: Stream filter to read inside Rar files
* stream_filter_record: record any stream instantly * stream_filter_record: record any stream instantly
......
...@@ -21,6 +21,7 @@ SOURCES_audioscrobbler = audioscrobbler.c ...@@ -21,6 +21,7 @@ SOURCES_audioscrobbler = audioscrobbler.c
SOURCES_inhibit = inhibit.c SOURCES_inhibit = inhibit.c
SOURCES_xdg_screensaver = xdg-screensaver.c SOURCES_xdg_screensaver = xdg-screensaver.c
SOURCES_osso = osso.c SOURCES_osso = osso.c
SOURCES_sqlite = sqlite.c
libvlc_LTLIBRARIES += \ libvlc_LTLIBRARIES += \
liblogger_plugin.la liblogger_plugin.la
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment