From bec03b8e19bd00d55ea623db9c11787a5b6369ae Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 26 Apr 2011 15:13:55 +0300 Subject: [PATCH] element-maker: set CPPFLAGS to make templates using uninstalled headers work --- tools/Makefile.am | 3 ++- tools/gst-element-maker | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/Makefile.am b/tools/Makefile.am index 9cc82c8..d51c45b 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -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 diff --git a/tools/gst-element-maker b/tools/gst-element-maker index 81c5d7a..4255aa8 100755 --- a/tools/gst-element-maker +++ b/tools/gst-element-maker @@ -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 -- 2.7.4