From 7214dd703c982ec521cc9046557731c43f914694 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Thu, 9 Mar 2017 23:59:31 +1000 Subject: libsdl: Windows specific PACKAGECONFIG Add a PACKAGECONFIG for 'stdio-redirect'. This configure option enables/disables the Windows only option for redirecting the stdout/stderr to files instead of to the console. Add the 'directx' PACKAGECONFIG to configure whether to build with DirectX support. By default this is enabled (when targeting mingw32/windows) however this requires the DirectX libraries in order to include and link against. Disable X11 support when building for the nativesdk mingw32. Signed-off-by: Nathan Rossi --- recipes-graphics/libsdl/libsdl_%.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 recipes-graphics/libsdl/libsdl_%.bbappend diff --git a/recipes-graphics/libsdl/libsdl_%.bbappend b/recipes-graphics/libsdl/libsdl_%.bbappend new file mode 100644 index 0000000..5f5787d --- /dev/null +++ b/recipes-graphics/libsdl/libsdl_%.bbappend @@ -0,0 +1,7 @@ +# Disable default x11 support +PACKAGECONFIG_class-nativesdk_mingw32 = "" + +# Configs that only apply to Windows/MinGW +PACKAGECONFIG[stdio-redirect] = "--enable-stdio-redirect,--disable-stdio-redirect" +PACKAGECONFIG[directx] = "--enable-directx,--disable-directx" + -- cgit v1.2.3-54-g00ecf