build: use dependency for matrix.c

matrix.c needs to be built differently for a test program vs. everything else,
so it cannot be in a helper lib. Instead, make a dependency object for it for
easy use which always gets all the paths correct automatically.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen
2019-04-05 13:50:43 +03:00
parent 03eacfa618
commit b6c7a3020c
4 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -5,6 +5,7 @@ deps_libweston = [
dep_libdl,
dep_libdrm_headers,
dep_xkbcommon,
dep_matrix_c
]
srcs_libweston = [
git_version_h,
@@ -31,7 +32,6 @@ srcs_libweston = [
'weston-log-flight-rec.c',
'weston-log.c',
'zoom.c',
'../shared/matrix.c',
linux_dmabuf_unstable_v1_protocol_c,
linux_dmabuf_unstable_v1_server_protocol_h,
linux_explicit_synchronization_unstable_v1_protocol_c,