build: Don't build simple-encoder test program if there is no VA Encoding support
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Thu, 18 Jun 2015 10:19:26 +0000 (13:19 +0300)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Thu, 18 Jun 2015 10:19:26 +0000 (13:19 +0300)
This will fix the build error against older VA-APIs <= 0.32

tests/Makefile.am

index 8fb3f95..3637d92 100644 (file)
@@ -6,8 +6,13 @@ noinst_PROGRAMS = \
        test-surfaces                   \
        test-windows                    \
        test-subpicture                 \
+       $(NULL)
+
+if USE_ENCODERS
+noinst_PROGRAMS += \
        simple-encoder                  \
        $(NULL)
+endif
 
 if USE_GLX
 noinst_PROGRAMS += \