make spice-server-replay use dynamic spice-server library

spice-server-replay is built with the same settings as tests.
Currently the tests links to a convenience spice-server library.
A convenience library is a static library build with object file
for a dynamic library.
This make all tests contain all spice-server library code and not
linking to the spice-server dynamic library (the .so).
It's not a problem for most tests however this make impossible for
spice-server-replay utility to be used with a dynamic spice-server
library (you have to recompile it including the library).
This is a pity as you could for instance compare your system
library behavior with the library you are developing.
Also if we decide to install in a future the utility for testing
we would have lot of code duplication.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
Frediano Ziglio 2016-05-15 17:12:47 +01:00
parent fa0c32f120
commit 1be06f188e

View File

@ -67,7 +67,18 @@ noinst_LIBRARIES += \
libstat_test4.a \
$(NULL)
spice_server_replay_SOURCES = replay.c
spice_server_replay_SOURCES = replay.c \
../event-loop.c \
basic_event_loop.c \
basic_event_loop.h
spice_server_replay_LDADD = \
$(top_builddir)/spice-common/common/libspice-common.la \
$(top_builddir)/server/libspice-server.la \
$(GLIB2_LIBS) \
$(GOBJECT2_LIBS) \
$(SPICE_NONPKGCONFIG_LIBS) \
$(NULL)
stat_test_SOURCES = stat-main.c
stat_test_LDADD = \