Reland "Generate libvulkan.so.1 on Linux instead of libvulkan.so"
authorShahbaz Youssefi <shabbyx@gmail.com>
Tue, 3 Nov 2020 03:32:02 +0000 (22:32 -0500)
committerMike Schuchardt <mikes@lunarg.com>
Fri, 13 Nov 2020 19:11:08 +0000 (11:11 -0800)
Chromium now uses VK_KHR_xcb_surface instead of VK_KHR_xlib_surface, so
it's able to use the gn build of Vulkan-Loader.

BUILD.gn

index 671295f..6cfeb30 100644 (file)
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -173,14 +173,10 @@ if (!is_android) {
 
       runtime_deps = [ "//sdk/lib/fdio:fdio_sdk" ]
     }
-  }
-
-  if (is_linux && vulkan_loader_shared) {
-    copy("libvulkan-abi1") {
-      sources = [ "${root_out_dir}/libvulkan.so" ]
-      outputs = [ "${root_out_dir}/libvulkan.so.1" ]
 
-      deps = [ ":libvulkan" ]
+    # Create libvulkan.so.1 on Linux instead of libvulkan.so
+    if (is_linux && vulkan_loader_shared) {
+      output_extension = "so.1"
     }
   }
 }