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:
+3
-7
@@ -163,11 +163,8 @@ tools_enabled = get_option('tools')
|
||||
tools_list = [
|
||||
{
|
||||
'name': 'calibrator',
|
||||
'sources': [
|
||||
'calibrator.c',
|
||||
'../shared/matrix.c',
|
||||
],
|
||||
'deps': [ dep_toytoolkit ],
|
||||
'sources': [ 'calibrator.c' ],
|
||||
'deps': [ dep_toytoolkit, dep_matrix_c ],
|
||||
},
|
||||
{
|
||||
'name': 'debug',
|
||||
@@ -202,11 +199,10 @@ tools_list = [
|
||||
'name': 'touch-calibrator',
|
||||
'sources': [
|
||||
'touch-calibrator.c',
|
||||
'../shared/matrix.c',
|
||||
weston_touch_calibration_client_protocol_h,
|
||||
weston_touch_calibration_protocol_c,
|
||||
],
|
||||
'deps': [ dep_toytoolkit ],
|
||||
'deps': [ dep_toytoolkit, dep_matrix_c ],
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user