tests: netclock-replay: fix build with new api export/import
authorTim-Philipp Müller <tim@centricular.com>
Sat, 25 Aug 2018 23:23:23 +0000 (01:23 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 24 Sep 2018 07:39:39 +0000 (08:39 +0100)
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

tests/misc/Makefile.am
tests/misc/meson.build
tests/misc/netclock-replay.c

index 5aaede5..bccbffd 100644 (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)
index eedfdc7..ca9b5fa 100644 (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])
index f5dd67d..b7b741b 100644 (file)
 
 #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"