libgdx / gdx-jnigen

jnigen is a small library that can be used with or without libGDX which allows C/C++ code to be written inline with Java source code.
Apache License 2.0
59 stars 26 forks source link

Making it optional to build for 32-bit (armv7) iOS? #30

Closed gudzpoz closed 1 year ago

gudzpoz commented 2 years ago

Currently jnigen (or the gradle plugin) seems to require iOS builds to support armv7, arm64 and x86_64: https://github.com/libgdx/gdx-jnigen/blob/9d9a3f42931b36a18a320803a6dba48aa9b455c6/gdx-jnigen-gradle/src/main/java/com/badlogic/gdx/jnigen/gradle/JnigenExtension.java#L106 https://github.com/libgdx/gdx-jnigen/blob/9d9a3f42931b36a18a320803a6dba48aa9b455c6/gdx-jnigen/src/main/resources/com/badlogic/gdx/jnigen/resources/scripts/build-ios.xml.template#L192 But considering the prevalence of 64-bit iOS devices (and Apple dropping support for 32-bit ones), it seems reasonable for some developers to just makes their iOS apps 64-bit only.

(Background: I am trying to link LuaJIT v2.1 in a project but LuaJIT just won't build for 32-bit iOS (without some downgrading hacks) (https://github.com/LuaJIT/LuaJIT/issues/468).)

Is it possible to split the current template and make it optional to build for armv7 iOS? Thank you!