[yocto] [meta-mingw][PATCH v2 13/19] libsdl: Windows specific PACKAGECONFIG
Nathan Rossi
nathan at nathanrossi.com
Mon Jan 30 00:44:13 PST 2017
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 <nathan at nathanrossi.com>
---
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 0000000000..5f5787d318
--- /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"
+
--
2.11.0
More information about the yocto
mailing list