mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-12-25 21:59:08 +01:00
build: add subproject for edid-decode
Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
83ae3f5515
commit
795494b571
4 changed files with 17 additions and 0 deletions
|
@ -7,6 +7,7 @@ project(
|
||||||
default_options: [
|
default_options: [
|
||||||
'c_std=c11',
|
'c_std=c11',
|
||||||
'warning_level=3',
|
'warning_level=3',
|
||||||
|
'wrap_mode=nodownload',
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
4
subprojects/edid-decode.wrap
Normal file
4
subprojects/edid-decode.wrap
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[wrap-git]
|
||||||
|
url = https://git.linuxtv.org/edid-decode.git
|
||||||
|
revision = 915b0ce5329f417d2c3f84ddab3d443dd0e01b61
|
||||||
|
patch_directory = edid-decode
|
11
subprojects/packagefiles/edid-decode/meson.build
Normal file
11
subprojects/packagefiles/edid-decode/meson.build
Normal 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'))
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue