tests: Use a helper library for weston-test clients

dev
Kristian Høgsberg 11 years ago
parent 8e293a5adb
commit 9ab771d6d5
  1. 55
      tests/Makefile.am

@ -34,7 +34,9 @@ export abs_builddir
noinst_LTLIBRARIES = \ noinst_LTLIBRARIES = \
$(weston_test) \ $(weston_test) \
$(module_tests) $(module_tests) \
libtest-runner.la \
libtest-client.la
noinst_PROGRAMS = \ noinst_PROGRAMS = \
$(setbacklight) \ $(setbacklight) \
@ -64,19 +66,14 @@ weston_test_la_SOURCES = \
wayland-test-protocol.c \ wayland-test-protocol.c \
wayland-test-server-protocol.h wayland-test-server-protocol.h
weston_test_runner_src = \ libtest_runner_la_SOURCES = \
weston-test-runner.c \ weston-test-runner.c \
weston-test-runner.h weston-test-runner.h
libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
check_LTLIBRARIES = libshared-test.la
libshared_test_la_SOURCES = \
$(weston_test_runner_src)
libshared_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
config_parser_test_LDADD = \ config_parser_test_LDADD = \
../shared/libshared.la \ ../shared/libshared.la \
libshared-test.la \ libtest-runner.la \
$(COMPOSITOR_LIBS) $(COMPOSITOR_LIBS)
config_parser_test_SOURCES = \ config_parser_test_SOURCES = \
config-parser-test.c config-parser-test.c
@ -85,43 +82,39 @@ vertex_clip_test_SOURCES = \
../src/vertex-clipping.c \ ../src/vertex-clipping.c \
../src/vertex-clipping.h ../src/vertex-clipping.h
vertex_clip_test_LDADD = \ vertex_clip_test_LDADD = \
libshared-test.la \ libtest-runner.la \
-lm -lrt -lm -lrt
weston_test_client_src = \ libtest_client_la_SOURCES = \
weston-test-client-helper.c \ weston-test-client-helper.c \
weston-test-client-helper.h \ weston-test-client-helper.h \
wayland-test-protocol.c \ wayland-test-protocol.c \
wayland-test-client-protocol.h wayland-test-client-protocol.h
weston_test_client_libs = \ libtest_client_la_LIBADD = \
$(TEST_CLIENT_LIBS) \ $(TEST_CLIENT_LIBS) \
../shared/libshared.la \ ../shared/libshared.la \
libshared-test.la libtest-runner.la
bad_buffer_weston_SOURCES = bad-buffer-test.c $(weston_test_client_src)
bad_buffer_weston_LDADD = $(weston_test_client_libs)
keyboard_weston_SOURCES = keyboard-test.c $(weston_test_client_src) bad_buffer_weston_SOURCES = bad-buffer-test.c
keyboard_weston_LDADD = $(weston_test_client_libs) bad_buffer_weston_LDADD = libtest-client.la
event_weston_SOURCES = event-test.c $(weston_test_client_src) keyboard_weston_SOURCES = keyboard-test.c
event_weston_LDADD = $(weston_test_client_libs) keyboard_weston_LDADD = libtest-client.la
button_weston_SOURCES = button-test.c $(weston_test_client_src) event_weston_SOURCES = event-test.c
button_weston_LDADD = $(weston_test_client_libs) event_weston_LDADD = libtest-client.la
text_weston_SOURCES = \ button_weston_SOURCES = button-test.c
text-test.c \ button_weston_LDADD = libtest-client.la
../clients/text-protocol.c \
$(weston_test_client_src)
text_weston_LDADD = $(weston_test_client_libs)
subsurface_weston_SOURCES = subsurface-test.c $(weston_test_client_src) text_weston_SOURCES = text-test.c ../clients/text-protocol.c
subsurface_weston_LDADD = $(weston_test_client_libs) text_weston_LDADD = libtest-client.la
xwayland_weston_SOURCES = xwayland-test.c $(weston_test_client_src) subsurface_weston_SOURCES = subsurface-test.c
subsurface_weston_LDADD = libtest-client.la
xwayland_weston_LDADD = $(weston_test_client_libs) $(XWAYLAND_TEST_LIBS) xwayland_weston_SOURCES = xwayland-test.c
xwayland_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
if ENABLE_XWAYLAND_TEST if ENABLE_XWAYLAND_TEST
xwayland_test = xwayland.weston xwayland_test = xwayland.weston

Loading…
Cancel
Save