element-maker: set CPPFLAGS to make templates using uninstalled headers work
authorStefan Kost <ensonic@users.sf.net>
Tue, 26 Apr 2011 12:13:55 +0000 (15:13 +0300)
committerStefan Kost <ensonic@users.sf.net>
Tue, 26 Apr 2011 12:21:50 +0000 (15:21 +0300)
tools/Makefile.am
tools/gst-element-maker

index 9cc82c8..d51c45b 100644 (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
 
index 81c5d7a..4255aa8 100755 (executable)
@@ -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