diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2017-09-13 12:57:35 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-22 13:13:32 +0100 |
commit | 4e941998300ebb2f33dc9ce5a95f53d2ceba1efe (patch) | |
tree | e32e316fb8aaf74ed2943ddc282f0fd74c1abd71 | |
parent | 865e34547a4bfe0c0ca7189a15cdff7a603a2b8b (diff) | |
download | poky-4e941998300ebb2f33dc9ce5a95f53d2ceba1efe.tar.gz |
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>
-rw-r--r-- | meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb index c0cf70d7fd..c37f669321 100644 --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb | |||
@@ -37,6 +37,8 @@ EXTRA_OECONF = "--disable-oss --disable-esd --disable-arts \ | |||
37 | # and BSP layers to pick either (desktop) opengl, gles2, or no GL | 37 | # and BSP layers to pick either (desktop) opengl, gles2, or no GL |
38 | PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" | 38 | PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" |
39 | 39 | ||
40 | PACKAGECONFIG_class-native = "x11" | ||
41 | PACKAGECONFIG_class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" | ||
40 | PACKAGECONFIG ??= " \ | 42 | PACKAGECONFIG ??= " \ |
41 | ${PACKAGECONFIG_GL} \ | 43 | ${PACKAGECONFIG_GL} \ |
42 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \ | 44 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \ |
@@ -63,3 +65,5 @@ do_configure_prepend() { | |||
63 | } | 65 | } |
64 | 66 | ||
65 | FILES_${PN}-dev += "${libdir}/cmake" | 67 | FILES_${PN}-dev += "${libdir}/cmake" |
68 | |||
69 | BBCLASSEXTEND = "native nativesdk" | ||