radv: Fix vulkan build in meson.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 19 Jun 2019 13:03:43 +0000 (15:03 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 19 Jun 2019 23:27:46 +0000 (23:27 +0000)
Apparently the android part was never ported to meson.

CC: <mesa-stable@lists.freedesktop.org>
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/meson.build

index faa5f32eba3bad2c826bea90fc05225072a26225..2ff2fb34465c8bfb35701fc4d4abb4af512e83bb 100644 (file)
@@ -129,6 +129,13 @@ if with_xlib_lease
   radv_flags += '-DVK_USE_PLATFORM_XLIB_XRANDR_EXT'
 endif
 
+if with_platform_android
+  radv_flags += [
+    '-DVK_USE_PLATFORM_ANDROID_KHR'
+  ]
+  libradv_files += files('radv_android.c')
+endif
+
 libvulkan_radeon = shared_library(
   'vulkan_radeon',
   [libradv_files, radv_entrypoints, radv_extensions_c, amd_vk_format_table_c, sha1_h, xmlpool_options_h],