It does make sense. Thanks for your help. On Tue, Aug 9, 2022 at 2:48 PM 'Jingwen Chen' via Android Building < [email protected]> wrote:
> If your post-processing is hermetic (i.e. fully defined inputs and > outputs, with no interaction with the outside world), then a genrule will > do the job. > > Otherwise, I don't think it's something that the build system should be > responsible for. Can you invert it, i.e. have your script be the entry > point, and make it call the build system to post-process the outputs? > > > On Fri, Aug 5, 2022 at 7:33 AM John Delight <[email protected]> > wrote: > >> Hi Android Building group, >> >> I am currently investigating to do something after specific target has >> been built, for exampe, once framework.jar has been built, run a specific >> script to process it (such as upload it to server for versioning). >> >> After searched bp document, it seems "genrule" could call a script, but >> not sure whether it could accept another target file in out dir as input, >> as I have seen in AOSP that "genrule" is mostly used to generate source >> file for other target. >> >> I will try "genrule" first, meanwhile do you know the recommended way, or >> maybe it have hooks for target prost processing? Thanks! >> >> Regards, >> John >> >> -- >> -- >> 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/19b73c92-cf28-4000-9b07-a49965597fb7n%40googlegroups.com >> <https://groups.google.com/d/msgid/android-building/19b73c92-cf28-4000-9b07-a49965597fb7n%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/CAMpM06DW4pZjtKJJ1DMeKEN4Z70vo%3DEX2DGR5YaSdY0Kh3F8bA%40mail.gmail.com > <https://groups.google.com/d/msgid/android-building/CAMpM06DW4pZjtKJJ1DMeKEN4Z70vo%3DEX2DGR5YaSdY0Kh3F8bA%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 [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/CADW9y-Q1axQY28hjDuG%2BTaCUqc820NaFD_zc1QfrGr8_cwfcGw%40mail.gmail.com.
