libweston: remove UNIT_TEST
This #define was used only by the matrix-test program, which was removed in the previous commit. Remove it as unused and fold away MATRIX_TEST_EXPORT. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
a1e5d46d91
commit
8bbd1a995b
@ -65,19 +65,6 @@ int
|
||||
weston_matrix_invert(struct weston_matrix *inverse,
|
||||
const struct weston_matrix *matrix);
|
||||
|
||||
#ifdef UNIT_TEST
|
||||
# define MATRIX_TEST_EXPORT WL_EXPORT
|
||||
|
||||
int
|
||||
matrix_invert(double *A, unsigned *p, const struct weston_matrix *matrix);
|
||||
|
||||
void
|
||||
inverse_transform(const double *LU, const unsigned *p, float *v);
|
||||
|
||||
#else
|
||||
# define MATRIX_TEST_EXPORT static
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -31,12 +31,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifdef UNIT_TEST
|
||||
#define WL_EXPORT
|
||||
#else
|
||||
#include <wayland-server.h>
|
||||
#endif
|
||||
|
||||
#include <libweston/matrix.h>
|
||||
|
||||
|
||||
@ -169,7 +164,7 @@ find_pivot(double *column, unsigned k)
|
||||
* LU decomposition, forward and back substitution: Chapter 3.
|
||||
*/
|
||||
|
||||
MATRIX_TEST_EXPORT inline int
|
||||
static int
|
||||
matrix_invert(double *A, unsigned *p, const struct weston_matrix *matrix)
|
||||
{
|
||||
unsigned i, j, k;
|
||||
@ -204,7 +199,7 @@ matrix_invert(double *A, unsigned *p, const struct weston_matrix *matrix)
|
||||
return 0;
|
||||
}
|
||||
|
||||
MATRIX_TEST_EXPORT inline void
|
||||
static void
|
||||
inverse_transform(const double *LU, const unsigned *p, float *v)
|
||||
{
|
||||
/* Solve A * x = v, when we have P * A = L * U.
|
||||
|
@ -341,7 +341,6 @@ foreach t : tests
|
||||
t_name,
|
||||
t_sources,
|
||||
c_args: [
|
||||
'-DUNIT_TEST',
|
||||
'-DTHIS_TEST_NAME="' + t_name + '"',
|
||||
],
|
||||
build_by_default: true,
|
||||
@ -385,7 +384,6 @@ foreach t : tests_standalone
|
||||
exe_t = executable(
|
||||
'test-@0@'.format(t.get(0)),
|
||||
srcs_t,
|
||||
c_args: [ '-DUNIT_TEST' ],
|
||||
build_by_default: true,
|
||||
include_directories: common_inc,
|
||||
dependencies: deps_t,
|
||||
|
Loading…
Reference in New Issue
Block a user