Providing protobuf and gRPC support for Qt.
Go to file
Alexey Edelev ae2f1ed3d3 Fix the generation of the export macro
Consider the EXPORT_MACRO CMake argument of qt_add_<protobuf|grpc>
calls.

Add the support for the EXPORT_MACRO option extras to the
qt<protobuf|grpc>gen generators. The extras now allow setting:
 - export file name
 - boolean flag that indicates if export file needs to be generated

The EXPORT_MACRO option of the generators now has the following format:
   EXPORT_MACRO=<export_name>[:export_filename[:<true|false>]]

If export_filename is not set, then generators fall back to the previos
behavior and use the export_name as the export filename base, the file
will be generated unconditionally. If export_filename is set and the
follow boolean flag is not set or is set to false, generators skip the
generating of the export file.

[ChangeLog][Protobuf][qtprotobufgen] EXPORT_MACRO option now has the
following format:
    EXPORT_MACRO=<export_name>[:export_filename[:<true|false>]]
New option extras allow setting the generated export filename and
control if it should be generated at the generator run.
[ChangeLog][GRPC][qtgrpcgen] EXPORT_MACRO option now has the
following format:
    EXPORT_MACRO=<export_name>[:export_filename[:<true|false>]]
New option extras allow setting the generated export filename and
control if it should be generated at the generator run.

Pick-to: 6.7
Fixes: QTBUG-121854
Change-Id: Ifff6506ab363d18dc417f222e9929d7eba135d8a
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2024-02-06 06:59:48 +01:00
LICENSES Rename protobuf_LICENSE.txt to LicenseRef-protobuf.txt 2024-02-02 15:54:58 +01:00
cmake Add lookup hints for vcpkg-based gRPC directory layout 2023-10-30 17:34:45 +01:00
coin Change Axivion configuration 2023-10-04 09:04:30 +03:00
examples Move all registration functionality to a separate unit 2024-01-26 20:51:01 +01:00
src Fix the generation of the export macro 2024-02-06 06:59:48 +01:00
tests Fix the generation of the export macro 2024-02-06 06:59:48 +01:00
.clang-format Add separate .clang-format file to QtGRPC 2023-10-16 14:59:16 +02:00
.cmake.conf Bump version to 6.8.0 2023-12-13 20:08:11 +02:00
.gitattributes Add missing .gitattributes and .tag files 2023-01-18 12:03:33 +02:00
.gitignore .gitignore: Add clangd-index files and 'build' folder to ignored files 2023-09-20 14:24:27 +02:00
.tag Add missing .gitattributes and .tag files 2023-01-18 12:03:33 +02:00
CMakeLists.txt Replace the oneof 'is_synthetic' checks with the 'real_oneof' methods 2024-01-12 20:37:26 +01:00
configure.cmake Long live qtprotobufgen 2022-11-08 10:33:39 +01:00
dependencies.yaml Update dependencies on 'dev' in qt/qtgrpc 2024-01-26 18:21:49 +00:00
qt_attribution.json Make the ids in the qt_attribution.json unique 2024-02-04 16:52:16 +01:00
qt_cmdline.cmake Long live qtprotobufgen 2022-11-08 10:33:39 +01:00