Java 11 for iOS
Magnus Ihse Bursie
magnus.ihse.bursie at oracle.com
Wed Aug 1 20:04:34 UTC 2018
On 2018-07-11 05:24, Johan Vos wrote:
> Hi,
>
> Last week, I mirrored the Java 11 stabilization repository
> http://hg.openjdk.java.net/jdk/jdk11 into a github repository
> https://github.com/javafxports/openjdk-mobile11 which I forked at
> https://github.com/johanvos/openjdk-mobile11 and where I created a branch
> apply9diffs.
>
> In that branch, I tried to build the SDK (Client VM + class libraries
> including native libs). When running into issues, I first looked at how it
> was solved in the Java 9 version (thanks again to Bob and Gary for those
> patches).
> I'm happy to announce that I just managed to build everything (libjvm.a,
> almost all jmods and their required native implementations) for IOS x86-64.
>
> The diff is remarkably small, see
> https://github.com/javafxports/openjdk-mobile11/pull/1/files
>
> Most of the diff is not touching any logic for other build targets at all.
> iOS for arm64 and Android builds are still todo, but this already shows
> that the core OpenJDK is in a pretty good shape to be the basis for mobile
> java development.
Nice!
I notice (as I've noticed before) that iOS is "almost" macosx, and
android is "almost" linux.
Do you think it would make more sense to model these platforms using the
OS_ENV "subvariant"? Maybe that could help keep down the changes in the
build system even more.
/Magnus
>
> - Johan
More information about the mobile-dev
mailing list