docs/android: add docs for preparing offline compilers

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36534>
This commit is contained in:
Yiwei Zhang 2025-08-01 18:38:51 -07:00 committed by Marge Bot
parent c0884d04d8
commit 18d7162951

View file

@ -15,6 +15,29 @@ When building llvmpipe or lavapipe for Android the ndk-build workflow
is also used, but there are additional steps required to add the driver
to the Android OS image.
Preparing offline compilers
---------------------------
For cross-compiling the nvk driver, mesa_clc compiler binary needs to be
prepared first:
.. code-block:: sh
meson setup build-compiler \
-Dprefix=/tmp/mesa-compiler \
-Dbuildtype=release \
-Dstrip=true \
-Dplatforms= \
-Dgallium-drivers= \
-Dvulkan-drivers= \
-Dmesa-clc=enabled \
-Dinstall-mesa-clc=true
meson install -C build-compiler
export PATH=/tmp/mesa-compiler/bin:$PATH
For panvk, ``-Dtools=panfrost -Dinstall-precomp-compiler=true`` is
additionally needed.
Building using the Android NDK
------------------------------