What is the error?  Soong won't unnecessarily copy the prebuilt to
out/soong/.intermediates if it doesn't need to, it will use it in place if
it can.

On Mon, Sep 18, 2017 at 1:19 PM, Michael Lekman <[email protected]>
wrote:

> It fails to link when using cc_prebuilt_library_static.
>
> cc_prebuilt_library_static {
>     name: "libteststatic",
>     defaults: ["test-defaults"],
>
>     compile_multilib: "both",
>     multilib: {
>         lib32: {
>             srcs: ["prebuilts/static-lib/lib/libteststatic.a"],
>         },
>         lib64: {
>             srcs: ["prebuilts/static-lib/lib64/libteststatic.a"],
>         },
>     },
>
>     export_include_dirs: ["include"],
> }
>
> cc_library_static {
>     name: "libtest2",
>     defaults: ["libtest2_defaults"],
>     srcs: ["src/test.cpp"],
>
>     whole_static_libs: [
>         "libc_logging",
>         "libteststatic",
>     ],
>
>     include_dirs: ["vendor/test/test/include"],
>
>     export_include_dirs: ["include"],
> }
>
>
> The prebuilt static libs are copied to %OUT/obj/STATIC_LIBRARIES/
> libteststatic_intermediates/libteststatic.a and
> %OUT/obj_arm/STATIC_LIBRARIES/libteststatic_intermediates/libteststatic.a
> but not to out/soong/.intermediates/
>
> BR
> /Michael
>
> --
> --
> 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.

Reply via email to