mirror of
git://git.yoctoproject.org/poky
synced 2026-09-09 15:22:19 +00:00
libsdl2: allow to build native and nativesdk
* enable x11 in native builds (From OE-Core rev: cff055403eab8112ef76cd6331682447bcddf760) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
865e34547a
commit
4e94199830
@ -37,6 +37,8 @@ EXTRA_OECONF = "--disable-oss --disable-esd --disable-arts \
|
|||||||
# and BSP layers to pick either (desktop) opengl, gles2, or no GL
|
# and BSP layers to pick either (desktop) opengl, gles2, or no GL
|
||||||
PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
|
PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
|
||||||
|
|
||||||
|
PACKAGECONFIG_class-native = "x11"
|
||||||
|
PACKAGECONFIG_class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
|
||||||
PACKAGECONFIG ??= " \
|
PACKAGECONFIG ??= " \
|
||||||
${PACKAGECONFIG_GL} \
|
${PACKAGECONFIG_GL} \
|
||||||
${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \
|
${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \
|
||||||
@ -63,3 +65,5 @@ do_configure_prepend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN}-dev += "${libdir}/cmake"
|
FILES_${PN}-dev += "${libdir}/cmake"
|
||||||
|
|
||||||
|
BBCLASSEXTEND = "native nativesdk"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user