Skip to content

Commit

Permalink
Looks like compiling protobuf files now requires access to the protobuf
Browse files Browse the repository at this point in the history
libraries.
  • Loading branch information
davidgiven committed Apr 30, 2024
1 parent 1c57cea commit fdb7837
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/protobuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
)
from build.c import cxxlibrary
from types import SimpleNamespace
import build.pkg
from build.pkg import package

emit(
"""
Expand All @@ -22,6 +22,7 @@
"""
)

lib = package(name="protobuf_lib", package="protobuf")

@Rule
def proto(self, name, srcs: Targets = None, deps: Targets = None):
Expand Down Expand Up @@ -67,6 +68,6 @@ def protocc(self, name, srcs: Targets = None, deps: Targets = None):
cxxlibrary(
replaces=self,
srcs=[r],
deps=targetswithtraitsof(deps, "cheaders"),
deps=targetswithtraitsof(deps, "cheaders") + [lib],
hdrs=headers,
)

0 comments on commit fdb7837

Please sign in to comment.