android: Make libbacktrace optional again

For the same reason why we used to have USE_LIBBACKTRACE with the old
Android makefiles, allow to build Mesa without linking to it.

In recent VNDK versions, libbacktrace isn't available.

When building without linking libbacktrace, for some reason some symbols
related to C++ exception handling are exposed. Allow them in the symbols
check script.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Helen Koike <helen.koike@collabora.com>
Reviewed-by: Sergi Blanch Torné <sergi.blanch.torne@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20019>
This commit is contained in:
Tomeu Vizoso
2022-11-15 09:48:02 +01:00
committed by Helen Koike
parent 0e286d0dbc
commit b1bd6aa21a
5 changed files with 85 additions and 4 deletions

View File

@@ -43,7 +43,13 @@ option(
value : false,
description : 'Build against android-stub',
)
option(
'android-libbacktrace',
type : 'combo',
value : 'auto',
choices : ['auto', 'true', 'false'],
description : 'Use Android\'s libbacktrace',
)
option(
'dri3',
type : 'feature',