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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user