mesa/src/android_stub/meson.build
Tomeu Vizoso b1bd6aa21a 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>
2023-01-25 08:58:25 -03:00

21 lines
429 B
Meson

if with_android_stub
stub_libs = []
lib_names = ['cutils', 'hardware', 'log', 'nativewindow', 'sync']
if with_libbacktrace
lib_names += ['backtrace']
endif
foreach lib : lib_names
stub_libs += shared_library(
lib,
files(lib + '_stub.cpp'),
include_directories : inc_include,
install : false,
)
endforeach
dep_android = declare_dependency(
link_with : stub_libs,
)
endif