mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-29 17:08:20 +02:00
The compositor will likely do an order of magnitude less matrix inversions than point transformations with an inverse, hence we do not really need the optimised path for single-shot invert-and-transform. Expose only the computing of the explicit inverse matrix in the API. However, the matrix inversion tests need access to the internal functions. Designate a unit test build by #defining UNIT_TEST, and export the internal functions in that case. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
15 lines
232 B
Makefile
15 lines
232 B
Makefile
if BUILD_TESTS
|
|
|
|
noinst_PROGRAMS = matrix-test
|
|
|
|
endif
|
|
|
|
|
|
AM_CFLAGS = $(GCC_CFLAGS)
|
|
AM_CPPFLAGS = -I../src -DUNIT_TEST
|
|
|
|
matrix_test_SOURCES = \
|
|
matrix-test.c \
|
|
../src/matrix.c \
|
|
../src/matrix.h
|
|
matrix_test_LDADD = -lm -lrt
|