meson: fix android vulkan build
authorEric Engestrom <eric@engestrom.ch>
Sat, 11 Jul 2020 08:17:30 +0000 (10:17 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jul 2020 09:34:54 +0000 (09:34 +0000)
commitf95637f01a7bc9054638fff0c9225cab0e13b98a
treeafbaa969c1f76f1ab786d6a09ab74109b03cc8c2
parent3ed104b2aa14818f789cbe79de8c6742cc7b5ad7
meson: fix android vulkan build

Android doesn't have `pthread_cancel()` and is unlikely to ever
implement it [1], but `wsi_common_display.c` needs it (or an
alternative).

Let's just disable the platform on Android (as it used to be
before 448eb19158f483d807ef).

[1] https://android-review.googlesource.com/c/platform/bionic/+/1215779/1/docs/status.md

Fixes: 448eb19158f483d807ef ("vulkan: automatically compile the `display` platform when available")
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Acked-by: Nataraj Deshpande <nataraj.deshpande@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5860>
src/amd/vulkan/meson.build
src/freedreno/vulkan/meson.build
src/intel/vulkan/meson.build
src/vulkan/meson.build
src/vulkan/wsi/meson.build