New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile support for iOS & Android #9
Comments
I will look into adding them! |
Flecs.NET uses zig to cross-compile native libraries for all target platforms. Trying to compile flecs with
I'm not familiar enough with c/c++ and mobile development to get the build script to compile for those platforms but I'm open to contributions if anyone knows how to get it working. These are the relevant files for anyone interested in adding support for mobile targets. https://github.com/BeanCheeseBurrito/Flecs.NET/blob/main/src/Flecs.NET.Native/build.zig |
Thanks! Can we avoid exotic targets like linux android for now and just add the more vanilla stuff that zig does support? Or for modern ios at least? |
|
Zig doesn't provide(?) the headers needed to cross-compile for android and ios. The build script needs to be changed to allow the user to manually provide them but I'm not experienced enough with mobile development to set it up myself. |
In case it helps, I made this example github action that will output a static library via https://github.com/leetal/ios-cmake without needing any code signing.
|
IOS static libraries were added in the latest package pushed to the GitLab feed. https://gitlab.com/BeanCheeseBurrito/Flecs.NET/-/packages/20154174 |
Hello, I noticed you have static libraries for mac/linux/windows, can you also include for ios and android targets please?
The text was updated successfully, but these errors were encountered: