goldfish-opengl: generate a ICD
This generates an ICD. vk.xml taken from the latest
platform/external/qemu/android/android-emugl/host/
libs/libOpenglRender/vulkan-registry/xml/vk.xml
and the icd gen file taken from mesa.
meson amd64-build
ninja -C am64-build/ install
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/cereal_icd.json vulkaninfo
BUG=202552093
TEST=run vulkaninfo
Change-Id: I87c04f757e24801fa3dbb82615d6203489762101
diff --git a/meson.build b/meson.build
index 25c89a7..3fc0928 100644
--- a/meson.build
+++ b/meson.build
@@ -6,6 +6,16 @@
license : 'MIT OR Apache-2.0')
cc = meson.get_compiler('cpp')
+prog_python = import('python').find_installation('python3')
+
+#===============#
+# Options #
+#===============#
+
+with_vulkan_icd_dir = get_option('vulkan-icd-dir')
+if with_vulkan_icd_dir == ''
+ with_vulkan_icd_dir = join_paths(get_option('datadir'), 'vulkan/icd.d')
+endif
#===============#
# Configuration #