libupdater_core (which builds blockimg.cpp) does not depend on libinstall.
It gets edify/include and otautil/include through the libedify and
libotautil static libraries listed in libupdater_static_libs:

https://cs.android.com/android/platform/superproject/+/master:bootable/recovery/updater/Android.bp;drc=2bb374a86d0161700f01b68433063b0b13adc86a;l=16

Adding libinstall to that list would get you access to the header files,
but I don't think the code would be compiled into the updater binary.
That's still in make, so you'd have to add it to this list:

https://cs.android.com/android/platform/superproject/+/master:bootable/recovery/updater/Android.mk;drc=2bb374a86d0161700f01b68433063b0b13adc86a;l=25

That being said, I don't know anything about this code, so I don't know if
it's valid to use libinstall within the updater executable, since it's
normally in the recovery executable.

- Dan


On Thu, Mar 19, 2020 at 11:46 PM 임정민 <[email protected]> wrote:

> I want to include install/install.h at blockimg.cpp
> but It returns always
>
> bootable/recovery/updater/blockimg.cpp: fatal error: 'install/install.h'
> file not found
> #include "install/install.h"
> ^~~~~~~~~~~~~~~~~~~
>
> I think this is related with Android.bp
>
> [ 35% 45930/130598] //bootable/recovery/updater:libupdater_core clang++
> install.cpp
> FAILED:
> out/soong/.intermediates/bootable/recovery/updater/libupdater_core/linux_glibc_x86_64_static/obj/bootable/recovery/updater/blockimg.o
> -Ibootable/recovery/edify/include
> -Ibootable/recovery/otautil/include
>
> there is no -Ibootable/recovery/install/include
>
> could you guide for me how to include install.h properly
>
> --
> --
> 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/09e2f0aa-d4b6-47af-aa86-2ed6057485eb%40googlegroups.com
> <https://groups.google.com/d/msgid/android-building/09e2f0aa-d4b6-47af-aa86-2ed6057485eb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
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/CALQgHdnQMwgZqAPL6hCMdsiF-pEkn%3DHMhFHWPwoE1b6iY_ZVqw%40mail.gmail.com.

Reply via email to