Topics

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


Samuli Piippo
 

Signed-off-by: Samuli Piippo <samuli.piippo@...>
---
recipes-devtools/ninja/ninja_%.bbappend | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100644 recipes-devtools/ninja/ninja_%.bbappend

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


Joshua Watt
 



On Fri, Sep 18, 2020, 7:30 AM Samuli Piippo <samuli.piippo@...> wrote:
Signed-off-by: Samuli Piippo <samuli.piippo@...>

Thanks! Can you add this to core-image-mingw-sdktest to test it doesn't regress? Bonus points for writing a runtime test for it if there isn't one already

---
 recipes-devtools/ninja/ninja_%.bbappend | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 recipes-devtools/ninja/ninja_%.bbappend

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