Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd195faa authored by Spandan Das's avatar Spandan Das
Browse files

Use jni_libs to install shared library dependency

`jni_libs` is more specific than `required`, and allows Soong to be more
restrictive when creating the dependency edge from the java_binary to
the cc_library.

Bug: 370110572
Test: m installclean && m <javabin>
Test: verified that the jni libs are installed in out/target/product/...
Change-Id: I52857314eed5944971b8f5993879a9609f1ea24e
parent 991063f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,5 +22,5 @@ java_binary {
    name: "hid",
    wrapper: "hid.sh",
    srcs: ["**/*.java"],
    required: ["libhidcommand_jni"],
    jni_libs: ["libhidcommand_jni"],
}
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ java_binary {
        "src/**/*.java",
        ":uinputcommand_aidl",
    ],
    required: ["libuinputcommand_jni"],
    jni_libs: ["libuinputcommand_jni"],
}

filegroup {