summaryrefslogtreecommitdiff
path: root/plugins/media-keys/cut-n-paste/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/media-keys/cut-n-paste/Makefile.am')
-rw-r--r--plugins/media-keys/cut-n-paste/Makefile.am34
1 files changed, 28 insertions, 6 deletions
diff --git a/plugins/media-keys/cut-n-paste/Makefile.am b/plugins/media-keys/cut-n-paste/Makefile.am
index bc59a10..5d8dc4b 100644
--- a/plugins/media-keys/cut-n-paste/Makefile.am
+++ b/plugins/media-keys/cut-n-paste/Makefile.am
@@ -4,16 +4,24 @@ noinst_LTLIBRARIES = libgvc.la
INCLUDES = \
$(WARN_CFLAGS) \
- $(VOLUME_CONTROL_CFLAGS) \
- $(PULSE_CFLAGS) \
$(NULL)
libgvc_la_LIBADD = \
- $(VOLUME_CONTROL_LIBS) \
- $(PULSE_LIBS) \
$(NULL)
libgvc_la_SOURCES = \
+ $(NULL)
+
+if HAVE_PULSE
+INCLUDES += \
+ $(VOLUME_CONTROL_CFLAGS) \
+ $(PULSE_CFLAGS)
+
+libgvc_la_LIBADD += \
+ $(VOLUME_CONTROL_LIBS) \
+ $(PULSE_LIBS)
+
+libgvc_la_SOURCES +=
gvc-mixer-stream.h \
gvc-mixer-stream.c \
gvc-channel-map.h \
@@ -31,8 +39,22 @@ libgvc_la_SOURCES = \
gvc-mixer-event-role.h \
gvc-mixer-event-role.c \
gvc-mixer-control.h \
- gvc-mixer-control.c \
- $(NULL)
+ gvc-mixer-control.c
+endif
+
+if HAVE_GSTREAMER
+INCLUDES += \
+ $(SETTINGS_PLUGIN_CFLAGS) \
+ $(AM_CFLAGS) \
+ $(GST_CFLAGS)
+
+libgvc_la_LIBADD += \
+ $(GST_LIBS)
+
+libgvc_la_SOURCES += \
+ gvc-gstreamer-acme-vol.c \
+ gvc-gstreamer-acme-vol.h
+endif
MAINTAINERCLEANFILES = \
*~ \