Skip to contentSkip to conversation

ninja: configure for mingw platform

PATCH New Samuli Piippo 1 participant 1 message Sep 21, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ninja: configure for mingw platform

---
 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
recipes-core/images/core-image-mingw-sdktest.bb +1 -0
index 6215aef..9060c3d 100644
@@ -10,6 +10,7 @@ TOOLCHAIN_HOST_TASK += "\
     nativesdk-dbus \
     nativesdk-dtc \
     nativesdk-libarchive \
+    nativesdk-ninja \
     nativesdk-swig \
     nativesdk-wayland \
     "
recipes-devtools/ninja/ninja_%.bbappend new file +8 -0
new file mode 100644
index 0000000..e7ddb4d
@@ -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
+}
Signature · 1 line
2.17.1