Drop tedious LIBVA_EXTRA_{CFLAGS,LIBS} definitions in Makefile.am. Override CFLAGS...
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Wed, 24 Mar 2010 16:21:20 +0000 (16:21 +0000)
committergb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Wed, 24 Mar 2010 16:21:20 +0000 (16:21 +0000)
configure.ac
gst-libs/gst/vaapi/Makefile.am
sys/vaapiconvert/Makefile.am
sys/vaapisink/Makefile.am
tests/Makefile.am

index cc996a6..55fd58c 100644 (file)
@@ -181,6 +181,8 @@ PKG_CHECK_MODULES(LIBVA_X11, [$LIBVA_X11_PKGNAME],
 if test "$ac_cv_have_vaapi_x11" = "no"; then
     if test "$ac_cv_have_vaapi_old" = "yes"; then
         LIBVA_X11_PKGNAME="libva"
+        CFLAGS="$CFLAGS $LIBVA_EXTRA_CFLAGS"
+        LIBS="$LIBS $LIBVA_EXTRA_LIBS"
     else
         AC_MSG_ERROR([could not find VA-API])
     fi
index d3299f5..f8d7203 100644 (file)
@@ -84,14 +84,12 @@ libgstvaapi_@GST_MAJORMINOR@_la_CFLAGS =    \
        $(GST_BASE_CFLAGS)                      \
        $(GST_CFLAGS)                           \
        $(LIBVA_CFLAGS)                         \
-       $(LIBVA_EXTRA_CFLAGS)                   \
        $(NULL)
 
 libgstvaapi_@GST_MAJORMINOR@_la_LIBADD =       \
        $(GST_BASE_LIBS)                        \
        $(GST_LIBS)                             \
        $(LIBVA_LIBS)                           \
-       $(LIBVA_EXTRA_LIBS)                     \
        $(NULL)
 
 libgstvaapi_x11_@GST_MAJORMINOR@_la_SOURCES =  \
@@ -111,13 +109,11 @@ libgstvaapi_x11_@GST_MAJORMINOR@_la_CFLAGS =      \
        $(GLIB_CFLAGS)                          \
        $(GST_BASE_CFLAGS)                      \
        $(LIBVA_X11_CFLAGS)                     \
-       $(LIBVA_EXTRA_CFLAGS)                   \
        $(NULL)
 
 libgstvaapi_x11_@GST_MAJORMINOR@_la_LIBADD =   \
        $(GLIB_LIBS)                            \
        $(LIBVA_X11_LIBS)                       \
-       $(LIBVA_EXTRA_LIBS)                     \
        libgstvaapi-@GST_MAJORMINOR@.la         \
        $(NULL)
 
index b295d0b..74e3d37 100644 (file)
@@ -1,11 +1,9 @@
 plugin_LTLIBRARIES = libgstvaapiconvert.la
 
 libgstvaapi_CFLAGS = \
-       $(LIBVA_EXTRA_CFLAGS) \
        -I$(top_srcdir)/gst-libs
 
 libgstvaapi_LIBS = \
-       $(LIBVA_EXTRA_LIBS) \
        $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-$(GST_MAJORMINOR).la
 
 libgstvaapiconvert_la_SOURCES =        \
index 54cacdb..9fdb921 100644 (file)
@@ -1,11 +1,9 @@
 plugin_LTLIBRARIES = libgstvaapisink.la
 
 libgstvaapi_CFLAGS = \
-       $(LIBVA_EXTRA_CFLAGS) \
        -I$(top_srcdir)/gst-libs
 
 libgstvaapi_LIBS = \
-       $(LIBVA_EXTRA_LIBS) \
        $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-x11-$(GST_MAJORMINOR).la
 
 libgstvaapisink_la_SOURCES =   \
index f42bbef..de69c18 100644 (file)
@@ -5,13 +5,11 @@ noinst_PROGRAMS =     \
        $(NULL)
 
 TEST_CFLAGS = \
-       $(LIBVA_EXTRA_CFLAGS) \
        $(GST_CFLAGS) \
        -I$(top_srcdir)/gst-libs \
        $(X11_CFLAGS)
 
 TEST_LIBS = \
-       $(LIBVA_EXTRA_LIBS) \
        $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-x11-@GST_MAJORMINOR@.la \
        $(X11_LIBS)