aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/protobuf
diff options
context:
space:
mode:
authorGravatar Mark Schaller <mschaller@google.com>2015-07-10 16:59:37 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2015-07-10 17:20:59 +0000
commit4fa83ac8380330e6f1d88e77030c248bb501ab29 (patch)
tree231972d5efa674632cabb2106a95ad31e5b7d53e /src/main/protobuf
parent308c0bf8dbd563d531b8d257d33d5c614eb31b30 (diff)
Provide placeholder rule class for deserialized Skylark rules
At this time, Skylark-defined rule classes don't get serialized, and aren't available at package deserialization time. To allow packages with Skylark-defined rule classes to deserialize, we provide a placeholder rule class implementation for deserialized Skylark rules. Resubmitting after previous rollback. -- MOS_MIGRATED_REVID=97972209
Diffstat (limited to 'src/main/protobuf')
-rw-r--r--src/main/protobuf/build.proto8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/protobuf/build.proto b/src/main/protobuf/build.proto
index 6780d4d844..9fb59b5c6d 100644
--- a/src/main/protobuf/build.proto
+++ b/src/main/protobuf/build.proto
@@ -136,6 +136,11 @@ message Attribute {
// Whether the attribute was explicitly specified
optional bool explicitly_specified = 13;
+ // If this attribute has a string value or a string list value, then this
+ // may be set to indicate that the value may be treated as a label that
+ // isn't a dependency of this attribute's rule.
+ optional bool nodep = 20;
+
// The type of attribute. This message is used for all of the different
// attribute types so the discriminator helps for figuring out what is
// stored in the message.
@@ -231,6 +236,9 @@ message Rule {
// The location of the target in the BUILD file in a machine-parseable form.
optional Location parseable_location = 8;
+
+ // The rule's class's public by default value.
+ optional bool public_by_default = 9;
}
// Summary of all transitive dependencies of 'rule,' where each dependent