ci/android: add a script to build LLVM libraries for Android

In order to build the mesa llvmpipe driver for Android, LLVM libraries
for Android are needed, but building them each time a new upstream mesa
is built would be too much overhead.

So add a script to build LLVM libraries for Android and call it from the
debian/android_build job. The actual build will be performed only when
necessary and the resulting artifact will be uploaded to the S3 bucket
to be re-used when building mesa for Android.

The build process follows what has been documented in
docs/drivers/llvmpipe.rst

Reviewed-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31093>
This commit is contained in:
Antonio Ospite
2024-09-09 15:01:44 +02:00
committed by Marge Bot
parent f1f4570402
commit 88dfda7f0a
5 changed files with 121 additions and 2 deletions

View File

@@ -161,6 +161,8 @@ debian/android_build:
MESA_IMAGE_TAG: &debian-android_build ${DEBIAN_BUILD_TAG}
ANDROID_SDK_VERSION: 33
ANDROID_NDK: android-ndk-r25b
LLVM_VERSION: llvmorg-18.1.8
LLVM_ARTIFACT_NAME: android-x86_64-llvm-20241219
.use-debian/android_build:
extends: