RFR: 8265469: Allow to build media and webkit for Linux-AArch64

Johan Vos jvos at openjdk.java.net
Fri Apr 23 08:50:25 UTC 2021


On Thu, 22 Apr 2021 20:07:40 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> Changes that allow to build linux configuration on Linux AArch64
>> This PR introduces an `IS_AARCH64` parameter in build.gradle.
>> This PR already contains the change from PR #465 so if this one gets integrated, that change needs to removed from this PR.
>
> build.gradle line 2865:
> 
>> 2863:                          "OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=jfxmedia",
>> 2864:                          "COMPILE_PARFAIT=${compileParfait}",
>> 2865:                          IS_64 ? IS_AARCH64 ? "ARCH=aarch64" : "ARCH=x64" : "ARCH=x32",
> 
> Does `ARCH=aarch64` get handled correctly on Mac and Windows?

We don't have media/web on Windows-aarch64 yet.
On mac, it is handled differently: if a TARGET_ARCH is specified, the mac.gradle will add -target TARGET_ARCH-apple-macos-11 to the CC parameter which is passed from build.gradle to the media build scripts.

I realise we are not consequent here: we specify the ARCH to the makefile, but we also provide the CC and LINKER properties which can contain the architecture as well.

-------------

PR: https://git.openjdk.java.net/jfx/pull/467


More information about the openjfx-dev mailing list