Hi,
I have a cc_library target to build some static library (libfoo.a). I need to run some post-processing on such library, so I have created a custom rule that receives a number of libraries ("srcs") as input via "attr.label_list".
Now, inside my custom rule implementation function, I need the path to libfoo.a. How can I get it? If I try "ctx.attr.srcs[0].path" Bazel complains that "cc_library has no attribute 'path'"
Printing it I see it contains the following attributes: CcInfo, InstrumentedFilesInfo, OutputGroupInfo. The last 2 are empty, and the CcInfo has some undocumented fields that I can't find any info about.
Thanks!