build: build edid-decode as subproject

Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
This commit is contained in:
Sebastian Wick 2024-05-10 15:45:20 +02:00
parent c0c0c8acc5
commit fbd0022272
4 changed files with 10 additions and 2 deletions

View file

@ -11,7 +11,7 @@ include:
# $ git push -f -o ci.variable="FDO_FORCE_REBUILD=1" # $ git push -f -o ci.variable="FDO_FORCE_REBUILD=1"
variables: variables:
FDO_UPSTREAM_REPO: 'emersion/libdisplay-info' FDO_UPSTREAM_REPO: 'emersion/libdisplay-info'
FDO_DISTRIBUTION_TAG: '2024-06-06.0' FDO_DISTRIBUTION_TAG: '2024-06-07.0'
workflow: workflow:
rules: rules:
@ -39,13 +39,16 @@ prepare-container:
extends: .fdo.container-build@alpine@x86_64 extends: .fdo.container-build@alpine@x86_64
stage: "Prepare container" stage: "Prepare container"
variables: variables:
EDID_DECODE_COMMIT: c6b859d7f0251e2433fb81bd3f67bd2011c2036c
FDO_BASE_IMAGE: alpine:latest FDO_BASE_IMAGE: alpine:latest
FDO_DISTRIBUTION_PACKAGES: | FDO_DISTRIBUTION_PACKAGES: |
build-base clang compiler-rt meson make git gcovr py3-pygments go hwdata build-base clang compiler-rt meson make git gcovr py3-pygments go hwdata
FDO_DISTRIBUTION_EXEC: | FDO_DISTRIBUTION_EXEC: |
grep $EDID_DECODE_COMMIT ./subprojects/edid-decode.wrap >/dev/null || \
(echo "Keep edid-decode.wrap and CI in sync!" && exit 1)
git clone git://linuxtv.org/edid-decode.git git clone git://linuxtv.org/edid-decode.git
cd edid-decode cd edid-decode
git checkout a645579430980c89af961b68193461329bd3eb4d git checkout $EDID_DECODE_COMMIT
meson setup build/ meson setup build/
ninja -C build/ ninja -C build/
ninja -C build/ install ninja -C build/ install

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,3 @@
[wrap-git]
url = https://git.linuxtv.org/edid-decode.git
revision = c6b859d7f0251e2433fb81bd3f67bd2011c2036c

View file

@ -64,6 +64,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()