mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 02:10:12 +01:00
meson: Define ANDROID and ANDROID_API_LEVEL when compiling for Android
Set ANDROID_API_LEVEL based on the value we already have and define ANDROID to make sure we build code paths that are guarded by that. Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6112>
This commit is contained in:
parent
e05e60b230
commit
5096ebf954
1 changed files with 5 additions and 1 deletions
|
|
@ -854,7 +854,11 @@ if with_platform_android
|
|||
dep_android += dependency('nativewindow')
|
||||
endif
|
||||
endif
|
||||
pre_args += '-DHAVE_ANDROID_PLATFORM'
|
||||
pre_args += [
|
||||
'-DHAVE_ANDROID_PLATFORM',
|
||||
'-DANDROID',
|
||||
'-DANDROID_API_LEVEL=' + get_option('platform-sdk-version').to_string()
|
||||
]
|
||||
endif
|
||||
if with_platform_haiku
|
||||
pre_args += '-DHAVE_HAIKU_PLATFORM'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue