Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bazel.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,9 @@ class BazelCCProtoLibrary(BaseBazelTarget):
def __init__(self, name: str, location: str):
super().__init__("cc_proto_library", name, location)

def getGlobalImport(self) -> str:
return 'load("@com_google_protobuf//bazel:cc_proto_library.bzl", "cc_proto_library")'

def addDep(self, dep: Union[BaseBazelTarget, BazelCCImport]):
assert isinstance(dep, BazelProtoLibrary) or isinstance(dep, BazelExternalDep)
self.deps.add(dep)
Expand Down
Loading
Loading