[Libva] [PATCH] fix build issue when there is wayland platform support only

Zhao Halley halley.zhao at intel.com
Sat Apr 27 01:12:36 PDT 2013


---
 test/Makefile.am            |    3 +++
 test/putsurface/Makefile.am |    5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/test/Makefile.am b/test/Makefile.am
index 451b90f..c75e006 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -25,5 +25,8 @@ SUBDIRS = common decode encode vainfo
 if USE_X11
 SUBDIRS += basic putsurface v4l_h264
 endif
+if USE_WAYLAND
+SUBDIRS += putsurface
+endif
 
 EXTRA_DIST = loadsurface.h loadsurface_yuv.h
diff --git a/test/putsurface/Makefile.am b/test/putsurface/Makefile.am
index 8ffe255..e6dbe57 100644
--- a/test/putsurface/Makefile.am
+++ b/test/putsurface/Makefile.am
@@ -20,7 +20,6 @@
 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-bin_PROGRAMS = putsurface
 
 AM_CPPFLAGS = \
 	-I$(top_srcdir)		\
@@ -36,11 +35,15 @@ TEST_LIBS = \
 	-lpthread		\
 	$(NULL)
 
+bin_PROGRAMS =
+if USE_X11
+bin_PROGRAMS += putsurface
 putsurface_SOURCES		= putsurface_x11.c
 putsurface_CFLAGS		= $(X11_CFLAGS) $(TEST_CFLAGS)
 putsurface_LDADD		= $(X11_LIBS) $(TEST_LIBS)	\
 	$(top_builddir)/va/libva-x11.la			\
 	$(NULL)
+endif
 
 if USE_WAYLAND
 bin_PROGRAMS			+= putsurface_wayland
-- 
1.7.9.5



More information about the Libva mailing list