Closed viccie30 closed 2 years ago
Ah, it was like this in the original autotools scripts. I noticed it while I more or less directly translating from autotools to meson, but then forgot to fix it.
Nice catch, I will take a look today or tomorrow.
The joys of inherited autotools scripts.
The dependency on
libdrm
is added twice inmeson.build
. Once unconditionally (https://github.com/Aetf/kmscon/blob/32927918cf5f90c2219d4f17055f9a9aef5223d2/meson.build#L50) and once conditioned on eithervideo_drm2d
orvideo_drm3d
being enabled (https://github.com/Aetf/kmscon/blob/32927918cf5f90c2219d4f17055f9a9aef5223d2/meson.build#L65-L68). A few lines down (https://github.com/Aetf/kmscon/blob/32927918cf5f90c2219d4f17055f9a9aef5223d2/meson.build#L93-L94) the requirement is checked forvideo_drm3d
, but not forvideo_drm2d
.In 'src/meson.build' the dependency is added for both
video_drm2d
orvideo_drm3d
again (https://github.com/Aetf/kmscon/blob/32927918cf5f90c2219d4f17055f9a9aef5223d2/src/meson.build#L115-L118).I don't know exactly what the dependency is supposed to be, but I think all four places need to be aligned.