summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2019-06-19 15:05:40 +0200
committerBas Nieuwenhuizen <[email protected]>2019-06-19 23:27:46 +0000
commit755c633b8d9c15227ad07bbc98f06627d4ecf55d (patch)
treeaeedda42b8a8a909d18dd87530a1dae21317fb3c
parent4c300bd328138949659892447e7e68028cc950cb (diff)
anv: Fix vulkan build in meson.
Apparently the android part was never ported to meson. CC: <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
-rw-r--r--src/intel/vulkan/meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/intel/vulkan/meson.build b/src/intel/vulkan/meson.build
index 03dbd98b5a4..7fe660983d9 100644
--- a/src/intel/vulkan/meson.build
+++ b/src/intel/vulkan/meson.build
@@ -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',
[