mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
add mpris dbus plugin, untested!
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1025 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
26
plugins.m4
26
plugins.m4
@@ -54,8 +54,8 @@ for plugin in $plugins; do
|
||||
AC_MSG_RESULT(
|
||||
[available plugins:]
|
||||
[ apm,cpuinfo,diskstats,dvb,exec,file,gps,i2c_sensors,iconv,imon,isdn,kvv,]
|
||||
[ loadavg,meminfo,mpd,mysql,netdev,netinfo,pop3,ppp,proc_stat,sample,seti,]
|
||||
[ statfs,uname,uptime,wireless,xmms])
|
||||
[ loadavg,meminfo,mpd,mpris_dbus,mysql,netdev,netinfo,pop3,ppp,proc_stat,]
|
||||
[ sample,seti,statfs,uname,uptime,wireless,xmms])
|
||||
AC_MSG_ERROR([run ./configure --with-plugins=...])
|
||||
;;
|
||||
all)
|
||||
@@ -78,6 +78,7 @@ for plugin in $plugins; do
|
||||
PLUGIN_LOADAVG="yes"
|
||||
PLUGIN_MEMINFO="yes"
|
||||
PLUGIN_MPD="yes"
|
||||
PLUGIN_MPRIS_DBUS="yes"
|
||||
PLUGIN_MYSQL="yes"
|
||||
PLUGIN_NETDEV="yes"
|
||||
PLUGIN_NETINFO="yes"
|
||||
@@ -151,6 +152,9 @@ for plugin in $plugins; do
|
||||
mpd)
|
||||
PLUGIN_MPD=$val
|
||||
;;
|
||||
mpris_dbus)
|
||||
PLUGIN_MPRIS_DBUS=$val
|
||||
;;
|
||||
mysql)
|
||||
PLUGIN_MYSQL=$val
|
||||
;;
|
||||
@@ -365,6 +369,24 @@ if test "$PLUGIN_MPD" = "yes"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# MPRIS D-Bus
|
||||
if test "$PLUGIN_MPRIS_DBUS" = "yes"; then
|
||||
AC_CHECK_HEADERS(dbus/dbus.h, [has_dbus_header="true"], [has_dbus_header="false"])
|
||||
if test "$has_dbus_header" = "true"; then
|
||||
AC_CHECK_LIB(dbus-1, dbus_bus_get, [has_libdbus1_lib="true"], [has_libdbus1_lib="false"])
|
||||
if test "$has_libdbus1_lib" = "true"; then
|
||||
PLUGINS="$PLUGINS plugin_mpris_dbus.o"
|
||||
PLUGINLIBS="$PLUGINLIBS -ldbus-1"
|
||||
AC_DEFINE(PLUGIN_MPRIS_DBUS,1,[mpris_dbus plugin])
|
||||
else
|
||||
AC_MSG_WARN(libdbus-1 lib not found: mpris_dbus plugin disabled)
|
||||
fi
|
||||
else
|
||||
AC_MSG_WARN(dbus/dbus.h header not found: mpris_dbus plugin disabled)
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# MySQL
|
||||
if test "$PLUGIN_MYSQL" = "yes"; then
|
||||
AC_CHECK_HEADERS(mysql/mysql.h, [has_mysql_header="true"], [has_mysql_header="false"])
|
||||
|
||||
Reference in New Issue
Block a user