diff src/audacious/Makefile @ 2694:c2b82432c1b6 trunk

[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
author magma
date Sat, 05 May 2007 15:37:54 -0700
parents ecfb79d60c3a
children fa67680f3a29
line wrap: on
line diff
--- a/src/audacious/Makefile	Wed May 02 10:34:59 2007 -0700
+++ b/src/audacious/Makefile	Sat May 05 15:37:54 2007 -0700
@@ -5,6 +5,7 @@
 SUBDIRS = widgets glade images ui
 
 OBJECTIVE_BINS = audacious
+OBJECTIVE_LIBS_NOINST += $(DBUS_BINDINGS_H)
 
 LDFLAGS += $(AUDLDFLAGS)
 
@@ -14,6 +15,7 @@
 	$(samplerate_LIBS) \
 	$(CHARDET_LIBS) \
 	$(GTK_LIBS) \
+	$(DBUS_LIBS) \
 	$(MOWGLI_LIBS) \
 	$(LIBGLADE_LIBS) \
 	$(REGEX_LIBS) \
@@ -25,6 +27,7 @@
 	$(LIBGLADE_CFLAGS) \
 	$(BEEP_DEFINES) \
 	$(ARCH_DEFINES) \
+	$(DBUS_CFLAGS) \
 	$(samplerate_CFLAGS) \
 	$(REGEX_CFLAGS) \
 	-D_AUDACIOUS_CORE \
@@ -55,6 +58,7 @@
 SOURCES = \
 	build_stamp.c \
 	controlsocket.c \
+	$(DBUS_C) \
 	dnd.c \
 	dock.c \
 	effect.c \
@@ -119,4 +123,7 @@
 	$(CXX) $(LDFLAGS) $(OBJECTS) $(LDADD) -o $@ 
 	@printf "%10s     %-20s\n" LINK $@
 
+dbus-bindings.h:
+	$(DBUS_BINDING_TOOL) --mode=glib-server --prefix=audacious_remote objects.xml > $@
+
 OBJECTIVE_DATA = audacious.desktop:$(datadir)/applications