[meta-mingw][PATCHv2] ninja: configure for mingw platform


Samuli Piippo
 

Signed-off-by: Samuli Piippo <samuli.piippo@...>
---
recipes-core/images/core-image-mingw-sdktest.bb | 1 +
recipes-devtools/ninja/ninja_%.bbappend | 8 ++++++++
2 files changed, 9 insertions(+)
create mode 100644 recipes-devtools/ninja/ninja_%.bbappend

diff --git a/recipes-core/images/core-image-mingw-sdktest.bb b/recipes-core/images/core-image-mingw-sdktest.bb
index 6215aef..9060c3d 100644
--- a/recipes-core/images/core-image-mingw-sdktest.bb
+++ b/recipes-core/images/core-image-mingw-sdktest.bb
@@ -10,6 +10,7 @@ TOOLCHAIN_HOST_TASK += "\
nativesdk-dbus \
nativesdk-dtc \
nativesdk-libarchive \
+ nativesdk-ninja \
nativesdk-swig \
nativesdk-wayland \
"
diff --git a/recipes-devtools/ninja/ninja_%.bbappend b/recipes-devtools/ninja/ninja_%.bbappend
new file mode 100644
index 0000000..e7ddb4d
--- /dev/null
+++ b/recipes-devtools/ninja/ninja_%.bbappend
@@ -0,0 +1,8 @@
+do_compile_mingw32() {
+ python3 ./configure.py --platform mingw
+ ninja
+}
+
+do_install_mingw32() {
+ install -D -m 0755 ${S}/ninja.exe ${D}${bindir}/ninja.exe
+}
--
2.17.1

Join yocto@lists.yoctoproject.org to automatically receive all group messages.