tests: netclock-replay: fix build with new api export/import

Can't mix/match imports and exports from the same library
here, so just include all .c files needed instead and don't
link to gstnet at all then.

https://bugzilla.gnome.org/show_bug.cgi?id=797185
This commit is contained in:
Tim-Philipp Müller 2018-08-26 01:23:23 +02:00
parent 57c8e0146f
commit af5717b364
3 changed files with 6 additions and 5 deletions

View file

@ -5,8 +5,5 @@ EXTRA_DIST = \
noinst_PROGRAMS = netclock-replay
netclock_replay_LDADD = \
$(top_builddir)/libs/gst/net/libgstnet-@GST_API_VERSION@.la \
$(GST_OBJ_LIBS) \
$(GIO_LIBS)
netclock_replay_LDADD = $(GST_OBJ_LIBS) $(GIO_LIBS)
netclock_replay_CFLAGS = $(GST_OBJ_CFLAGS) $(GIO_CFLAGS)

View file

@ -1,2 +1,3 @@
executable('netclock-replay', 'netclock-replay.c',
dependencies : [gio_dep, gst_dep, gst_net_dep])
include_directories: libsinc,
dependencies : [gio_dep, gst_dep])

View file

@ -24,9 +24,12 @@
#include <stdio.h>
#define GST_NET_API /* empty */
/* We need the internal netclock estimation function to (re)run the code on
* captured samples, plus its dependencies for the build to succeed. */
#include "../../libs/gst/net/gstntppacket.c"
#include "../../libs/gst/net/gstnettimepacket.c"
#include "../../libs/gst/net/gstnetclientclock.c"
#include "../../libs/gst/net/gstnetutils.c"