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.
On Fri, Oct 4, 2019 at 10:40 PM 'Colin Cross' via Android Building < android-building@googlegroups.com> wrote: > 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." > > > On Fri, Oct 4, 2019 at 9:57 AM REGURI AKANKSHA <akhireguri...@gmail.com> > wrote: > >> 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 >> >> -- >> -- >> You received this message because you are subscribed to the "Android >> Building" mailing list. >> To post to this group, send email to android-building@googlegroups.com >> To unsubscribe from this group, send email to >> android-building+unsubscr...@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-building+unsubscr...@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 >> <https://groups.google.com/d/msgid/android-building/0b6fc82b-4d66-4ad4-b0d1-3fbb4f192a22%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 android-building@googlegroups.com > To unsubscribe from this group, send email to > android-building+unsubscr...@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-building+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-building/CAMbhsRTwNDjBZe-2BxFLBD36k47s%3D41St9KauOxEXNxX6Qvh4g%40mail.gmail.com > <https://groups.google.com/d/msgid/android-building/CAMbhsRTwNDjBZe-2BxFLBD36k47s%3D41St9KauOxEXNxX6Qvh4g%40mail.gmail.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 android-building@googlegroups.com To unsubscribe from this group, send email to android-building+unsubscr...@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-building+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CA%2BVoWj6SO5QszXSHQ7p42_Cp0wC68_x0wmD76RKkSWK3Qarobw%40mail.gmail.com.