diff options
author | 2015-11-12 15:21:24 +0000 | |
---|---|---|
committer | 2015-11-13 10:18:19 +0000 | |
commit | bfae536431e6b689403703e5af465b074f04b340 (patch) | |
tree | c6c498ae9cb55888c42ce4cf478a271e95b6af07 /src/main/java/com/google/devtools/build/lib/rules/android/AndroidLibraryBaseRule.java | |
parent | 7ef96d778a0baf8c4e3a06bf50a4651e3e8bf1fe (diff) |
Support exports attribute for android_library
RELNOTES: Support exports attribute for android_library
--
MOS_MIGRATED_REVID=107681545
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/android/AndroidLibraryBaseRule.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/android/AndroidLibraryBaseRule.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidLibraryBaseRule.java b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidLibraryBaseRule.java index 5d8519c4bf..dfcf592d4c 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidLibraryBaseRule.java +++ b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidLibraryBaseRule.java @@ -79,6 +79,16 @@ public final class AndroidLibraryBaseRule implements RuleDefinition { .override(builder.copy("deps") .allowedRuleClasses(AndroidRuleClasses.ALLOWED_DEPENDENCIES) .allowedFileTypes()) + /* <!-- #BLAZE_RULE(android_library).ATTRIBUTE(exports) --> + The transitive closure of all rules reached via <code>exports</code> attributes + are considered direct dependencies of any rule that directly depends on the + target with <code>exports</code>. + ${SYNOPSIS} + <p>The <code>exports</code> are not direct deps of the rule they belong to.</p> + <!-- #END_BLAZE_RULE.ATTRIBUTE --> */ + .add(attr("exports", LABEL_LIST) + .allowedRuleClasses(AndroidRuleClasses.ALLOWED_DEPENDENCIES) + .allowedFileTypes(/*May not have files in exports!*/)) .add(attr("alwayslink", BOOLEAN).undocumented("purely informational for now")) /* <!-- #BLAZE_RULE(android_library).ATTRIBUTE(neverlink) --> Only use this library for compilation and not at runtime. |