element-maker: set CPPFLAGS to make templates using uninstalled headers work

This commit is contained in:
Stefan Kost 2011-04-26 15:13:55 +03:00
parent f7f5946fd3
commit bec03b8e19
2 changed files with 3 additions and 2 deletions

View file

@ -33,7 +33,8 @@ EXTRA_DIST = \
TESTS_ENVIRONMENT = \
SRC_DIR=$(abs_srcdir) \
TEMPLATE_FILES="$(templatefiles)"
TEMPLATE_FILES="$(templatefiles)" \
CPPFLAGS="-I$(abs_srcdir)"
TESTS = gst-element-maker-test.sh

View file

@ -379,7 +379,7 @@ gst-indent $gstreplace.c
echo pkg is $pkg
gcc -Wall -fPIC $(pkg-config --cflags gstreamer-0.10 $pkg) -c -o $gstreplace.o $gstreplace.c
gcc -Wall -fPIC $CPPFLAGS $(pkg-config --cflags gstreamer-0.10 $pkg) -c -o $gstreplace.o $gstreplace.c
if test $? -ne 0; then
exit 1
fi