layers: Re-enable support for linux
authorMark Lobodzinski <mark@lunarg.com>
Tue, 16 Feb 2016 00:33:56 +0000 (17:33 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Tue, 16 Feb 2016 00:33:56 +0000 (17:33 -0700)
vulkan.py

index cc2f3c2..77fdffb 100755 (executable)
--- a/vulkan.py
+++ b/vulkan.py
@@ -1200,10 +1200,13 @@ lunarg_debug_marker = Extension(
 )
 
 import sys
-if sys.platform == 'win32':
+if sys.platform.startswith('win32'):
     extensions = [core, ext_khr_surface, ext_khr_device_swapchain, ext_khr_win32_surface]
     extensions_all = [core, ext_khr_surface, ext_khr_device_swapchain, ext_khr_win32_surface, lunarg_debug_report, lunarg_debug_marker]
-else:
+elif sys.platform.startswith('linux'):
+    extensions = [core, ext_khr_surface, ext_khr_device_swapchain, ext_khr_xcb_surface]
+    extensions_all = [core, ext_khr_surface, ext_khr_device_swapchain, ext_khr_xcb_surface, lunarg_debug_report, lunarg_debug_marker]
+else: # android
     extensions = [core, ext_khr_surface, ext_khr_device_swapchain, ext_khr_xcb_surface, ext_khr_android_surface]
     extensions_all = [core, ext_khr_surface, ext_khr_device_swapchain, ext_khr_xcb_surface, ext_khr_android_surface, lunarg_debug_report, lunarg_debug_marker]