[banshee] [gst#] Handle the conditional build in the Makefile.am



commit 2b37e66d67affccfbb4031bcd8340f2e79806cd0
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Thu Jun 3 21:40:07 2010 +0200

    [gst#] Handle the conditional build in the Makefile.am
    
    If we don't do that, we always end up with a dummy
    Banshee.GStreamerSharp.dll after make.

 src/Backends/Banshee.GStreamerSharp/Makefile.am |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/Backends/Banshee.GStreamerSharp/Makefile.am b/src/Backends/Banshee.GStreamerSharp/Makefile.am
index 650f8eb..d738781 100644
--- a/src/Backends/Banshee.GStreamerSharp/Makefile.am
+++ b/src/Backends/Banshee.GStreamerSharp/Makefile.am
@@ -1,15 +1,18 @@
 ASSEMBLY = Banshee.GStreamerSharp
 TARGET = library
 LINK = $(REF_BACKEND_GSTREAMER) $(GST_SHARP_LIBS)
+INSTALL_DIR = $(BACKENDS_INSTALL_DIR)
+
 SOURCES =  \
 	Banshee.GStreamerSharp/PlayerEngine.cs
 
 RESOURCES = Banshee.GStreamerSharp.addin.xml
-INSTALL_DIR = $(BACKENDS_INSTALL_DIR)
-
-BUILD_DEFINES="-define:HAVE_GST_SHARP"
 
+if ENABLE_GST_SHARP
 include $(top_srcdir)/build/build.mk
+else
+EXTRA_DIST = $(SOURCES) $(RESOURCES)
+endif
 
 if ENABLE_GAPLESS
 BUILD_DEFINES="-define:ENABLE_GAPLESS"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]