android: Enable llvmpipe when using the swrast driver

(v1) original patches by Wu Zhen
https://patchwork.freedesktop.org/series/6451/
https://patchwork.freedesktop.org/series/17611/

(v2) resolution of conflicts and support for Rob Herring's
"Android: push driver build details to driver makefiles" also by Wu Zhen
https://github.com/maurossi/mesa/commit/f7c2a171a4320a5a713861440f5f3df2611d7b1e.patch

(v3) compatibility with Android 9 by the Replicant project

Changes from v1 to v2 of the patch:

Android.mk add swrast.HAVE_GALLIUM_LLVMPIPE, MESA_ENABLE_LLVM rules
src/gallium/Android.mk resolution of conflicts
src/gallium/drivers/llvmpipe/Android.mk added GALLIUM_LIBS rules
src/gallium/targets/dri/Android.mk resolution of conflicts

Changes from v2 to v3 of the patch:

src/gallium/drivers/llvmpipe/Android.mk
Added module libmesa_winsys_sw_kms_dri
Call mesa-build-with-llvm instead of directly assigning LOCAL_SHARED_LIBRARIES

src/gallium/targets/dri/Android.mk
Include libLLVM as a shared library when building the gallium_dri module

Co-authored-by: Wu Zhen <wuzhen@jidemail.com>

Signed-off-by: Ricardo 'Grim' Cabrita <grimkriegor@krutt.org>
17 jobs for !1403 with feature/enable-llvmpipe-android in 52 minutes and 2 seconds (queued for 1 minute and 16 seconds)
latest detached
Status Name Job ID Coverage
  Containers Build
passed debian #508339

00:03:12

 
  Build+Test
passed meson-arm64 #508348

00:02:30

passed meson-armhf #508347

00:02:12

passed meson-clang #508341

00:09:06

passed meson-clover #508345

00:08:16

passed meson-i386 #508349

00:02:42

passed meson-main #508344

00:13:14

passed meson-swr-glvnd #508340

00:07:12

passed meson-vulkan #508346

00:02:34

passed scons-llvm #508351

00:11:31

passed scons-nollvm #508350

00:07:40

passed scons-swr #508342

00:08:30

passed scons-win64 #508343

00:06:00

 
  Test
passed test-llvmpipe-gles2 1/4 #508352

00:03:57

passed test-llvmpipe-gles2 2/4 #508353

00:03:46

passed test-llvmpipe-gles2 3/4 #508354

00:03:28

passed test-llvmpipe-gles2 4/4 #508355

00:03:52