Skip to content
Snippets Groups Projects

Changes

qtbase

qt_wrap_cpp - Behavior change

qt_wrap_cpp will accept .cpp files from now on. When .cpp a file is passed to qt_wrap_cpp, TARGET parameter becomes required. Generated .moc files are added to target's sources inside qt_wrap_cpp. That's why the output parameter will not contain generated .moc files.

https://codereview.qt-project.org/c/qt/qtbase/+/492315

https://doc-snapshots.qt.io/qt6-dev/qt-wrap-cpp.html

Signature

qt_wrap_cpp(<VAR> src_file1 [src_file2 ...]
            [TARGET target]
            [OPTIONS ...]
            [DEPENDS ...])

Documented. Has example snippet. Has "since qt version" blurb.

Notes:

Action points:

https://codereview.qt-project.org/c/qt/qtbase/+/513648 - CMake: Set AUTOGEN_BETTER_GRAPH_MULTI_CONFIG cleanup https://codereview.qt-project.org/c/qt/qtbase/+/542757 - CMake: Bring back renamed parameters for qt_standard_project_setup https://codereview.qt-project.org/c/qt/qtbase/+/520096 - CMake: Add qt_add_ui API https://codereview.qt-project.org/c/qt/qtbase/+/551535 - Android: Add facilities to build AAR packages https://codereview.qt-project.org/c/qt/qtbase/+/560601 - Android:CMake: Add QT_ANDROID_PACKAGE_NAME property https://codereview.qt-project.org/c/qt/qtbase/+/562130 - Android: Add variable to opt-in QtQmlComponent code generation

qtdeclarative

https://codereview.qt-project.org/c/qt/qtdeclarative/+/551058 - Generate qmldir files for extra directories with QML files (new policy) https://codereview.qt-project.org/c/qt/qtdeclarative/+/496390 - Support targets for DEPENDENCIES/IMPORTS in qt_add_qml_module https://codereview.qt-project.org/c/qt/qtdeclarative/+/560608 - qt_add_qml_module: Create qt.conf in build dir https://codereview.qt-project.org/c/qt/qtdeclarative/+/561406 - Android: Add possibility to mark QML files for code generation in CMake

qtinterfaceframework

https://codereview.qt-project.org/c/qt/qtinterfaceframework/+/564052 - CMake: Add a new qt_ifcodegen_add_plugin function https://codereview.qt-project.org/c/qt/qtinterfaceframework/+/564081 - CMake: Add a new qt_ifcodegen_add_qml_module function https://codereview.qt-project.org/c/qt/qtinterfaceframework/+/564383 - CMake: Deprecate the IMPORT_PATH function argument

qtshadertools

https://codereview.qt-project.org/c/qt/qtshadertools/+/521073 - qsb CMake: Support automatic multiview variant generation

qtwayland

https://codereview.qt-project.org/c/qt/qtwayland/+/544539 - client: Add CMake options to control visibility of generated symbols

qtprotobuf

qt_add_protobuf - New API out of TP

https://doc-snapshots.qt.io/qt6-dev/qt-add-protobuf.html https://doc-snapshots.qt.io/qt6-dev/qtprotobufgen-qt-tool.html

Signature

qt_add_protobuf(<target>
    PROTO_FILES <file> ...
    [COPY_COMMENTS]
    [GENERATE_PACKAGE_SUBFOLDERS]
    [EXTRA_NAMESPACE <namespace>]
    [EXPORT_MACRO <infix>]
    [QML [QML_URI <uri>]]
    [PROTO_INCLUDES <path> ...]
    [OUTPUT_DIRECTORY <dir>]
    [OUTPUT_HEADERS <var>]
    [OUTPUT_TARGETS <var>]
)

Documented? Example snippets? Has "since qt version" blurb? Still in TP? Should it link to grpc docs as well?

Notes:

Action points:

qtgrpc

qt_add_grpc - New API out of TP

https://doc-snapshots.qt.io/qt6-dev/qt-add-grpc.html https://doc-snapshots.qt.io/qt6-dev/qtgrpcgen-qt-tool.html

Signature

qt_add_grpc(<target> <TARGET_TYPE>
    PROTO_FILES <file> ...
    [COPY_COMMENTS]
    [GENERATE_PACKAGE_SUBFOLDERS]
    [EXTRA_NAMESPACE <namespace>]
    [EXPORT_MACRO <infix>]
    [PROTO_INCLUDES <path> ...]
    [OUTPUT_DIRECTORY <dir>]
    [OUTPUT_HEADERS <var>]
    [OUTPUT_TARGETS <var>]
)

Documented? Example snippets? Has "since qt version" blurb? Still in TP? Should it link to protobuf docs as well?

Notes:

Action points: