libinput/test/Makefile.am
Jonas Ådahl 3bee64a845 test: Use generic test device API in touch_abs_transform test
Instead of having a test device which only purpose is to test absolute
coordinate transformation, use the litest_create_device_with_overrides()
API to create a specially crafted wacom touch device with high
resolution.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-04-08 23:07:49 +02:00

77 lines
2.1 KiB
Makefile

if BUILD_TESTS
AM_CPPFLAGS = -I$(top_srcdir)/src $(CHECK_CFLAGS) $(LIBEVDEV_CFLAGS)
TEST_LIBS = liblitest.la $(CHECK_LIBS) $(LIBUDEV_LIBS) $(LIBEVDEV_LIBS) $(top_builddir)/src/libinput.la -lm
TEST_CFLAGS = $(GCC_CFLAGS) $(AM_CFLAGS)
noinst_LTLIBRARIES = liblitest.la
liblitest_la_SOURCES = \
$(top_srcdir)/src/libinput-util.h \
$(top_srcdir)/src/libinput-util.c \
litest.h \
litest-int.h \
litest-bcm5974.c \
litest-keyboard.c \
litest-mouse.c \
litest-synaptics.c \
litest-synaptics-st.c \
litest-trackpoint.c \
litest-wacom-touch.c \
litest.c
run_tests = test-udev test-path test-pointer test-touch test-log test-touchpad
build_tests = \
test-build-cxx \
test-build-linker \
test-build-pedantic-c99 \
test-build-std-gnuc90
noinst_PROGRAMS = $(build_tests) $(run_tests)
TESTS = $(run_tests)
test_udev_SOURCES = udev.c
test_udev_CFLAGS = $(TEST_CFLAGS)
test_udev_LDADD = $(TEST_LIBS)
test_udev_LDFLAGS = -static
test_path_SOURCES = path.c
test_path_CFLAGS = $(TEST_CFLAGS)
test_path_LDADD = $(TEST_LIBS)
test_path_LDFLAGS = -static
test_pointer_SOURCES = pointer.c
test_pointer_CFLAGS = $(TEST_CFLAGS)
test_pointer_LDADD = $(TEST_LIBS)
test_pointer_LDFLAGS = -static
test_touch_SOURCES = touch.c
test_touch_CFLAGS = $(TEST_CFLAGS)
test_touch_LDADD = $(TEST_LIBS)
test_touch_LDFLAGS = -static
test_log_SOURCES = log.c
test_log_CFLAGS = $(TEST_CFLAGS)
test_log_LDADD = $(TEST_LIBS)
test_log_LDFLAGS = -static
test_touchpad_SOURCES = touchpad.c
test_touchpad_CFLAGS = $(AM_CPPFLAGS)
test_touchpad_LDADD = $(TEST_LIBS)
test_touchpad_LDFLAGS = -static
# build-test only
test_build_pedantic_c99_SOURCES = build-pedantic.c
test_build_pedantic_c99_CFLAGS = $(TEST_CFLAGS) -std=c99 -pedantic -Werror
test_build_std_gnuc90_SOURCES = build-pedantic.c
test_build_std_gnuc90_CFLAGS = $(TEST_CFLAGS) -std=gnu90 -Werror
# test for linking with the minimal linker flags
test_build_linker_SOURCES = build-pedantic.c
test_build_linker_CFLAGS = -I$(top_srcdir)/src
test_build_linker_LDADD = $(top_builddir)/src/libinput.la
# test including from C++
test_build_cxx_SOURCES = build-cxx.cc
test_build_cxx_CXXFLAGS = -Wall -Wextra -Wno-unused-parameter $(AM_CXXFLAGS)
endif