utopia-rise / godot-kotlin-jvm

Godot Kotlin JVM Module
MIT License
637 stars 46 forks source link

Explore graalvm native-image gradle plugin #391

Open piiertho opened 1 year ago

piiertho commented 1 year ago

We should explore if we can use gradle native-image plugin to build native images.
This would make our gradle plugin safer as we would not realy on commandline anymore.

Frontrider commented 1 year ago

I was looking at what could be possible with a native image and a custom task implementation could be very powerful.

As far as my awareness goes, you can run the native image tool on WINE and Darling to create native images on linux for windows and mac, so at least some cross compilation can be possible. You can probably also use docker/WSL on windows to cross compile for linux. (and in return, use a graalvm/daling docker image to cross compile for mac)