diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2023-01-09 16:16:36 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2023-02-16 16:18:48 +0000 |
commit | d8523b5b2568a14fc9dc5fb4de09895c6ca02a01 (patch) | |
tree | 731d2a6f815edb9aff79cb477a2a3f2be5c8b41e /share/qbs/modules | |
parent | e3522f42773cfbb9a980e859c906457b3571fa1f (diff) | |
download | qbs-d8523b5b2568a14fc9dc5fb4de09895c6ca02a01.tar.gz |
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.qbs | 5 |
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: { |