[meta-mingw,v2] ninja: configure for mingw platform

Submitted by Samuli Piippo on Sept. 21, 2020, 7:47 a.m. | Patch ID: 176659

Details

Message ID 20200921074755.9385-1-samuli.piippo@qt.io
State New
Headers show

Commit Message

Samuli Piippo Sept. 21, 2020, 7:47 a.m.
Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
---
 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

Patch hide | download patch | download mbox

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
+}