You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
2.7 KiB
108 lines
2.7 KiB
TESTS = $(module_tests) $(weston_tests)
|
|
|
|
module_tests = \
|
|
surface-test.la \
|
|
client-test.la \
|
|
text-test.la \
|
|
surface-global-test.la
|
|
|
|
weston_tests = \
|
|
keyboard-test \
|
|
event-test \
|
|
button-test
|
|
|
|
TESTS_ENVIRONMENT = $(SHELL) $(top_srcdir)/tests/weston-tests-env
|
|
|
|
export abs_builddir
|
|
|
|
noinst_LTLIBRARIES = \
|
|
$(weston_test)
|
|
|
|
noinst_PROGRAMS = \
|
|
$(setbacklight) \
|
|
matrix-test
|
|
|
|
check_LTLIBRARIES = \
|
|
$(module_tests)
|
|
|
|
check_PROGRAMS = \
|
|
test-client \
|
|
test-text-client \
|
|
$(weston_tests)
|
|
|
|
AM_CFLAGS = $(GCC_CFLAGS)
|
|
AM_CPPFLAGS = -I$(top_srcdir)/src -DUNIT_TEST $(COMPOSITOR_CFLAGS)
|
|
AM_LDFLAGS = -module -avoid-version -rpath $(libdir)
|
|
|
|
test_runner_src = test-runner.c test-runner.h
|
|
|
|
surface_global_test_la_SOURCES = surface-global-test.c $(test_runner_src)
|
|
surface_test_la_SOURCES = surface-test.c $(test_runner_src)
|
|
client_test_la_SOURCES = client-test.c $(test_runner_src)
|
|
text_test_la_SOURCES = text-test.c $(test_runner_src)
|
|
|
|
test_client_SOURCES = test-client.c
|
|
test_client_LDADD = $(SIMPLE_CLIENT_LIBS)
|
|
|
|
test_text_client_SOURCES = test-text-client.c ../clients/text-protocol.c
|
|
test_text_client_LDADD = $(SIMPLE_CLIENT_LIBS)
|
|
|
|
weston_test = weston-test.la
|
|
weston_test_la_LIBADD = $(COMPOSITOR_LIBS) \
|
|
../shared/libshared.la
|
|
weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
weston_test_la_SOURCES = \
|
|
weston-test.c \
|
|
wayland-test-protocol.c \
|
|
wayland-test-server-protocol.h
|
|
|
|
weston_test_runner_src = \
|
|
weston-test-runner.c \
|
|
weston-test-runner.h
|
|
weston_test_client_src = \
|
|
weston-test-client-helper.c \
|
|
weston-test-client-helper.h \
|
|
wayland-test-protocol.c \
|
|
wayland-test-client-protocol.h \
|
|
$(weston_test_runner_src)
|
|
weston_test_client_libs = \
|
|
$(SIMPLE_CLIENT_LIBS) \
|
|
../shared/libshared.la
|
|
|
|
keyboard_test_SOURCES = keyboard-test.c $(weston_test_client_src)
|
|
keyboard_test_LDADD = $(weston_test_client_libs)
|
|
|
|
event_test_SOURCES = event-test.c $(weston_test_client_src)
|
|
event_test_LDADD = $(weston_test_client_libs)
|
|
|
|
button_test_SOURCES = button-test.c $(weston_test_client_src)
|
|
button_test_LDADD = $(weston_test_client_libs)
|
|
|
|
matrix_test_SOURCES = \
|
|
matrix-test.c \
|
|
$(top_srcdir)/shared/matrix.c \
|
|
$(top_srcdir)/shared/matrix.h
|
|
matrix_test_LDADD = -lm -lrt
|
|
|
|
setbacklight_SOURCES = \
|
|
setbacklight.c \
|
|
$(top_srcdir)/src/libbacklight.c \
|
|
$(top_srcdir)/src/libbacklight.h
|
|
|
|
setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
|
|
setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
|
|
|
|
if BUILD_SETBACKLIGHT
|
|
setbacklight = setbacklight
|
|
endif
|
|
|
|
EXTRA_DIST = weston-tests-env
|
|
|
|
BUILT_SOURCES = \
|
|
wayland-test-protocol.c \
|
|
wayland-test-server-protocol.h \
|
|
wayland-test-client-protocol.h
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
@wayland_scanner_rules@
|
|
|