mirror of
https://git.yoctoproject.org/poky
synced 2026-04-11 08:02:21 +02:00
libva: add PACKAGECONFIG and additonal rules for glx.
* glx PACKAGECONFIG by default is selected when x11 and opengl flag is present in DISTRO_FEATURES. * virtual/mesa is only required when glx driver is selected to build. (From OE-Core rev: 65b7b48cd6c7ec88da4dc8bcc3e93fe2703a8fef) Signed-off-by: Bartłomiej Burdukiewicz <bartlomiej.burdukiewicz@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e5204fe6db
commit
5dbea45519
@@ -23,15 +23,21 @@ SRC_URI[sha256sum] = "6c57eb642d828af2411aa38f55dc10111e8c98976dbab8fd62e4862940
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://github.com/intel/libva/releases"
|
||||
|
||||
DEPENDS = "libdrm virtual/mesa"
|
||||
DEPENDS = "libdrm"
|
||||
|
||||
inherit meson pkgconfig features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "opengl"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}"
|
||||
PACKAGECONFIG[x11] = "-Dwith_x11=yes, -Dwith_x11=no,virtual/libx11 libxext libxfixes"
|
||||
PACKAGECONFIG[wayland] = "-Dwith_wayland=yes, -Dwith_wayland=no,wayland-native wayland"
|
||||
PACKAGECONFIG ??= " \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'glx', '', d)} \
|
||||
${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)} \
|
||||
"
|
||||
|
||||
PACKAGECONFIG[x11] = "-Dwith_x11=yes,-Dwith_x11=no,virtual/libx11 libxext libxfixes"
|
||||
PACKAGECONFIG[glx] = "-Dwith_glx=yes,-Dwith_glx=no,virtual/mesa"
|
||||
|
||||
PACKAGECONFIG[wayland] = "-Dwith_wayland=yes,-Dwith_wayland=no,wayland-native wayland"
|
||||
|
||||
PACKAGES =+ "${PN}-x11 ${PN}-glx ${PN}-wayland"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user