building static libs for ios/android
Magnus Ihse Bursie
magnus.ihse.bursie at oracle.com
Mon Mar 25 14:31:16 UTC 2024
On 2024-03-23 17:42, Johan Vos wrote:
> Hi,
>
> I created a PR that brings in the remaining changes needed to compile
> an image containing the static JDK libs (not the VM libs) for ios/android:
> https://github.com/openjdk/mobile/pull/20
>
> As a major improvement, this PR also adds ios/android build scripts
> for GA (thanks to Abhinay Agarwal for doing this). As a consequence,
> we will immediately notice if an upstream commit (in openjdk/jdk) is
> breaking the build for the mobile static libs.
>
> In a previous message, I suggested a separate branch would be my
> preference for doing development work. However, there are 2 reasons
> why I prefer this PR to go into the main branch:
> 1. it seems I don't have permission to create new branches
> 2. there is at least 1 major embarrassing bug in the current main
> branch (fi instead of endif) hence an improvement sounds appropriate.
>
> Slightly related: the auto-merge operation by the skara bot had 2
> merge conflicts recently, due to changes in the upstream make
> directories. I fixed the conflicts, and while I didn't look in the
> details yet, it seems Magnus is doing simplifications in openjdk/jdk
> that are also simplifying some of the build logic for mobile. That is
> great, thanks for that!
<ominous music>More change is on the horizon. A storm is
coming.</ominous music> Or maybe not. But things will happen in the area
of static build. Hopefully good changes. :-) This is driven by the
Hermetic Java project, which requires static builds of the entire JDK.
I guess in the end this part of Hermetic Java is quite similar to the
mobile project, but with the intention of bringing this to mainline. As
a result of this wish, I wanted to make sure that static build is
properly treated as a "first class citizen" in the build system.
I was under the impression that the mobile project was more or less
abandoned, but I'm happy to see this is not the case. I hope I can
communicate with you so that we end up creating a single solution for
producing static builds that are usable both for mobile and Hermetic Java.
/Magnus
More information about the mobile-dev
mailing list