Have unit test get header from source dir, not installed dir
authorSebastian Rasmussen <sebrn@axis.com>
Mon, 25 Jun 2012 12:28:10 +0000 (14:28 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 27 Jun 2012 09:42:21 +0000 (11:42 +0200)
This makes compilation of unit tests work in a build directory other
than the source directory.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=678789

tests/check/Makefile.am
tests/check/gst/rtspserver.c

index af5f6c1..b32412e 100644 (file)
@@ -41,7 +41,11 @@ LDADD = $(GST_LIBS) $(GST_CHECK_LIBS) $(GST_RTSP_SERVER_LIBS)
 
 SUPPRESSIONS = $(top_srcdir)/common/gst.supp
 
+gst_rtspserver_SOURCES = gst/rtspserver.c \
+       $(top_srcdir)/gst/rtsp-server/rtsp-server.h
+
 gst_rtspserver_CFLAGS = \
+       -I$(top_srcdir)/gst/rtsp-server \
        $(GST_PLUGINS_GOOD_CFLAGS) \
        $(GST_PLUGINS_BASE_CFLAGS) \
        $(GST_BASE_CFLAGS) \
index 5d1bdb0..84d9bfe 100644 (file)
  */
 
 #include <gst/check/gstcheck.h>
-#include <gst/rtsp-server/rtsp-server.h>
 #include <gst/sdp/gstsdpmessage.h>
 
 #include <stdio.h>
 #include <netinet/in.h>
 
+#include "rtsp-server.h"
+
 #define VIDEO_PIPELINE "videotestsrc ! " \
   "video/x-raw,width=352,height=288 ! " \
   "rtpgstpay name=pay0 pt=96"