anv: Fix vulkan build in meson.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 19 Jun 2019 13:05:40 +0000 (15:05 +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>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/intel/vulkan/meson.build

index 03dbd98b5a4c009e4b320035d27ad412b4e486db..7fe660983d955d527003a53856d3b20309a380b4 100644 (file)
@@ -112,7 +112,6 @@ endforeach
 
 libanv_files = files(
   'anv_allocator.c',
-  'anv_android_stubs.c',
   'anv_android.h',
   'anv_batch_chain.c',
   'anv_blorp.c',
@@ -178,6 +177,13 @@ if with_xlib_lease
   anv_flags += '-DVK_USE_PLATFORM_XLIB_XRANDR_EXT'
 endif
 
+if with_platform_android
+  anv_flags += '-DVK_USE_PLATFORM_ANDROID_KHR'
+  libanv_files += files('anv_android.c')
+else
+  libanv_files += files('anv_android_stubs.c')
+endif
+
 libanv_common = static_library(
   'anv_common',
   [