From 2a83d233f5720de4da5a96b64669521d9c6fd0f4 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 25 Sep 2023 12:37:59 +0200 Subject: Use pkgconfig for default proto libs --- CC/proto/TARGETS | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'CC/proto/TARGETS') diff --git a/CC/proto/TARGETS b/CC/proto/TARGETS index 45ef759..2ec60f2 100644 --- a/CC/proto/TARGETS +++ b/CC/proto/TARGETS @@ -1,13 +1,16 @@ { "defaults": { "type": ["CC/proto", "defaults"] , "PROTOC": ["protoc"] - , "LDFLAGS": ["-lprotobuf"] , "PATH": ["/bin", "/usr/bin"] + , "deps": ["libprotobuf"] } , "service defaults": { "type": ["CC/proto", "defaults"] , "base": ["defaults"] , "GRPC_PLUGIN": ["/usr/bin/grpc_cpp_plugin"] - , "ADD_LDFLAGS": ["-lgrpc++", "-lgrpc", "-lgpr"] + , "deps": ["libgrpc++"] } +, "libprotobuf": + {"type": ["CC/pkgconfig", "system_library"], "name": ["libprotobuf"]} +, "libgrpc++": {"type": ["CC/pkgconfig", "system_library"], "name": ["grpc++"]} } -- cgit v1.2.3