From 795494b571e1e6c6935f4aa079afc45939c536d3 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 2 Mar 2023 20:15:29 +0100 Subject: [PATCH] build: add subproject for edid-decode Signed-off-by: Simon Ser --- meson.build | 1 + subprojects/edid-decode.wrap | 4 ++++ subprojects/packagefiles/edid-decode/meson.build | 11 +++++++++++ test/meson.build | 1 + 4 files changed, 17 insertions(+) create mode 100644 subprojects/edid-decode.wrap create mode 100644 subprojects/packagefiles/edid-decode/meson.build diff --git a/meson.build b/meson.build index 3fb157c..b7fc820 100644 --- a/meson.build +++ b/meson.build @@ -7,6 +7,7 @@ project( default_options: [ 'c_std=c11', 'warning_level=3', + 'wrap_mode=nodownload', ], ) diff --git a/subprojects/edid-decode.wrap b/subprojects/edid-decode.wrap new file mode 100644 index 0000000..a520e51 --- /dev/null +++ b/subprojects/edid-decode.wrap @@ -0,0 +1,4 @@ +[wrap-git] +url = https://git.linuxtv.org/edid-decode.git +revision = 915b0ce5329f417d2c3f84ddab3d443dd0e01b61 +patch_directory = edid-decode diff --git a/subprojects/packagefiles/edid-decode/meson.build b/subprojects/packagefiles/edid-decode/meson.build new file mode 100644 index 0000000..9a8a518 --- /dev/null +++ b/subprojects/packagefiles/edid-decode/meson.build @@ -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')) diff --git a/test/meson.build b/test/meson.build index f3db832..5b7ed4a 100644 --- a/test/meson.build +++ b/test/meson.build @@ -58,6 +58,7 @@ foreach tc : test_cases gen_targets += files('data/' + tc + '.edid') endforeach +subproject('edid-decode', required: false) ref_edid_decode = find_program('edid-decode', native: true, required: false) if ref_edid_decode.found() test_env += 'REF_EDID_DECODE=' + ref_edid_decode.full_path()