Hi everyone,
First I'd like to thank Google, and the Bazel team specifically, for open-sourcing Bazel, it really is amazing.
Now to my problem:
My project generates model files, using Java annotation processors, into C++.
I have genrules (in macros) that unzip the generated jars and "output" the .cc/.h files (they list the specific files as outputs, but all they do is the unzipping).
I then use a cc_library rule to compile the sources/headers. The problem is I need to add the containing directories into the cc_library's includes attribute. However, the includes attribute takes a list of strings, not labels. So I'm not sure how I can have my includes point at a generated source directory.
I thought about using custom skylark rules, however, rules (as I understand them) cannot output directories, so that wouldn't work.
TL;DR: How do I set a generate source directory as an include in a cc_library?
Thanks in advance
Indigo