build: split off di-edid-decode into separate file

Avoids repeating the directory name.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2022-11-21 15:29:53 +01:00
parent 448046519e
commit a001cab480
2 changed files with 12 additions and 12 deletions

View file

@ -0,0 +1,11 @@
di_edid_decode = executable(
'di-edid-decode',
[
'cta.c',
'displayid.c',
'edid.c',
'main.c',
],
dependencies: [di_dep, math],
install: true,
)

View file

@ -84,16 +84,5 @@ di_dep = declare_dependency(
meson.override_dependency('libdisplay-info', di_dep) meson.override_dependency('libdisplay-info', di_dep)
di_edid_decode = executable( subdir('di-edid-decode')
'di-edid-decode',
[
'di-edid-decode/cta.c',
'di-edid-decode/displayid.c',
'di-edid-decode/edid.c',
'di-edid-decode/main.c',
],
dependencies: [di_dep, math],
install: true,
)
subdir('test') subdir('test')