1 TESTS = $(module_tests) $(weston_tests)
15 AM_TESTS_ENVIRONMENT = \
16 abs_builddir='$(abs_builddir)'; export abs_builddir;
18 LOG_COMPILER = $(srcdir)/weston-tests-env
23 # To remove when automake 1.11 support is dropped
26 noinst_LTLIBRARIES = \
39 AM_CFLAGS = $(GCC_CFLAGS)
42 -I$(top_srcdir)/shared \
43 -I$(top_builddir)/src \
46 AM_LDFLAGS = -module -avoid-version -rpath $(libdir)
48 surface_global_test_la_SOURCES = surface-global-test.c
49 surface_test_la_SOURCES = surface-test.c
51 weston_test = weston-test.la
52 weston_test_la_LIBADD = $(COMPOSITOR_LIBS) \
53 ../shared/libshared.la
54 weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
55 weston_test_la_SOURCES = \
57 wayland-test-protocol.c \
58 wayland-test-server-protocol.h
60 weston_test_runner_src = \
61 weston-test-runner.c \
63 weston_test_client_src = \
64 weston-test-client-helper.c \
65 weston-test-client-helper.h \
66 wayland-test-protocol.c \
67 wayland-test-client-protocol.h \
68 subsurface-protocol.c \
69 subsurface-client-protocol.h \
70 $(weston_test_runner_src)
71 weston_test_client_libs = \
72 $(SIMPLE_CLIENT_LIBS) \
73 ../shared/libshared.la
75 keyboard_test_SOURCES = keyboard-test.c $(weston_test_client_src)
76 keyboard_test_LDADD = $(weston_test_client_libs)
78 event_test_SOURCES = event-test.c $(weston_test_client_src)
79 event_test_LDADD = $(weston_test_client_libs)
81 button_test_SOURCES = button-test.c $(weston_test_client_src)
82 button_test_LDADD = $(weston_test_client_libs)
86 ../clients/text-protocol.c \
87 $(weston_test_client_src)
88 text_test_LDADD = $(weston_test_client_libs)
90 subsurface_test_SOURCES = subsurface-test.c $(weston_test_client_src)
91 subsurface_test_LDADD = $(weston_test_client_libs)
93 xwayland_test_SOURCES = xwayland-test.c $(weston_test_client_src)
94 xwayland_test_LDADD = $(weston_test_client_libs) $(XWAYLAND_TEST_LIBS)
96 if ENABLE_XWAYLAND_TEST
97 xwayland_test = xwayland-test
100 matrix_test_SOURCES = \
102 $(top_srcdir)/shared/matrix.c \
103 $(top_srcdir)/shared/matrix.h
104 matrix_test_LDADD = -lm -lrt
106 setbacklight_SOURCES = \
108 $(top_srcdir)/src/libbacklight.c \
109 $(top_srcdir)/src/libbacklight.h
111 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
112 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
114 if BUILD_SETBACKLIGHT
115 setbacklight = setbacklight
118 EXTRA_DIST = weston-tests-env
121 subsurface-protocol.c \
122 subsurface-client-protocol.h \
123 wayland-test-protocol.c \
124 wayland-test-server-protocol.h \
125 wayland-test-client-protocol.h
127 CLEANFILES = $(BUILT_SOURCES)
129 @wayland_scanner_rules@