build: add subproject for edid-decode

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2023-03-02 20:15:29 +01:00
parent 83ae3f5515
commit 795494b571
4 changed files with 17 additions and 0 deletions

View file

@ -7,6 +7,7 @@ project(
default_options: [ default_options: [
'c_std=c11', 'c_std=c11',
'warning_level=3', 'warning_level=3',
'wrap_mode=nodownload',
], ],
) )

View file

@ -0,0 +1,4 @@
[wrap-git]
url = https://git.linuxtv.org/edid-decode.git
revision = 915b0ce5329f417d2c3f84ddab3d443dd0e01b61
patch_directory = edid-decode

View file

@ -0,0 +1,11 @@
project(
'edid-decode',
'cpp',
)
run_command(
'make', '-C', meson.current_source_dir(),
check: true,
)
meson.override_find_program('edid-decode', files('edid-decode'))

View file

@ -58,6 +58,7 @@ foreach tc : test_cases
gen_targets += files('data/' + tc + '.edid') gen_targets += files('data/' + tc + '.edid')
endforeach endforeach
subproject('edid-decode', required: false)
ref_edid_decode = find_program('edid-decode', native: true, required: false) ref_edid_decode = find_program('edid-decode', native: true, required: false)
if ref_edid_decode.found() if ref_edid_decode.found()
test_env += 'REF_EDID_DECODE=' + ref_edid_decode.full_path() test_env += 'REF_EDID_DECODE=' + ref_edid_decode.full_path()