mesa: Make the android_stub be a set of non-installed shared libraries

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 22 September 2020 17:09 UTC

Previously, we included the stubs in our driver binaries, so they didn't call the actual system libraries for these functions. This was enough to build-test the Android code in CI without even the NDK.

To make NDK-built Mesa drivers useful, we need to link against these system libraries that aren't present in the NDK. Split the symbols to separate non-installed shared libraries and link against those, so that when you drop the resulting .so in your /vendor/lib64/hw/, it just works out.

25b36d900ac mesa: Make the android_stub be a set of non-installed shared libraries.
src/android_stub/README.md | 5 ++++
src/android_stub/android_stub.cpp | 54 -------------------------------------
src/android_stub/backtrace_stub.cpp | 14 ++++++++++
src/android_stub/cutils_stub.cpp | 10 +++++++
src/android_stub/hardware_stub.cpp | 10 +++++++
src/android_stub/log_stub.cpp | 15 +++++++++++
src/android_stub/meson.build | 18 ++++++++-----
src/android_stub/sync_stub.cpp | 20 ++++++++++++++
8 files changed, 85 insertions(+), 61 deletions(-)

Upstream: cgit.freedesktop.org


  • Share