mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-11-16 19:48:30 +01:00
build: build edid-decode as subproject
Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
This commit is contained in:
parent
c0c0c8acc5
commit
fbd0022272
4 changed files with 10 additions and 2 deletions
|
@ -11,7 +11,7 @@ include:
|
|||
# $ git push -f -o ci.variable="FDO_FORCE_REBUILD=1"
|
||||
variables:
|
||||
FDO_UPSTREAM_REPO: 'emersion/libdisplay-info'
|
||||
FDO_DISTRIBUTION_TAG: '2024-06-06.0'
|
||||
FDO_DISTRIBUTION_TAG: '2024-06-07.0'
|
||||
|
||||
workflow:
|
||||
rules:
|
||||
|
@ -39,13 +39,16 @@ prepare-container:
|
|||
extends: .fdo.container-build@alpine@x86_64
|
||||
stage: "Prepare container"
|
||||
variables:
|
||||
EDID_DECODE_COMMIT: c6b859d7f0251e2433fb81bd3f67bd2011c2036c
|
||||
FDO_BASE_IMAGE: alpine:latest
|
||||
FDO_DISTRIBUTION_PACKAGES: |
|
||||
build-base clang compiler-rt meson make git gcovr py3-pygments go hwdata
|
||||
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
|
||||
cd edid-decode
|
||||
git checkout a645579430980c89af961b68193461329bd3eb4d
|
||||
git checkout $EDID_DECODE_COMMIT
|
||||
meson setup build/
|
||||
ninja -C build/
|
||||
ninja -C build/ install
|
||||
|
|
|
@ -7,6 +7,7 @@ project(
|
|||
default_options: [
|
||||
'c_std=c11',
|
||||
'warning_level=3',
|
||||
'wrap_mode=nodownload',
|
||||
],
|
||||
)
|
||||
|
||||
|
|
3
subprojects/edid-decode.wrap
Normal file
3
subprojects/edid-decode.wrap
Normal file
|
@ -0,0 +1,3 @@
|
|||
[wrap-git]
|
||||
url = https://git.linuxtv.org/edid-decode.git
|
||||
revision = c6b859d7f0251e2433fb81bd3f67bd2011c2036c
|
|
@ -64,6 +64,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()
|
||||
|
|
Loading…
Reference in a new issue