meson/android: amend the condition for libbacktrace

libbacktrace compatibility has been dropped since Android 14, so the
current flags and deps shall be kept behind api level < 34.

Meanwhile, its successor, libunwindstack, has been available since
Android 11 (api level 31). So one can hook that up if needed.

Reviewed-by: Antonio Ospite <antonio.ospite@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36961>
This commit is contained in:
Yiwei Zhang 2025-08-23 16:41:09 -07:00 committed by Marge Bot
parent 9239160a29
commit 5349537cb3

View file

@ -905,10 +905,6 @@ with_libbacktrace = get_option('android-libbacktrace') \
.disable_auto_if(not with_platform_android) \
.allowed()
if with_libbacktrace
cpp_args += '-DWITH_LIBBACKTRACE'
endif
if with_platform_android
dep_android_ui = null_dep
dep_android_mapper4 = null_dep
@ -919,7 +915,8 @@ if with_platform_android
dependency('log'),
dependency('sync'),
]
if with_libbacktrace
if with_libbacktrace and get_option('platform-sdk-version') < 34
cpp_args += '-DWITH_LIBBACKTRACE'
dep_android += dependency('backtrace')
endif
if get_option('platform-sdk-version') >= 26