mirror of https://github.com/qt/qtgrpc.git
Exclude native grpc channels from the Qt packaging configurations
Native gRPC channels rely on the reference gRPC implementation that
doesn't guarantee the ABI compatibility between different versions. We
shouldn't link libQt6GRPC to any 3rdparty libraries that are not
delivered as part of Qt when make packaging builds in CI.
Fixes: QTBUG-115055
Fixes: QTBUG-110107
Change-Id: I10081b4bd2477ee4f3a7edcd172066c08c6dd972
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 19588b81df)
This commit is contained in:
parent
d995ee98cb
commit
ff954e39c7
|
|
@ -5,5 +5,6 @@ if(QT_BUILD_STANDALONE_TESTS)
|
|||
# Gui is need to build and run tests on Android Platforms.
|
||||
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Protobuf Grpc)
|
||||
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Gui)
|
||||
find_package(WrapgRPC QUIET)
|
||||
endif()
|
||||
qt_build_tests()
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ endif()
|
|||
# Set the default message latency for the gRPC tests in milliseconds.
|
||||
add_compile_definitions(QT_GRPC_TEST_MESSAGE_LATENCY=${QT_INTERNAL_GRPC_TEST_MESSAGE_LATENCY_MSEC})
|
||||
|
||||
if(QT_FEATURE_native_grpc)
|
||||
if(TARGET WrapgRPC::WrapLibgRPC)
|
||||
add_subdirectory(shared)
|
||||
add_subdirectory(client)
|
||||
add_subdirectory(server)
|
||||
|
|
|
|||
Loading…
Reference in New Issue