android: Fix android build.
authorMichael Lentine <mlentine@google.com>
Thu, 3 Dec 2015 22:33:09 +0000 (14:33 -0800)
committerMark Lobodzinski <mark@lunarg.com>
Fri, 4 May 2018 15:24:21 +0000 (09:24 -0600)
Temporarily disable shader checker which now depends on glslang
Fix xcb guards and set the ifdef based on platform

include/vulkan/vk_layer.h

index 47165f7..31040c0 100644 (file)
 #else
 #  define VK_LAYER_EXPORT
 #endif
+#if defined(__ANDROID__)
+#define VK_USE_PLATFORM_ANDROID_KHR
+#elif defined(_WIN32)
+#define VK_USE_PLATFORM_WIN32_KHR
+#elif defined(__unix__)
+#define VK_USE_PLATFORM_MIR_KHR
+#define VK_USE_PLATFORM_WAYLAND_KHR
+#define VK_USE_PLATFORM_XLIB_KHR
+#define VK_USE_PLATFORM_XCB_KHR
+#else
+#error "Unsupported Platform!"
+#endif
 
 typedef void * (VKAPI_PTR *PFN_vkGPA)(void* obj, const char * pName);
 typedef struct VkBaseLayerObject_