Android.bp accessibility

387 views
Skip to first unread message

REGURI AKANKSHA

unread,
Oct 4, 2019, 12:57:07 PM10/4/19
to Android Building
Is there any case that  Android.bp can access variables declared in other files.
say a variable "platform" is declared in some .mk file Can Android.bp now use that variable "platform"
As per my knowledge it's "no" but I want to make sure about this
Thanks in advance

Colin Cross

unread,
Oct 4, 2019, 1:10:17 PM10/4/19
to android-...@googlegroups.com
Soong cannot access variables defined in Make.

For variables defined in Android.bp files this is documented at https://android.googlesource.com/platform/build/soong/+/master/README.md#variables:
"Variables are scoped to the remainder of the file they are declared in, as well as any child blueprint files."


--
--
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/0b6fc82b-4d66-4ad4-b0d1-3fbb4f192a22%40googlegroups.com.

REGURI AKANKSHA

unread,
Oct 6, 2019, 2:13:45 PM10/6/19
to android-...@googlegroups.com
Can u help me know how to define a variable of type string in Android.bp?
say if in a folder1/Android.bp string x = "hello" is defined. As per above explaination this variable x can accessed in folder1/folder2/Android.bp ryt?
say a module_name is equated to x, then the module name becomes hello? In what fashion  folder1/folder2/Android.bp can  access x?
Thanks in advance.

Reply all
Reply to author
Forward
0 new messages