From fdb7837e03ba0f5777cdfe305c40a57d00d2dbb6 Mon Sep 17 00:00:00 2001 From: David Given Date: Wed, 1 May 2024 00:18:18 +0200 Subject: [PATCH] Looks like compiling protobuf files now requires access to the protobuf libraries. --- build/protobuf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/protobuf.py b/build/protobuf.py index b499fc43..3d1f75b1 100644 --- a/build/protobuf.py +++ b/build/protobuf.py @@ -11,7 +11,7 @@ ) from build.c import cxxlibrary from types import SimpleNamespace -import build.pkg +from build.pkg import package emit( """ @@ -22,6 +22,7 @@ """ ) +lib = package(name="protobuf_lib", package="protobuf") @Rule def proto(self, name, srcs: Targets = None, deps: Targets = None): @@ -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, )