Lines Matching +full:- +full:- +full:proto +full:- +full:path
7 # http://www.apache.org/licenses/LICENSE-2.0
20 load("@rules_proto//proto:defs.bzl", "ProtoInfo")
37 if not file.is_source and file.path.startswith(file.root.path):
38 prefix_len = len(file.root.path) + 1
40 path = file.path
42 return path
43 if not path.startswith(label_package + "/", prefix_len):
44 fail("'{}' does not lie within '{}'.".format(path, label_package))
45 return path[prefix_len + len(label_package + "/"):]
48 if not file.is_source and file.path.startswith(file.root.path):
49 return file.path[len(file.root.path) + 1:]
50 return file.path
79 _strip_package_from_path(label_package, proto),
82 for proto in protos
86 _strip_package_from_path(label_package, proto),
89 for proto in protos
94 _strip_package_from_path(label_package, proto),
97 for proto in protos
102 _strip_package_from_path(label_package, proto),
105 for proto in protos
109 _strip_package_from_path(label_package, proto),
112 for proto in protos
115 dir_out = str(ctx.genfiles_dir.path + proto_root)
127 arguments.append("--cpp_out=" + ",".join(ctx.attr.flags) + ":" + dir_out)
131 "--proto_path={}".format(get_include_directory(i))
137 arguments.append("--proto_path={0}{1}".format(dir_out, proto_root))
138 arguments += [_get_srcs_file_path(proto) for proto in protos]
140 # create a list of well known proto files if the argument is non-None
150 # add -I argument to protoc so it knows where to look for the proto files.
151 arguments.append("-I{0}".format(f + "/../.."))