[PATCH] tests: only build vertex-clip if egl support is enabled

Emilio Pozuelo Monfort pochu27 at gmail.com
Tue Nov 19 09:09:00 PST 2013


And pass the right flags to build it.
---
 tests/Makefile.am | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 8e08375..e123c18 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -2,7 +2,7 @@ TESTS = $(shared_tests) $(module_tests) $(weston_tests)
 
 shared_tests = \
 	config-parser.test		\
-	vertex-clip.test
+	$(vertex_clip_test)
 
 module_tests =				\
 	surface-test.la			\
@@ -79,13 +79,20 @@ config_parser_test_LDADD =	\
 	$(COMPOSITOR_LIBS)
 config_parser_test_SOURCES =	\
 	config-parser-test.c
+
+if ENABLE_EGL
+vertex_clip_test = vertex-clip.test
 vertex_clip_test_SOURCES =		\
 	vertex-clip-test.c		\
 	../src/vertex-clipping.c	\
 	../src/vertex-clipping.h
+vertex_clip_test_CFLAGS =	\
+	$(EGL_CFLAGS)
 vertex_clip_test_LDADD =	\
+	$(EGL_LIBS)		\
 	libshared-test.la	\
 	-lm -lrt
+endif
 
 weston_test_client_src =		\
 	weston-test-client-helper.c	\
-- 
1.8.4.rc3



More information about the wayland-devel mailing list