1 TESTS = surface-test.la client-test.la \
2 event-test.la text-test.la \
3 surface-global-test.la \
6 TESTS_ENVIRONMENT = $(SHELL) $(top_srcdir)/tests/weston-test
10 AM_CFLAGS = $(GCC_CFLAGS)
11 AM_CPPFLAGS = -I$(top_srcdir)/src -DUNIT_TEST $(COMPOSITOR_CFLAGS)
14 check_LTLIBRARIES = $(TESTS)
15 check_PROGRAMS = test-client test-text-client
17 AM_LDFLAGS = -module -avoid-version -rpath $(libdir)
19 test_runner_src = test-runner.c test-runner.h
21 surface_global_test_la_SOURCES = surface-global-test.c $(test_runner_src)
22 surface_test_la_SOURCES = surface-test.c $(test_runner_src)
23 client_test_la_SOURCES = client-test.c $(test_runner_src)
24 event_test_la_SOURCES = event-test.c $(test_runner_src)
25 text_test_la_SOURCES = text-test.c $(test_runner_src)
26 button_test_la_SOURCES = button-test.c $(test_runner_src)
28 test_client_SOURCES = test-client.c
29 test_client_LDADD = $(SIMPLE_CLIENT_LIBS)
31 test_text_client_SOURCES = test-text-client.c ../clients/text-protocol.c
32 test_text_client_LDADD = $(SIMPLE_CLIENT_LIBS)
34 noinst_PROGRAMS = $(setbacklight) matrix-test
36 matrix_test_SOURCES = \
38 $(top_srcdir)/src/matrix.c \
39 $(top_srcdir)/src/matrix.h
40 matrix_test_LDADD = -lm -lrt
42 setbacklight_SOURCES = \
44 $(top_srcdir)/src/libbacklight.c \
45 $(top_srcdir)/src/libbacklight.h
47 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
48 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
51 setbacklight = setbacklight
54 EXTRA_DIST = weston-test