meson: turn android-libbacktrace into a feature option
Signed-off-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20915>
This commit is contained in:
committed by
Marge Bot
parent
10992256dd
commit
6291d4d339
12
meson.build
12
meson.build
@@ -818,14 +818,10 @@ if with_android_stub and not with_platform_android
|
||||
error('`-D android-stub=true` makes no sense without `-D platforms=android`')
|
||||
endif
|
||||
|
||||
if get_option('android-libbacktrace') == 'auto'
|
||||
with_libbacktrace = with_platform_android
|
||||
else
|
||||
with_libbacktrace = get_option('android-libbacktrace') == 'true'
|
||||
if with_libbacktrace and not with_platform_android
|
||||
error('`-D android-libbacktrace=true` makes no sense without `-D platforms=android`')
|
||||
endif
|
||||
endif
|
||||
with_libbacktrace = get_option('android-libbacktrace') \
|
||||
.require(with_platform_android, error_message : '`-D android-libbacktrace=enabled` makes no sense without `-D platforms=android`') \
|
||||
.disable_auto_if(not with_platform_android) \
|
||||
.allowed()
|
||||
|
||||
if with_libbacktrace
|
||||
cpp_args += '-DWITH_LIBBACKTRACE'
|
||||
|
||||
Reference in New Issue
Block a user