Hi Colin, Thanks for your time.
For example, I want to add a flag (local_flag) like the following in the bionic/libdl/Android.bp: <https://lh3.googleusercontent.com/-Tm0iva5OTWo/WYKpsmn-V4I/AAAAAAAAAB4/re1Uv9IGaDM_bPt3I-jNLo4HcQWlEJ8HQCLcBGAs/s1600/1.PNG> And when the module's flags are being parsed (for example in TransformSourceToObj function or other places where more appropriate), the local_flag can be examined in order to decide whether to add a additional flag or not as the following: <https://lh3.googleusercontent.com/--7t8VxiHADI/WYKvdjd8FOI/AAAAAAAAACE/Un1UO2V6BAI4bdaQxcml7FDbm3aH_TlDgCLcBGAs/s1600/2.PNG> So that the "some compiler flag" can be appended to the cflags iff the module's local_flag is set to true. Thank you very much for your help ^^ cheers, Min On Thursday, 3 August 2017 06:18:59 UTC+9, Colin Cross wrote: > > Can you describe more about the flag you are trying to add? It would > probably go in BaseCompilerProperties in build/soong/cc/compiler.go, > then be parsed in baseCompiler.compilerFlags into a something that is > passed to the compiler in TransformSourceToObj. > > On Wed, Aug 2, 2017 at 12:27 AM, Minseong Kim <[email protected] > <javascript:>> wrote: > > Hi~ > > > > It is quite difficult to find information about handling Android.bp > files. > > > > Does anyone know how to add an additional Boolean flag to a module in a > > local Android.bp (e.g. bionic/libdl/Android.bp) and this newly added > flag > > can be examined true/false when being parsed (e.g. at > TransformSourceToObj > > function in build/soong/cc/builder.go where local flags from Android.bp > > files are parsed and constructed) ? > > > > Your time and help is greatly appreciated in advance. > > > > cheers, > > Min > > > > > > > > -- > > -- > > You received this message because you are subscribed to the "Android > > Building" mailing list. > > To post to this group, send email to [email protected] > <javascript:> > > To unsubscribe from this group, send email to > > [email protected] <javascript:> > > 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] <javascript:>. > > For more options, visit https://groups.google.com/d/optout. > -- -- 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.
