...
1// Copyright 2014 The Bazel Authors. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Definitions for dependency reports.
16
17syntax = "proto2";
18
19package blaze_deps;
20
21option java_package = "com.google.devtools.build.lib.view.proto";
22
23// A specific location within a source file.
24message SourceLocation {
25 required string path = 1;
26 optional int32 line = 2;
27 optional int32 column = 3;
28}
29
30message Dependency {
31
32 enum Kind {
33 // Dependency used explicitly in the source.
34 EXPLICIT = 0;
35 // Dependency that is implicitly loaded and used by the compiler.
36 IMPLICIT = 1;
37 // Unused dependency.
38 UNUSED = 2;
39 // Implicit dependency considered by the compiler but not completed.
40 INCOMPLETE = 3;
41 }
42
43 // Path to the artifact representing this dependency.
44 required string path = 1;
45
46 // Dependency kind
47 required Kind kind = 2;
48
49 // Source file locations: compilers can pinpoint the uses of a dependency.
50 repeated SourceLocation location = 3;
51}
52
53// Top-level message found in .deps artifacts
54message Dependencies {
55 repeated Dependency dependency = 1;
56
57 // Name of the rule being analyzed.
58 optional string rule_label = 2;
59
60 // Whether the action was successful; even when compilation fails, partial
61 // dependency information can be useful.
62 optional bool success = 3;
63
64 // Packages contained in the output jar, sorted alphabetically.
65 repeated string contained_package = 4;
66}
View as plain text