Skip to content

Commit

Permalink
Expose proto sources in the Skylark provider
Browse files Browse the repository at this point in the history
--
MOS_MIGRATED_REVID=103947930
  • Loading branch information
laurentlb authored and hanwen committed Sep 28, 2015
1 parent 7e04a66 commit b737b99
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ public NestedSet<Artifact> getTransitiveProtoSources() {
* Returns the proto sources from the 'srcs' attribute. If the library is a proxy library
* that has no sources, return the sources from the direct deps.
*/
@SkylarkCallable(
name = "sources",
doc = "Proto sources from the 'srcs' attribute. If the library is a proxy library "
+ "that has no sources, it contains the sources from the direct deps.",
structField = true)
public ImmutableList<Artifact> getProtoSources() {
return protoSources;
}
Expand Down

0 comments on commit b737b99

Please sign in to comment.