aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2023-01-09 16:16:36 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2023-02-16 16:18:48 +0000
commitd8523b5b2568a14fc9dc5fb4de09895c6ca02a01 (patch)
tree731d2a6f815edb9aff79cb477a2a3f2be5c8b41e /share/qbs/modules
parente3522f42773cfbb9a980e859c906457b3571fa1f (diff)
Protobuf: Let users provide extra grpc libs for linking
... and make use of that in the CI. Change-Id: I7e246e265a311ba24ebd6cde808445039d4c3e93 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'share/qbs/modules')
-rw-r--r--share/qbs/modules/protobuf/cpp/protobufcpp.qbs5
1 files changed, 4 insertions, 1 deletions
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: {