C
--generate-resource-binaries
Description
Combined with --no-export-configuration, --no-export-qml, and --no-export-cpp, this makes qmlprojectexporter export the resource binaries without exporting any configruation, QML, or source files.
This can be useful for OTA resources update, to regenerate the resource binaries after changing images, binary files, font files, or translations, so that only the resource binaries can be flashed to a device (for example to external flash), while leaving the application code intact.
The resources binaries will be located in the resources subdirectory of the output directory. There'll be one resource binary per resource storage section used in the QML project.
The resource binaries are named qul_resources_<section_name>.bin (for example qul_resources_OTAResourceSection.bin).
When using qul_add_target with the QML_PROJECT
option from CMake, an <application>_resource_binaries target is automatically created, which can be run to call qmlprojectexporter with --no-export-configuration, --no-export-cpp and --no-export-qml.
Usage
qmlprojectexporter --no-export-configuration --no-export-qml --no-export-cpp --generate-resource-binaries --outdir output-dir my_project.qmlproject
Since
This option was introduced in Qt for MCUs 2.12.
Available under certain Qt licenses.
Find out more.