From d8523b5b2568a14fc9dc5fb4de09895c6ca02a01 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 9 Jan 2023 16:16:36 +0100 Subject: Protobuf: Let users provide extra grpc libs for linking ... and make use of that in the CI. Change-Id: I7e246e265a311ba24ebd6cde808445039d4c3e93 Reviewed-by: Ivan Komissarov --- share/qbs/modules/protobuf/cpp/protobufcpp.qbs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'share/qbs/modules') diff --git a/share/qbs/modules/protobuf/cpp/protobufcpp.qbs b/share/qbs/modules/protobuf/cpp/protobufcpp.qbs index f377c63cf..9d333d327 100644 --- a/share/qbs/modules/protobuf/cpp/protobufcpp.qbs +++ b/share/qbs/modules/protobuf/cpp/protobufcpp.qbs @@ -12,6 +12,7 @@ ProtobufBase { property bool useGrpc: false property bool _linkLibraries: true + property stringList _extraGrpcLibs: [] readonly property bool _hasModules: protobuflib.present && (!useGrpc || grpcpp.present) property string grpcIncludePath: grpcIncludeProbe.found ? grpcIncludeProbe.path : undefined @@ -69,8 +70,10 @@ ProtobufBase { result.push(_libraryName) if (qbs.targetOS.contains("unix")) result.push("pthread"); - if (useGrpc) + if (useGrpc) { + result = result.concat(_extraGrpcLibs); result.push("grpc++"); + } return result; } cpp.includePaths: { -- cgit v1.2.3