You need to use java_import modules to create a module for the jars.
Something like:
java_import {
name: "my_prebuilt_jars",
jars: [
"my_prebuilt_jar1.jar",
"my_prebuilt_jar2.jar",
],
}
Then you can add to static_libs:
"my_prebuilt_jars"
On Mon, Mar 18, 2019 at 12:35 PM KarenL <[email protected]> wrote:
> Hi
>
> I would like to add a couple of prebuilt jars and some source files to the
> Android 9 aosp image that I"m building.
> With lower versions of Android I've added these easily to frameworks.jar.
> This was straight forward to do when framework.jar was built using a make
> file. Its a lot less clear how to do this using blueprint files and soong.
>
> This is what I've tried and its not enough.
>
> Add a new folder to frameworks/base for my source files:
> frameworks/base/myfolder/java/com/xxx
>
> Edit the Android.bp file in frameworks/base and add source files to the
> "srcs" list
> "myfolder/java/com/xxx/source1.java"
> "myfolder/java/com/xxx/source2.java"
>
> Edit the "static_libs" list and add my prebuilt jars
> "prebuilt_jar1",
> "prebuilt_jar2",
>
> I'm not sure where to put these prebuilt jars.
> Do they go somewhere inside myfolder? Where are the other static libs in
> this list picked up from?
> Do I need to create .bp files inside myfolder to build this new part?
>
> Do you have any suggestions as to how to add prebuilt jars to Android 9.
>
> Thanks for your help.
> Karen
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
--
You received this message because you are subscribed to the "Android Building"
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.