Link matrix.c into weston again
We want to make sure that the matrix symbols are exported from weston and that modules get them from there. To do that, we pull matrix.[ch] out of libshared and back into weston. calibrator now also links to matrix.[ch] and we add a IN_WESTON define to enable the WL_EXPORT macro when compiled inside weston.
This commit is contained in:
+1
-1
@@ -123,7 +123,7 @@ clickdot_LDADD = $(toolkit_libs)
|
||||
transformed_SOURCES = transformed.c
|
||||
transformed_LDADD = $(toolkit_libs)
|
||||
|
||||
calibrator_SOURCES = calibrator.c
|
||||
calibrator_SOURCES = calibrator.c ../shared/matrix.c ../shared/matrix.h
|
||||
calibrator_LDADD = $(toolkit_libs)
|
||||
|
||||
editor_SOURCES = \
|
||||
|
||||
+1
-3
@@ -7,9 +7,7 @@ libshared_la_SOURCES = \
|
||||
option-parser.c \
|
||||
config-parser.h \
|
||||
os-compatibility.c \
|
||||
os-compatibility.h \
|
||||
matrix.c \
|
||||
matrix.h
|
||||
os-compatibility.h
|
||||
|
||||
libshared_cairo_la_CFLAGS = \
|
||||
$(GCC_CFLAGS) \
|
||||
|
||||
@@ -24,7 +24,12 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifdef IN_WESTON
|
||||
#include <wayland-server.h>
|
||||
#else
|
||||
#define WL_EXPORT
|
||||
#endif
|
||||
|
||||
#include "matrix.h"
|
||||
|
||||
|
||||
+4
-1
@@ -4,7 +4,8 @@ bin_PROGRAMS = weston \
|
||||
AM_CPPFLAGS = \
|
||||
-DDATADIR='"$(datadir)"' \
|
||||
-DMODULEDIR='"$(moduledir)"' \
|
||||
-DLIBEXECDIR='"$(libexecdir)"'
|
||||
-DLIBEXECDIR='"$(libexecdir)"' \
|
||||
-DIN_WESTON
|
||||
|
||||
weston_LDFLAGS = -export-dynamic
|
||||
weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
||||
@@ -35,6 +36,8 @@ weston_SOURCES = \
|
||||
gl-renderer.h \
|
||||
gl-renderer.c \
|
||||
noop-renderer.c \
|
||||
../shared/matrix.c \
|
||||
../shared/matrix.h \
|
||||
weston-launch.h \
|
||||
weston-egl-ext.h
|
||||
|
||||
|
||||
Reference in New Issue
Block a user