I want to include multiple shared and static libraries built by 3rd party 
in my Native Application. Can anyone help me? I am using Android.bp file as 
shown below, but it is not working.

cc_prebuilt_library_static {
        name: "boost-prebuilt",
        target: {
            android_arm: {
                srcs: ["include/boost/lib/libboost_chrono-clang-mt-1_63.a",
                "include/boost/lib/libboost_date_time-clang-mt-1_63.a",
                "include/boost/lib/libboost_filesystem-clang-mt-1_63.a",
                
"include/boost/lib/libboost_program_options-clang-mt-1_63.a",
                "include/boost/lib/libboost_regex-clang-mt-1_63.a",
                "include/boost/lib/libboost_serialization-clang-mt-1_63.a",
                "include/boost/lib/libboost_system-clang-mt-1_63.a",
                "include/boost/lib/libboost_thread-clang-mt-1_63.a",
                "include/boost/lib/libboost_timer-clang-mt-1_63.a",
                "include/boost/lib/libboost_wserialization-clang-mt-1_63.a"
                ],
            },
            android_arm64: {
                srcs: 
["include/boost/lib64/libboost_chrono-clang-mt-1_63.a",
                "include/boost/lib64/libboost_date_time-clang-mt-1_63.a",
                "include/boost/lib64/libboost_filesystem-clang-mt-1_63.a",
                
"include/boost/lib64/libboost_program_options-clang-mt-1_63.a",
                "include/boost/lib64/libboost_regex-clang-mt-1_63.a",
                
"include/boost/lib64/libboost_serialization-clang-mt-1_63.a",
                "include/boost/lib64/libboost_system-clang-mt-1_63.a",
                "include/boost/lib64/libboost_thread-clang-mt-1_63.a",
                "include/boost/lib64/libboost_timer-clang-mt-1_63.a",
                
"include/boost/lib64/libboost_wserialization-clang-mt-1_63.a"
                ],
            },
        },
        strip: {
            none:true,
        },
    }

On Saturday, December 15, 2018 at 1:15:10 AM UTC+5:30, Wesolowski, 
Krzysztof wrote:
>
> Sth like that?
>
> cc_prebuilt_library_shared {
>     name: "<name>",
>     vendor: true,
>     compile_multilib: "both",
>     multilib: {
>       lib32: {
>          srcs: ["lib/name.so"],
>       },
>       lib64: {
>          srcs: ["lib64/name.so"],
>       },
>     },
>     export_include_dirs: ["include"],
> }
>
>
> BR, K.
>
>
> ------------------------------
> *From:* [email protected] <javascript:> <
> [email protected] <javascript:>> on behalf of dhinesh kumar <
> [email protected] <javascript:>>
> *Sent:* Thursday, December 13, 2018 8:09:11 PM
> *To:* [email protected] <javascript:>
> *Subject:* [android-building] prebuilt shared library using Android.bp 
>  
> Hi, 
>
> I am new to Android.bp
> I have a requirement where I need to use prebuilt shared library for both  
> arm and arm64 architectures.
> How to add conditional sources picking in Android.bp based on the arch 
> type building.
>
> Sample:
>
> cc_prebuilt_library_shared {
>     name: "libmymodule",
>     owner: "mycomp",
>
>     srcs: ["obj/libmymodule.so"],
>     compile_multilib: "both",
>     vendor_available: true,
>
>     header_libs: ["libmymodule_headers"],
>     export_header_lib_headers: ["libmymodule_headers"],
> }
>
> -- 
> Yours,
> Dhineshkumar C
> Mob: +919611469156
>
> -- 
> -- 
> You received this message because you are subscribed to the "Android 
> Building" mailing list.
> To post to this group, send email to [email protected] 
> <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en 
> <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fandroid-building%3Fhl%3Den&data=02%7C01%7Ckrzysztof.wesolowski%40volvocars.com%7C6a1a1d1c6552488b097f08d661360627%7C81fa766ea34948678bf4ab35e250a08f%7C0%7C1%7C636803281995306137&sdata=sj%2BzSO45UEe7PTw5XyEO81%2Bpcj211x0v8XZk62GEv94%3D&reserved=0>
>
> --- 
> 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] <javascript:>.
> For more options, visit https://groups.google.com/d/optout 
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Ckrzysztof.wesolowski%40volvocars.com%7C6a1a1d1c6552488b097f08d661360627%7C81fa766ea34948678bf4ab35e250a08f%7C0%7C1%7C636803281995316145&sdata=kjqj1cz5ip4j9mnFp9xHSTKWorEZo%2FinKCQXnYvZzvw%3D&reserved=0>
> .
>

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/21fc0ec3-72c7-4f86-9c3e-7f37bec76543%40googlegroups.com.

Reply via email to