writing header libraries in Android.bp

981 views
Skip to first unread message

REGURI AKANKSHA

unread,
Oct 14, 2019, 12:46:33 PM10/14/19
to Android Building
How to write headers in Android.bp?

say Android.mk has header of this type 
include $(CLEAR_VARS)
LOCAL_COPY_HEADERS_TO := x
LOCAL_COPY_HEADERS    := y
LOCAL_PROPRIETARY_MODULE := z
include $(BUILD_COPY_HEADERS)

How to write such headers in Android.bp? i know that LOCAL_COPY_HEADERS is deprecated in Soong, but have no idea of how to write to Android.bp
Thanks in Advance

Dan Willemsen

unread,
Oct 17, 2019, 12:52:07 PM10/17/19
to Android Building
COPY_HEADERS is deprecated in Make, and unsupported in Soong. Use a header library instead. That may require re-arranging your source tree, or creating a directory full of symlinks, as we don't support rewriting the directory structures the same was as COPY_HEADERS, you just export everything under a directory.


- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
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 android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/2ac5ecc7-d171-4d9e-9a6c-a92fd9612cfa%40googlegroups.com.

seeker

unread,
Oct 21, 2019, 12:44:36 PM10/21/19
to Android Building
Thanks Dan , Can u clarify one last thing, So here for all the modules in Android.bp 
export_include_dirs : ["y"] need to be added and so that the code would be linked right?
Reply all
Reply to author
Forward
0 new messages