xref: /aosp_15_r20/external/crosvm/gpu_display/patches/Android.bp.patch (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1diff --git a/gpu_display/Android.bp b/gpu_display/Android.bp
2index dc5db8549..18a04722e 100644
3--- a/gpu_display/Android.bp
4+++ b/gpu_display/Android.bp
5@@ -29,7 +29,6 @@ rust_library {
6     edition: "2021",
7     features: [
8         "android_display",
9-        "android_display_stub",
10         "gfxstream",
11     ],
12     rustlibs: [
13@@ -43,7 +42,26 @@ rust_library {
14     ],
15     proc_macros: ["libremain"],
16     static_libs: ["libdisplay_wl"],
17-    shared_libs: ["libwayland-client"],
18+
19+    // added manually
20+    target: {
21+        host: {
22+            shared_libs: ["libwayland_client"],
23+            features: ["android_display_stub"],
24+        },
25+        android: {
26+            static_libs: [
27+                "libwayland_client_static",
28+                "libffi",
29+                "libcrosvm_android_display_client",
30+            ],
31+            shared_libs: [
32+                "libc++",
33+                "libbinder_ndk",
34+                "libnativewindow",
35+            ],
36+        },
37+    },
38 }
39
40 cc_library_static {
41