diff options
| author | 2024-10-03 23:22:45 +0000 | |
|---|---|---|
| committer | 2024-10-03 23:22:45 +0000 | |
| commit | cd195faa9d2480fa63c083f895ecd0fa839280d2 (patch) | |
| tree | b05958fbca9243276b2f93854d7365133a77d0d1 | |
| parent | 991063f6e22e9f8cb86268eed16bfa2921e22701 (diff) | |
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
| -rw-r--r-- | cmds/hid/Android.bp | 2 | ||||
| -rw-r--r-- | cmds/uinput/Android.bp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmds/hid/Android.bp b/cmds/hid/Android.bp index a6e27698e36c..b93227a60d99 100644 --- a/cmds/hid/Android.bp +++ b/cmds/hid/Android.bp @@ -22,5 +22,5 @@ java_binary { name: "hid", wrapper: "hid.sh", srcs: ["**/*.java"], - required: ["libhidcommand_jni"], + jni_libs: ["libhidcommand_jni"], } diff --git a/cmds/uinput/Android.bp b/cmds/uinput/Android.bp index da497dcf908e..cec8a0d88b99 100644 --- a/cmds/uinput/Android.bp +++ b/cmds/uinput/Android.bp @@ -25,7 +25,7 @@ java_binary { "src/**/*.java", ":uinputcommand_aidl", ], - required: ["libuinputcommand_jni"], + jni_libs: ["libuinputcommand_jni"], } filegroup { |