aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2015-05-26 08:11:29 +0000
committerGravatar Laurent Le Brun <laurentlb@google.com>2015-05-27 16:39:52 +0000
commit12a71c25443909511f036c4a1be52dc1d21bb953 (patch)
tree807a716b6a6acf2bc6eb6b392c315edb9b9e0939 /src/main/java/com/google/devtools/build
parent381e542752cb24947863944a9eed0b97d4b71d38 (diff)
Add textual_hdrs to the Bazel C++ rule classes.
-- MOS_MIGRATED_REVID=94452308
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r--src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java
index 52a45655bb..1d1fd3cdb3 100644
--- a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java
+++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java
@@ -737,6 +737,16 @@ public class BazelCppRuleClasses {
<!-- #END_BLAZE_RULE.ATTRIBUTE -->*/
.add(attr("hdrs", LABEL_LIST).orderIndependent().direct_compile_time_input()
.allowedFileTypes(FileTypeSet.ANY_FILE))
+ /* <!-- #BLAZE_RULE($cc_library).ATTRIBUTE(textual_hdrs) -->
+ The list of header files published by
+ this library to be textually included by sources in dependent rules.
+ ${SYNOPSIS}
+ <p>This is the location for declaring header files that cannot be compiled on their own;
+ that is, they always need to be textually included by other source files to build valid
+ code.</p>
+ <!-- #END_BLAZE_RULE.ATTRIBUTE --> */
+ .add(attr("textual_hdrs", LABEL_LIST).orderIndependent().direct_compile_time_input()
+ .legacyAllowAnyFileType())
// TODO(bazel-team): document or remove.
.add(attr("linkstamp", LABEL).allowedFileTypes(CPP_SOURCE, C_SOURCE))
.build();