Have unit test get header from source dir, not installed dir

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
This commit is contained in:
Sebastian Rasmussen 2012-06-25 14:28:10 +02:00 committed by Wim Taymans
parent 217a46e4c1
commit 4743624bb5
2 changed files with 6 additions and 1 deletions

View 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) \

View file

@ -22,12 +22,13 @@
*/
#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"