What would I list for my genrule "outs" parameter? The genrule's "srcs" is a glob; can "outs" be a glob? What would it say?
I'm working on a genrule that runs a custom compiler. It will take a collection of sources and compile them into .classes.What would I list for my genrule "outs" parameter? The genrule's "srcs" is a glob; can "outs" be a glob? What would it say?
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/3e9e05f8-e044-4c48-a3d0-865acf265c96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Am I right in thinking that an ordinary Skylark rule cannot modify its own outputs during the Analysis phase, and so only a Skylark Macro can compute generated outputs during the Loading phase?
This seems like a surprising result to me, because http://bazel.io/docs/skylark/macros.html says that "Macros don't give additional power, they are just used for encapsulation and code reuse." But modifying ctx.outputs certainly seems like a genuine addition of power to me!
In any case, I feel like it would be good to add an example of computed outputs to the cookbook. Right now the cookbook provides examples of default outputs and "custom" (hard-coded user-specified) outputs, but no examples of computed outputs.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/2df9667b-ad33-4cda-b4c5-9c1ded8e8902%40googlegroups.com.