|
|
I have a static lib, whose Android.bp is like, java_import { name: "a-V0.1-java", host_supported: true, installable: false, jars: ["a.jar"], }
I can use it in modules other than this apex, since I have tried binaries, prebuilts, java_libs and no tags works for this lib. I wonder whether it is because lib a is on host, while an apex is for target, but in that case, why is there a native_shared_libs tag for apex? It would fit, IMO, if there is a native_static_libs tag. apex { name: "com.android.wifi", defaults: ["com.android.wifi-defaults"], manifest: "apex_manifest.json", }
other modules, which work, are like, java_library { name: "framework-internal-utils", static_libs: [ a-V0.1-java
Thanks a lot
--
--
unsubscribe: [hidden email]
website: http://groups.google.com/group/android-porting
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/e6947da7-1129-4acf-87be-cb1bd931a18dn%40googlegroups.com.
|
|
I have a static lib, whose Android.bp is like,java_import { name: "a-V0.1-java", host_supported: true, installable: false, jars: ["a.jar"], }
I can use it in modules other than this apex, since I have tried binaries, prebuilts, java_libs and no tags works for this lib. I wonder whether it is because lib a is on host, while an apex is for target, but in that case, why is there a native_shared_libs tag for apex? It would fit, IMO, if there is a native_static_libs tag. apex { name: "com.android.wifi", defaults: ["com.android.wifi-defaults"], manifest: "apex_manifest.json", }
other modules, which work, are like, java_library { name: "framework-internal-utils", static_libs: [ a-V0.1-java
Thanks a lot
--
--
unsubscribe: [hidden email]
website: http://groups.google.com/group/android-porting
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/e6947da7-1129-4acf-87be-cb1bd931a18dn%40googlegroups.com.
--
--
unsubscribe: [hidden email]
website: http://groups.google.com/group/android-porting
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/CAO%2Bn3QDPiHwDF0_6Q1i9jQd_KiLFP-nR_m2k2%2BndTodNejZDFw%40mail.gmail.com.
|
|
adding following line to the makefile of the lib works, apex_available: ["//apex_available:platform", "//apex_available:anyapex", ],
Le mardi 9 février 2021 à 23:57:47 UTC+8, bon ami a écrit :
I have a static lib, whose Android.bp is like,java_import { name: "a-V0.1-java", host_supported: true, installable: false, jars: ["a.jar"], }
I can use it in modules other than this apex, since I have tried binaries, prebuilts, java_libs and no tags works for this lib. I wonder whether it is because lib a is on host, while an apex is for target, but in that case, why is there a native_shared_libs tag for apex? It would fit, IMO, if there is a native_static_libs tag. apex { name: "com.android.wifi", defaults: ["com.android.wifi-defaults"], manifest: "apex_manifest.json", }
other modules, which work, are like, java_library { name: "framework-internal-utils", static_libs: [ a-V0.1-java
Thanks a lot
--
--
unsubscribe: [hidden email]
website: http://groups.google.com/group/android-porting
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/0f5a7013-eafe-45be-a536-42faaae62761n%40googlegroups.com.
|
|