Enable building guest Gfxstream components on host

... so that upcoming end2end tests can use the GL/VK ICDs.

Bug: b/292257025
Test: mma
Change-Id: I8f3a19a6f8f81b2f368b4a1d5031d9e77358e327
diff --git a/guest/vulkan_enc/Android.bp b/guest/vulkan_enc/Android.bp
index dc7ca7d..72250b5 100644
--- a/guest/vulkan_enc/Android.bp
+++ b/guest/vulkan_enc/Android.bp
@@ -21,29 +21,30 @@
 
 cc_library_shared {
     name: "libvulkan_enc",
+    host_supported: true,
     vendor: true,
     defaults: [
         "libgfxstream_guest_cc_defaults",
     ],
     header_libs: [
         "gfxstream_vulkan_headers",
-        "hwvulkan_headers",
+        "libgfxstream_guest_graphics_headers",
         "libgfxstream_guest_iostream",
+        "libnativewindow_headers",
     ],
     shared_libs: [
         "libandroidemu",
         "libcutils",
         "liblog",
-        "libnativewindow",
-        "libsync",
         "libOpenglCodecCommon",
         "lib_renderControl_enc",
     ],
     static_libs: [
         "libarect",
         "libdrm",
-        "libGoldfishAddressSpace",
         "libplatform",
+        "libGoldfishAddressSpace",
+        "libgfxstream_guest_gralloc",
     ],
     cflags: [
         "-DLOG_TAG=\"goldfish_vulkan\"",
@@ -79,4 +80,14 @@
     export_include_dirs: [
         ".",
     ],
+    target: {
+        android: {
+            shared_libs: [
+                "libnativewindow",
+            ],
+            header_libs: [
+                "hwvulkan_headers",
+            ],
+        }
+    }
 }
\ No newline at end of file