From 23872f0ddbe56ec5cc41e660a2d60eb20d3d2f5b Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Fri, 28 Sep 2012 10:09:51 +0200 Subject: [PATCH] tests: include "sysdeps.h" wherever necessary. Use "sysdeps.h" header instead of "config.h" so that to include the necessary definitions for Android. Signed-off-by: Gwenole Beauchesne --- test/common/Makefile.am | 1 + test/common/va_display.c | 4 +--- test/encode/Makefile.am | 8 ++++++-- test/encode/avcenc.c | 4 +--- test/vainfo/Makefile.am | 1 + test/vainfo/vainfo.c | 2 +- 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/test/common/Makefile.am b/test/common/Makefile.am index 9bc4aeb..763847d 100644 --- a/test/common/Makefile.am +++ b/test/common/Makefile.am @@ -24,6 +24,7 @@ noinst_LTLIBRARIES = libva-display.la libva_display_cflags = \ -I$(top_srcdir) \ + -I$(top_srcdir)/va \ -I$(top_builddir) \ -DIN_LIBVA \ $(NULL) diff --git a/test/common/va_display.c b/test/common/va_display.c index b4e8e7e..dd58dd2 100644 --- a/test/common/va_display.c +++ b/test/common/va_display.c @@ -22,9 +22,7 @@ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "sysdeps.h" #include #include #include diff --git a/test/encode/Makefile.am b/test/encode/Makefile.am index 933ac72..01550e2 100644 --- a/test/encode/Makefile.am +++ b/test/encode/Makefile.am @@ -25,14 +25,18 @@ if USE_X11 bin_PROGRAMS += h264encode endif +INCLUDES = \ + -I$(top_srcdir) \ + -I$(top_srcdir)/va \ + $(NULL) + h264encode_SOURCES = h264encode_x11.c -h264encode_CFLAGS = -I$(top_srcdir) h264encode_LDADD = \ $(top_builddir)/va/libva.la \ $(top_builddir)/va/libva-x11.la avcenc_SOURCES = avcenc.c -avcenc_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/test/common +avcenc_CFLAGS = -I$(top_srcdir)/test/common avcenc_LDADD = \ $(top_builddir)/va/libva.la \ $(top_builddir)/test/common/libva-display.la diff --git a/test/encode/avcenc.c b/test/encode/avcenc.c index 2f7f70f..2097949 100644 --- a/test/encode/avcenc.c +++ b/test/encode/avcenc.c @@ -28,9 +28,7 @@ * ./avcenc [qp] */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "sysdeps.h" #include #include #include diff --git a/test/vainfo/Makefile.am b/test/vainfo/Makefile.am index cd9c37b..680d099 100644 --- a/test/vainfo/Makefile.am +++ b/test/vainfo/Makefile.am @@ -24,6 +24,7 @@ bin_PROGRAMS = vainfo vainfo_cflags = \ -I$(top_srcdir) \ + -I$(top_srcdir)/va \ -I$(top_srcdir)/test/common \ -I$(top_builddir) \ -DLIBVA_VERSION_S="\"$(LIBVA_VERSION)\"" \ diff --git a/test/vainfo/vainfo.c b/test/vainfo/vainfo.c index 7ef27bb..fc3dec7 100644 --- a/test/vainfo/vainfo.c +++ b/test/vainfo/vainfo.c @@ -22,12 +22,12 @@ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#include "sysdeps.h" #include #include #include #include #include "va_display.h" -#include "va/sysdeps.h" #define CHECK_VASTATUS(va_status,func, ret) \ if (va_status != VA_STATUS_SUCCESS) { \ -- 2.7.4