[rhythmbox] audioscrobbler: build a separate static library for tests



commit 85c185d5dc662945f98860ea6092b2f9927dac8f
Author: Jonathan Matthew <jonathan d14n org>
Date:   Wed Jul 8 22:46:33 2015 +1000

    audioscrobbler: build a separate static library for tests
    
    automake doesn't like us pulling source files out of a different dir.

 plugins/audioscrobbler/Makefile.am |    5 +++++
 tests/Makefile.am                  |    6 ++++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/plugins/audioscrobbler/Makefile.am b/plugins/audioscrobbler/Makefile.am
index 90d92c3..1ef12ef 100644
--- a/plugins/audioscrobbler/Makefile.am
+++ b/plugins/audioscrobbler/Makefile.am
@@ -5,6 +5,7 @@ plugindatadir = $(PLUGINDATADIR)/audioscrobbler
 icondir = $(plugindatadir)/icons/hicolor/scalable/places
 
 plugin_LTLIBRARIES = libaudioscrobbler.la
+noinst_LTLIBRARIES = libaudioscrobblertest.la
 
 libaudioscrobbler_la_SOURCES = \
        rb-audioscrobbler-plugin.c                      \
@@ -27,6 +28,10 @@ libaudioscrobbler_la_SOURCES = \
        rb-audioscrobbler-play-order.c                  \
        rb-audioscrobbler-play-order.h
 
+libaudioscrobblertest_la_SOURCES = \
+       rb-audioscrobbler-entry.c                       \
+       rb-audioscrobbler-radio-track-entry-type.c
+
 libaudioscrobbler_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
 libaudioscrobbler_la_LIBTOOLFLAGS = --tag=disable-static
 libaudioscrobbler_la_LIBADD =                          \
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0d1f267..27dfbbc 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -37,10 +37,12 @@ test_rb_lib_SOURCES = \
 
 test_audioscrobbler_SOURCES = \
        test-audioscrobbler.c                                                           \
-       $(top_srcdir)/plugins/audioscrobbler/rb-audioscrobbler-entry.c                  \
-       $(top_srcdir)/plugins/audioscrobbler/rb-audioscrobbler-radio-track-entry-type.c \
        $(test_utils)
 
+test_audioscrobbler_LDADD = \
+       $(LDADD) \
+       $(top_builddir)/plugins/audioscrobbler/libaudioscrobblertest.la
+
 test_widgets_SOURCES = \
        test-widgets.c                                          \
        $(test_utils)


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