Did you resolve this problem? we have the same requirement as you.
在 2017年9月19日星期二 UTC+8上午4:45:45,Michael Lekman写道:
>
> 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.