mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
docs/android: add docs for preparing offline compilers
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36534>
This commit is contained in:
parent
c0884d04d8
commit
18d7162951
1 changed files with 23 additions and 0 deletions
|
|
@ -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
|
||||
------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue