• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:directory +full:- +full:prefix

7 #     http://www.apache.org/licenses/LICENSE-2.0
53 """Gets the root protobuf directory.
59 The directory relative to which generated include paths should be.
72 return proto_filename[:-len(_PROTO_EXTENSION)]
91 """Returns the include directory path for the source_file.
94 relative to the directory returned by this method.
96 The returned directory path can be used as the "--proto_path=" argument
103 The include directory path for the source_file.
105 directory = source_file.path
113 if not source_file.is_source and directory.startswith(source_file.root.path):
116 if directory.startswith("external", prefix_len):
117 external_separator = directory.find("/", prefix_len)
118 repository_separator = directory.find("/", external_separator + 1)
119 return directory[:repository_separator]
134 dir_out: The output directory for the plugin.
150 "--plugin=protoc-gen-{plugin_name}={plugin_path}".format(
154 "--{plugin_name}_out={dir_out}".format(
161 """Returns the directory prefix for a label.
167 That is, the prefix can be removed from a file's full path to
169 directory."""
201 prefix = _make_prefix(source_file.owner)
202 copied_proto = context.actions.declare_file(source_file.path[len(prefix):])
239 genfiles_dir_path: The path to the genfiles directory.
275 prefix = _make_prefix(proto.owner)
276 full_prefix = context.genfiles_dir.path + "/" + prefix
279 elif proto.path.startswith(prefix):
280 out_file_paths.append(proto.path[len(prefix):])
295 """Returns the value to supply to the --<lang>_out= protoc flag.
303 The value of --<lang>_out= argument.
314 prefix = "/" + _make_prefix(protos[0].owner) + _VIRTUAL_IMPORTS[1:]
318 import_path = out_dir[out_dir.find(prefix) + 1:],
332 strip_import_prefix arguments is placed under _virtual_imports directory.