[loader] Package up loader library for SDK

This packages up the vulkan loader library (libvulkan.so) for
incorporation in an SDK.  For now, this includes a runtime dependency
on FDIO, but this will be cleaned up when the namespace logic is
refactored.

Test: Build with
//third_party/vulkan_loader_and_validation_layers/loader:loader_sdk in
an SDK target and examine the generated manifest.

DX-303 #comment

Change-Id: Ic37052e55098238c035caee568d15b612c5dd080
diff --git a/loader/BUILD.gn b/loader/BUILD.gn
index b7be17c..48a383d 100644
--- a/loader/BUILD.gn
+++ b/loader/BUILD.gn
@@ -19,6 +19,7 @@
 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 # IN THE SOFTWARE.
 
+import("//build/cpp/prebuilt_shared_library.gni")
 import("//build/package.gni")
 import("//build/fidl/toolchain.gni")
 
@@ -40,10 +41,16 @@
   ]
 }
 
-shared_library("loader") {
+prebuilt_shared_library("loader") {
   # The Vulkan loader is named libvulkan
   output_name = "vulkan"
 
+  category = "partner"
+
+  # The Vulkan loader's interface is defined by standard Khronos vulkan headers
+  # which can be obtained separately from the loader implementation itself.
+  no_headers = true
+
   configs += [
     "../:vulkan_build_config",
     "../:include_extra_vulkan_headers",
@@ -92,5 +99,11 @@
   # standard library.
   ldflags = [ "-nostdlib++" ]
 
-  libs = [ "zircon" ]
+  libs = [
+    "zircon"
+  ]
+
+  runtime_deps = [
+    "//zircon/public/lib/fdio:fdio_sdk",
+  ]
 }